LibreOffice
LibreOffice 24.2 SDK API Reference
|
Provides access to a read-write layer of configuration data for a given component and entity. More...
import"XUpdatableLayer.idl";
Public Member Functions | |
void | replaceWith ([in] XLayer aNewLayer) raises (com::sun::star::lang::NullPointerException, com::sun::star::lang::WrappedTargetException, MalformedDataException) |
Replaces the current layer with the layer given as input parameter. More... | |
Public Member Functions inherited from XLayer | |
void | readData ([in] XLayerHandler aHandler) raises (com::sun::star::lang::NullPointerException, com::sun::star::lang::WrappedTargetException, MalformedDataException) |
describes the contents of the layer to an XLayerHandler. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
Provides access to a read-write layer of configuration data for a given component and entity.
void replaceWith | ( | [in] XLayer | aNewLayer | ) | |
raises | ( | com::sun::star::lang::NullPointerException, | |||
com::sun::star::lang::WrappedTargetException, | |||||
MalformedDataException | |||||
) |
Replaces the current layer with the layer given as input parameter.
After the replacement has been performed, reading the layer will return the new content. Some implementations may not support this, so after an update XLayer::readData() may fail.
aNewLayer | replacement layer |
com::sun::star::lang::NullPointerException | if a NULL handler is passed. |
com::sun::star::lang::WrappedTargetException | if an error occurs during the replacement. |
com::sun::star::configuration::backend::MalformedDataException | if the layer contains invalid data. |