Public Member Functions | Public Attributes

nsIAccessibleEditableText Interface Reference

import "nsIAccessibleEditableText.idl";

Inheritance diagram for nsIAccessibleEditableText:
Collaboration diagram for nsIAccessibleEditableText:

List of all members.

Public Member Functions

void setAttributes (in long startPos, in long endPos, in nsISupports attributes)
 Sets the attributes for the text between the two given indices.
void setTextContents (in AString text)
 Replaces the text represented by this object by the given text.
void insertText (in AString text, in long position)
 Inserts text at the specified position.
void copyText (in long startPos, in long endPos)
 Copies the text range into the clipboard.
void cutText (in long startPos, in long endPos)
 Deletes a range of text and copies it to the clipboard.
void deleteText (in long startPos, in long endPos)
 Deletes a range of text.
void pasteText (in long position)
 Pastes text from the clipboard.

Public Attributes

readonly attribute nsIEditor associatedEditor
 Returns an editor associated with the accessible.

Member Function Documentation

void nsIAccessibleEditableText::copyText ( in long  startPos,
in long  endPos 
)

Copies the text range into the clipboard.

Parameters:
startPos - start index of the text to moved into the clipboard.
endPos - end index of the text to moved into the clipboard.
void nsIAccessibleEditableText::cutText ( in long  startPos,
in long  endPos 
)

Deletes a range of text and copies it to the clipboard.

Parameters:
startPos - start index of the text to be deleted.
endOffset - end index of the text to be deleted.
void nsIAccessibleEditableText::deleteText ( in long  startPos,
in long  endPos 
)

Deletes a range of text.

Parameters:
startPos - start index of the text to be deleted.
endPos - end index of the text to be deleted.
void nsIAccessibleEditableText::insertText ( in AString  text,
in long  position 
)

Inserts text at the specified position.

Parameters:
text - text that is inserted.
position - index at which to insert the text.
void nsIAccessibleEditableText::pasteText ( in long  position  ) 

Pastes text from the clipboard.

Parameters:
position - index at which to insert the text from the system clipboard into the text represented by this object.
void nsIAccessibleEditableText::setAttributes ( in long  startPos,
in long  endPos,
in nsISupports  attributes 
)

Sets the attributes for the text between the two given indices.

The old attributes are replaced by the new list of attributes. For example, sets font styles, such as italic, bold...

Parameters:
startPos - start index of the text whose attributes are modified.
endPos - end index of the text whose attributes are modified.
attributes - set of attributes that replaces the old list of attributes of the specified text portion.
void nsIAccessibleEditableText::setTextContents ( in AString  text  ) 

Replaces the text represented by this object by the given text.


Member Data Documentation

Returns an editor associated with the accessible.


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