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

(Global Index)

Syntax

interface XAutoTextGroup : com::sun::star::container::XNameAccess ;

Description

The interface provide methods to insert, rename and delete autotext entries from the current autotext group.

Method Summary

getTitles returns the titles of all autotext entries. The order of the entries corresponds to the output of the function getElementNames().

renameByName renames an entry in the autotext group.

insertNewByName creates a new AutoTextEntry entry.

removeByName removes the specified autotext entry.

Known Services Which Export this Interface

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

Method Details



getTitles

Syntax

sequence< string > getTitles ();

Description

returns the titles of all autotext entries. The order of the entries corresponds to the output of the function getElementNames().


renameByName

Syntax

void renameByName (
string aElementName,
string aNewElementName,
string aNewElementTitle )
raises ( com::sun::star::lang::IllegalArgumentException , com::sun::star::container::ElementExistException , com::sun::star::io::IOException );

Description

renames an entry in the autotext group.

The position of the autotext entry is not changed.


insertNewByName

Syntax

com::sun::star::text::XAutoTextEntry insertNewByName (
string aName,
string aTitle,
com::sun::star::text::XTextRange xTextRange )
raises ( com::sun::star::container::ElementExistException );

Description

creates a new AutoTextEntry entry.


removeByName

Syntax

void removeByName (
string aEntryName )
raises ( com::sun::star::container::NoSuchElementException );

Description

removes the specified autotext entry.

Top of Page