interface XText in module com::sun::star::text::

(Global Index)

Syntax

interface XText : com::sun::star::text::XSimpleText ;

Description

extends a XSimpleText by the capability of inserting XTextContent s.

Method Summary

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

removeTextContent removes the specified content from the text object.

Known Services Which Export this Interface

com::sun::star::table::Cell

com::sun::star::drawing::Text

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

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

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

Method Details



insertTextContent

Syntax

void insertTextContent (
com::sun::star::text::XTextRange xRange,
com::sun::star::text::XTextContent xContent,
boolean bAbsorb )
raises ( 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

Syntax

void removeTextContent (
com::sun::star::text::XTextContent xContent )
raises ( com::sun::star::container::NoSuchElementException );

Description

removes the specified content from the text object.

Example

xDoc.removeTextContent( xDoc.TextTables.MyOwnTableName )
Top of Page