OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Editing Text Documents 107<br />
Doc.replaceAll(Replace)<br />
Source: http:/ / <strong>wiki</strong>. services. openoffice. <strong>org</strong>/ w/ index. php? title=Documentation/ <strong>BASIC</strong>_<br />
<strong>Guide</strong>/ Editing_ Text_ Documents&oldid=105687<br />
Principal Authors: Fpe, Ccornell, TJFrazier<br />
More Than Just Text<br />
So far, this chapter has only dealt with text paragraphs and their portions. But text<br />
documents may also contain other objects. These include tables, drawings, text fields and<br />
directories. All of these objects can be anchored to any point within a text.<br />
Thanks to these common features, all of these objects in <strong>OpenOffice</strong>.<strong>org</strong> support a common<br />
basic service called<br />
com.sun.star.text.TextContent<br />
. This provides the following properties:<br />
AnchorType (Enum)<br />
determines the anchor type of a TextContent object (default values in accordance with<br />
com.sun.star.text.TextContentAnchorType<br />
enumeration).<br />
AnchorTypes (sequence of Enum)<br />
enumeration of all AnchorTypes which support a special TextContent object.<br />
TextWrap (Enum)<br />
determines the text wrap type around a TextContent object (default values in<br />
accordance with<br />
com.sun.star.text.WrapTextMode<br />
enumeration).<br />
The TextContent objects also share some methods – in particular, those for creating,<br />
inserting and deleting objects.<br />
• A new TextContent object is created using the createInstance method of the document<br />
object.<br />
• An object is inserted using the insertTextContent method of the text object.<br />
• TextContent objects are deleted using the removeTextContent method.<br />
You will find a range of examples which use these methods in the following sections.