Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIAccessibleText Interface Reference

import "nsIAccessibleText.idl";

Inheritance diagram for nsIAccessibleText:
Inheritance graph
[legend]
Collaboration diagram for nsIAccessibleText:
Collaboration graph
[legend]

List of all members.

Public Member Functions

AString getText (in long startOffset, in long endOffset)
 String methods may need to return multibyte-encoded strings, since some locales can't be encoded using 16-bit chars.
AString getTextAfterOffset (in long offset, in nsAccessibleTextBoundary boundaryType, out long startOffset, out long endOffset)
AString getTextAtOffset (in long offset, in nsAccessibleTextBoundary boundaryType, out long startOffset, out long endOffset)
AString getTextBeforeOffset (in long offset, in nsAccessibleTextBoundary boundaryType, out long startOffset, out long endOffset)
wchar getCharacterAtOffset (in long offset)
 It would be better to return an unsigned long here, to allow unicode chars > 16 bits.
nsISupports getAttributeRange (in long offset, out long rangeStartOffset, out long rangeEndOffset)
void getCharacterExtents (in long offset, out long x, out long y, out long width, out long height, in nsAccessibleCoordType coordType)
long getOffsetAtPoint (in long x, in long y, in nsAccessibleCoordType coordType)
void getSelectionBounds (in long selectionNum, out long startOffset, out long endOffset)
void setSelectionBounds (in long selectionNum, in long startOffset, in long endOffset)
void addSelection (in long startOffset, in long endOffset)
void removeSelection (in long selectionNum)

Public Attributes

const nsAccessibleTextBoundary BOUNDARY_CHAR = 0
const nsAccessibleTextBoundary BOUNDARY_WORD_START = 1
const nsAccessibleTextBoundary BOUNDARY_WORD_END = 2
const nsAccessibleTextBoundary BOUNDARY_SENTENCE_START = 3
const nsAccessibleTextBoundary BOUNDARY_SENTENCE_END = 4
const nsAccessibleTextBoundary BOUNDARY_LINE_START = 5
const nsAccessibleTextBoundary BOUNDARY_LINE_END = 6
const nsAccessibleTextBoundary BOUNDARY_ATTRIBUTE_RANGE = 7
const nsAccessibleCoordType COORD_TYPE_SCREEN = 0
const nsAccessibleCoordType COORD_TYPE_WINDOW = 1
attribute long caretOffset
readonly attribute long characterCount
readonly attribute long selectionCount

Detailed Description

Definition at line 48 of file nsIAccessibleText.idl.


Member Function Documentation

void nsIAccessibleText::addSelection ( in long  startOffset,
in long  endOffset 
)
nsISupports nsIAccessibleText::getAttributeRange ( in long  offset,
out long  rangeStartOffset,
out long  rangeEndOffset 
)

It would be better to return an unsigned long here, to allow unicode chars > 16 bits.

void nsIAccessibleText::getCharacterExtents ( in long  offset,
out long  x,
out long  y,
out long  width,
out long  height,
in nsAccessibleCoordType  coordType 
)
void nsIAccessibleText::getSelectionBounds ( in long  selectionNum,
out long  startOffset,
out long  endOffset 
)
AString nsIAccessibleText::getText ( in long  startOffset,
in long  endOffset 
)

String methods may need to return multibyte-encoded strings, since some locales can't be encoded using 16-bit chars.

So the methods below might return UTF-16 strings, or they could return "string" values which are UTF-8.

AString nsIAccessibleText::getTextAfterOffset ( in long  offset,
in nsAccessibleTextBoundary  boundaryType,
out long  startOffset,
out long  endOffset 
)
AString nsIAccessibleText::getTextAtOffset ( in long  offset,
in nsAccessibleTextBoundary  boundaryType,
out long  startOffset,
out long  endOffset 
)
AString nsIAccessibleText::getTextBeforeOffset ( in long  offset,
in nsAccessibleTextBoundary  boundaryType,
out long  startOffset,
out long  endOffset 
)
void nsIAccessibleText::setSelectionBounds ( in long  selectionNum,
in long  startOffset,
in long  endOffset 
)

Member Data Documentation

Definition at line 57 of file nsIAccessibleText.idl.

Definition at line 50 of file nsIAccessibleText.idl.

Definition at line 56 of file nsIAccessibleText.idl.

Definition at line 55 of file nsIAccessibleText.idl.

Definition at line 54 of file nsIAccessibleText.idl.

Definition at line 53 of file nsIAccessibleText.idl.

Definition at line 52 of file nsIAccessibleText.idl.

Definition at line 51 of file nsIAccessibleText.idl.

Definition at line 62 of file nsIAccessibleText.idl.

Definition at line 64 of file nsIAccessibleText.idl.

Definition at line 59 of file nsIAccessibleText.idl.

Definition at line 60 of file nsIAccessibleText.idl.

Definition at line 65 of file nsIAccessibleText.idl.


The documentation for this interface was generated from the following file: