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

From Apache OpenOffice Wiki
Jump to: navigation, search
m (1 revision(s))
m (FINAL VERSION FOR L10N)
 
(2 intermediate revisions by the same user not shown)
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.
Line 18: Line 19:
  
 
{{PDL1}}
 
{{PDL1}}
[[Category: Accessibility]]
+
 
 +
[[Category:Documentation/Developer's Guide/Accessibility]]

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