Difference between revisions of "Documentation/DevGuide/Text/Working with Text Documents"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Documentation/Developers Guide/Text Documents)
(Word Processing: "XTestDocument" -> "XTextDocument")
Line 9: Line 9:
 
=== Word Processing ===
 
=== Word Processing ===
 
<!--<idltopic>com.sun.star.text.Text</idltopic>-->
 
<!--<idltopic>com.sun.star.text.Text</idltopic>-->
The text model in the illustration below shows that working with text starts with the method <code>getText()</code> at the <code>XTestDocument</code> interface of the document model. It returns a <idl>com.sun.star.text.Text</idl> service that handles text in {{PRODUCTNAME}}.  
+
The text model in the illustration below shows that working with text starts with the method <code>getText()</code> at the <code>XTextDocument</code> interface of the document model. It returns a <idl>com.sun.star.text.Text</idl> service that handles text in {{PRODUCTNAME}}.  
  
 
The Text service has two mandatory interfaces and no properties:
 
The Text service has two mandatory interfaces and no properties:

Revision as of 11:50, 24 March 2009



Word Processing

The text model in the illustration below shows that working with text starts with the method getText() at the XTextDocument interface of the document model. It returns a com.sun.star.text.Text service that handles text in OpenOffice.org.

The Text service has two mandatory interfaces and no properties:

Service com.sun.star.text.Text (mandatory interfaces only)

The XText is used to edit a text, and XEnumerationAccess is used to iterate over text. The following sections discuss these aspects of the Text service.

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