LibreOffice
LibreOffice 24.2 SDK API Reference
|
This is the generic interface for supporting the insertion and removal of named elements. More...
import <XNameContainer.idl;
Public Member Functions | |
void | insertByName ([in] string aName, [in] any aElement) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::container::ElementExistException, com::sun::star::lang::WrappedTargetException ) |
inserts the given element at the specified name. | |
void | removeByName ([in] string Name) raises ( com::sun::star::container::NoSuchElementException, com::sun::star::lang::WrappedTargetException ) |
removes the element with the specified name. | |
![]() | |
void | replaceByName ([in] string aName, [in] any aElement) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::container::NoSuchElementException, com::sun::star::lang::WrappedTargetException ) |
replaces the element with the specified name with the given element. | |
![]() | |
any | getByName ([in] string aName) raises ( com::sun::star::container::NoSuchElementException, com::sun::star::lang::WrappedTargetException ) |
sequence< string > | getElementNames () |
boolean | hasByName ([in] string aName) |
![]() | |
type | getElementType () |
boolean | hasElements () |
![]() | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. | |
void | acquire () |
increases the reference counter by one. | |
void | release () |
decreases the reference counter by one. | |
This is the generic interface for supporting the insertion and removal of named elements.
void insertByName | ( | [in] string | aName, | |||
[in] any | aElement ) | |||||
raises | ( | com::sun::star::lang::IllegalArgumentException, | ||||
com::sun::star::container::ElementExistException, | ||||||
com::sun::star::lang::WrappedTargetException ) |
inserts the given element at the specified name.
void removeByName | ( | [in] string | Name | ) | ||
raises | ( | com::sun::star::container::NoSuchElementException, | ||||
com::sun::star::lang::WrappedTargetException ) |
removes the element with the specified name.