|
LibreOffice
LibreOffice 24.8 SDK API Reference
|
makes it possible to add and remove properties to or from an object. More...
import "XPropertyContainer.idl";
Public Member Functions | |
| void | addProperty ([in] string Name, [in] short Attributes, [in] any DefaultValue) raises ( com::sun::star::beans::PropertyExistException, com::sun::star::beans::IllegalTypeException, com::sun::star::lang::IllegalArgumentException ) |
| adds a property to the object. | |
| void | removeProperty ([in] string Name) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::NotRemoveableException ) |
| removes a property from the object. | |
| Public Member Functions inherited from XInterface | |
| 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. | |
makes it possible to add and remove properties to or from an object.
Some scripting engines cannot access properties directly when the property set is changed. Please use XPropertySet::getPropertyValue() etc. in this case.
| void addProperty | ( | [in] string | Name, | |||
| [in] short | Attributes, | |||||
| [in] any | DefaultValue ) | |||||
| raises | ( | com::sun::star::beans::PropertyExistException, | ||||
| com::sun::star::beans::IllegalTypeException, | ||||||
| com::sun::star::lang::IllegalArgumentException ) | ||||||
adds a property to the object.
| Name | specifies the name of the new property. |
| Attributes | specifies the property attributes, see PropertyAttribute. |
| DefaultValue | specifies the type of the new property and a potential default value. |
| PropertyExistException | if a property with the same name already exists. |
| IllegalTypeException | if the specified type is not allowed. |
| void removeProperty | ( | [in] string | Name | ) | ||
| raises | ( | com::sun::star::beans::UnknownPropertyException, | ||||
| com::sun::star::beans::NotRemoveableException ) | ||||||
removes a property from the object.
| Name | specified the name of the property. |
| UnknownPropertyException | if the property does not exist. |