Difference between revisions of "Documentation/DevGuide/Accessibility/XAccessibleEditableText"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Documentation/Developers Guide/Accessibility)
m (FINAL VERSION FOR L10N)
 
Line 7: Line 7:
 
|NextPage=Documentation/DevGuide/Accessibility/XAccessibleTable
 
|NextPage=Documentation/DevGuide/Accessibility/XAccessibleTable
 
}}
 
}}
{{DISPLAYTITLE:XAccessibleEditableText}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Accessibility/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:XAccessibleEditableText}}
 
<!--<idltopic>com.sun.star.accessibility.XAccessibleEditableText</idltopic>-->
 
<!--<idltopic>com.sun.star.accessibility.XAccessibleEditableText</idltopic>-->
 
The <idls>com.sun.star.accessibility.XAccessibleEditableText</idls> interface extends the <idls>com.sun.star.accessibility.XAccessibleText</idls> interface by adding functions that let you modify the text. The interface is therefore only implemented when the text represented by the implementing object is readable and writable.
 
The <idls>com.sun.star.accessibility.XAccessibleEditableText</idls> interface extends the <idls>com.sun.star.accessibility.XAccessibleText</idls> interface by adding functions that let you modify the text. The interface is therefore only implemented when the text represented by the implementing object is readable and writable.

Latest revision as of 13:17, 15 May 2009



The XAccessibleEditableText interface extends the XAccessibleText interface by adding functions that let you modify the text. The interface is therefore only implemented when the text represented by the implementing object is readable and writable.

With the functions deleteText(), insertText() and replaceText(), you can delete, insert, and replace text. The setText() function is a special case of replaceText() and replaces the whole text at once.

The cutText() and pasteText() functions, together with copyText(), from the com.sun.star.accessibility.XAccessibleText interface provide access to the clipboard.

Finally, the setAttributes() function is the counterpart of getCharacterAttributes() in the com.sun.star.accessibility.XAccessibleText interface. With this function, you can replace the existing attributes with the given set. To add one attribute, first use getCharacterAttributes() to get the current set of attributes, add the attribute to that set, and finally call setAttributes() to set the new set of attributes.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages