Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

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

interface XText

Base Interface
com::sun::star::text::XSimpleText

Description
extends a XSimpleText by the capability of inserting XTextContent s.


Known Services which Export this Interface

com::sun::star::table::Cell represents a singe cell within a table.
com::sun::star::drawing::Text This abstract service specifies the general characteristics of an optional text inside a Shape .
com::sun::star::text::Footnote This service specifies a footnote or an endnote in a TextDocument .
com::sun::star::text::Text is an independent piece of text which consists of a series of one or more paragraphs.
com::sun::star::text::AutoTextEntry provides access to a text block in a group of an AutoTextContainer .

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 ] com::sun::star::text::XTextRange xRange,
[ in ] com::sun::star::text::XTextContent xContent,
[ in ] 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
 
void
removeTextContent(
[ in ] 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