:: com :: sun :: star :: text ::

interface XText
Base Hierarchy
::com::sun::star::uno::XInterface
 |
 +-XTextRange
    |
    +-XSimpleText
       |
       +-XText
Description
extends a XSimpleText by the capability of inserting XTextContent s.
Developers Guide
7.3.1 Text Documents - Working with Text Documents - Word Processing - Editing Text - Text Contents Other Than Strings
7.3.1 Text Documents - Working with Text Documents - Word Processing - Editing Text

Methods' Summary
insertTextContent inserts a content, such as a text table, text frame or text field.
removeTextContent removes the specified content from the text object.
Methods' Details
insertTextContent
void
insertTextContent(
 
[in] XTextRange
[in] XTextContent
[in] boolean 

raises(

 
xRange,
xContent,
bAbsorb ) 
::com::sun::star::lang::IllegalArgumentException );

Description
inserts a content, such as a text table, text frame or text field.

Which contents are accepted is implementation-specific. Some implementations may only accept contents which were created by the factory that supplied the same text or the document which contains the text.

removeTextContent
void
removeTextContent(
 
[in] XTextContent 

raises(

 
xContent ) 
::com::sun::star::container::NoSuchElementException );

Description
removes the specified content from the text object.
Example
xDoc.removeTextContent( xDoc.TextTables.MyOwnTableName )
Top of Page