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

(Global Index)

Syntax

interface XTextContent : com::sun::star::lang::XComponent ;

Method Summary

attach is called when this object gets embedded in a text.

getAnchor

Known Services Which Export this Interface

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

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

Method Details



attach

Syntax

void attach (
com::sun::star::text::XTextRange xTextRange )
raises ( com::sun::star::lang::IllegalArgumentException );

Description

is called when this object gets embedded in a text.

This acts like a multi-phase construction, thus the object may be invalid until it is attached to a text position. In general, this method is called from within .

Both text objects and text content objects may only be connected to each other if they are created by the same component. When implementing new components, this behaviour is deprecated.


getAnchor

Syntax

com::sun::star::text::XTextRange getAnchor ();

Returns

the text range to which the content is attached.
Top of Page