LibreOffice
LibreOffice 24.2 SDK API Reference
|
receives a description of a configuration update or layer as a sequence of events. More...
import"XUpdateHandler.idl";
Public Member Functions | |
void | startUpdate () raises ( MalformedDataException, com::sun::star::lang::IllegalAccessException, com::sun::star::lang::WrappedTargetException ) |
receives notification that an update or description is started. More... | |
void | endUpdate () raises ( MalformedDataException, com::sun::star::lang::IllegalAccessException, com::sun::star::lang::WrappedTargetException ) |
receives notification that the current update description is complete. More... | |
void | modifyNode ([in] string aName, [in] short aAttributes, [in] short aAttributeMask, [in] boolean bReset) raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that a modification of a node is started. More... | |
void | addOrReplaceNode ([in] string aName, [in] short aAttributes) raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that a node is started as a new item. More... | |
void | addOrReplaceNodeFromTemplate ([in] string aName, [in] short aAttributes, [in] TemplateIdentifier aTemplate) raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that a node is started as a new item based on a particular template. More... | |
void | endNode () raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that a node modification is complete. More... | |
void | removeNode ([in] string aName) raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that an item is to be dropped from a set. More... | |
void | modifyProperty ([in] string aName, [in] short aAttributes, [in] short aAttributeMask, [in] type aType) raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that modification of an existing property is started. More... | |
void | setPropertyValue ([in] any aValue) raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification about a change to the value of the current property. More... | |
void | setPropertyValueForLocale ([in] any aValue, [in] string aLocale) raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification about a change to the value of the current property for a specific locale. More... | |
void | resetPropertyValue () raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that the value of the current property should be reset to its default. More... | |
void | resetPropertyValueForLocale ([in] string aLocale) raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that the value of the current property for a specific locale should be reset to its default. More... | |
void | endProperty () raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that a property modification is complete. More... | |
void | resetProperty ([in] string aName) raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that a property is reset to its default state. More... | |
void | addOrReplaceProperty ([in] string aName, [in] short aAttributes, [in] type aType) raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that a property having a value of VOID is added to the current node. More... | |
void | addOrReplacePropertyWithValue ([in] string aName, [in] short aAttributes, [in] any aValue) raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that a property having a non-NULL value is added to the current node. More... | |
void | removeProperty ([in] string aName) raises ( MalformedDataException, com::sun::star::lang::WrappedTargetException ) |
receives notification that a property is dropped from the current node. 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... | |
receives a description of a configuration update or layer as a sequence of events.
void addOrReplaceNode | ( | [in] string | aName, |
[in] short | aAttributes | ||
) | |||
raises | ( | MalformedDataException, | |
com::sun::star::lang::WrappedTargetException | |||
) |
receives notification that a node is started as a new item.
The current node must be a set and a preexisting item (if any) must be removable.
The new item will be created from the default template of the set.
Subsequent calls describe the difference from the template of properties, items or members of the node until a matching call to XUpdateHandler::endNode() is encountered.
aName | specifies the name of the new item. |
aAttributes | specifies attribute values to be applied to the new node. |
The value is a combination of NodeAttribute flags. Note that NodeAttribute::FUSE has an impact on the semantics of this method.
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void addOrReplaceNodeFromTemplate | ( | [in] string | aName, |
[in] short | aAttributes, | ||
[in] TemplateIdentifier | aTemplate | ||
) | |||
raises | ( | MalformedDataException, | |
com::sun::star::lang::WrappedTargetException | |||
) |
receives notification that a node is started as a new item based on a particular template.
The current node must be a set and a preexisting item (if any) must be removable.
Subsequent calls describe the difference from the template of properties or members of the node until a matching call to XUpdateHandler::endNode() is encountered.
aName | specifies the name of the item. |
aTemplate | specifies the template to use for the new node |
aAttributes | specifies attribute values to be applied to the new node. |
The value is a combination of NodeAttribute flags. Note that NodeAttribute::FUSE has an impact on the semantics of this method.
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void addOrReplaceProperty | ( | [in] string | aName, |
[in] short | aAttributes, | ||
[in] type | aType | ||
) | |||
raises | ( | MalformedDataException, | |
com::sun::star::lang::WrappedTargetException | |||
) |
receives notification that a property having a value of VOID
is added to the current node.
The current node must be extensible and a preexisting property (if any) must be removable in this layer.
aName | specifies the name of the new property. |
aAttributes | specifies the attributes of the new property. |
The value is a combination of NodeAttribute flags and may also contain the SchemaAttribute::REQUIRED flag.
NodeAttribute::MANDATORY need not be set, as dynamic properties always are mandatory in subsequent layers.
aType | specifies the type of the new property. |
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void addOrReplacePropertyWithValue | ( | [in] string | aName, |
[in] short | aAttributes, | ||
[in] any | aValue | ||
) | |||
raises | ( | MalformedDataException, | |
com::sun::star::lang::WrappedTargetException | |||
) |
receives notification that a property having a non-NULL
value is added to the current node.
The current node must be extensible and a preexisting property (if any) must be removable in this layer.
aName | specifies the name of the new property. |
aAttributes | specifies the attributes of the new property. |
The value is a combination of NodeAttribute flags and may also contain the SchemaAttribute::REQUIRED flag.
NodeAttribute::MANDATORY need not be set, as dynamic properties always are mandatory in subsequent layers.
aValue | specifies the value of the new property. |
The value also determines the type. Therefore the value must not be VOID
.
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void endNode | ( | ) | ||
raises | ( | MalformedDataException, | ||
com::sun::star::lang::WrappedTargetException | ||||
) |
receives notification that a node modification is complete.
Must match the last open call to XUpdateHandler::modifyNode(), XUpdateHandler::addOrReplaceNode() or XUpdateHandler::addOrReplaceNodeFromTemplate().
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void endProperty | ( | ) | ||
raises | ( | MalformedDataException, | ||
com::sun::star::lang::WrappedTargetException | ||||
) |
receives notification that a property modification is complete.
Must match the last open call to XUpdateHandler::modifyProperty().
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void endUpdate | ( | ) | ||
raises | ( | MalformedDataException, | ||
com::sun::star::lang::IllegalAccessException, | ||||
com::sun::star::lang::WrappedTargetException | ||||
) |
receives notification that the current update description is complete.
Must match a previous call to XUpdateHandler::startUpdate().
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::IllegalAccessException | if the target layer is read-only |
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void modifyNode | ( | [in] string | aName, |
[in] short | aAttributes, | ||
[in] short | aAttributeMask, | ||
[in] boolean | bReset | ||
) | |||
raises | ( | MalformedDataException, | |
com::sun::star::lang::WrappedTargetException | |||
) |
receives notification that a modification of a node is started.
Subsequent calls describe changes to properties and items or members of the node until a matching call to XUpdateHandler::endNode() is encountered.
aName | specifies the name of the node. |
aAttributes | specifies attribute values to be applied to the node in the current layer. |
The value is a combination of NodeAttribute flags.
Only attributes which are selected in aAttributeMask are changed.
aAttributeMask | specifies which attributes should be changed for the node. |
The value is a combination of NodeAttribute flags.
bReset | if TRUE , specifies that the node should be reset to its default state as given by lower layers and the schema or template prior to applying the changes. |
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void modifyProperty | ( | [in] string | aName, |
[in] short | aAttributes, | ||
[in] short | aAttributeMask, | ||
[in] type | aType | ||
) | |||
raises | ( | MalformedDataException, | |
com::sun::star::lang::WrappedTargetException | |||
) |
receives notification that modification of an existing property is started.
Subsequent calls describe changes to the value(s) of the property until a matching call to XUpdateHandler::endProperty() is encountered.
aName | specifies the name of the property. |
aAttributes | specifies new attributes of the property. |
The value is a combination of NodeAttribute flags.
Only attributes which are selected in aAttributeMask are changed.
NodeAttribute::MANDATORY need not be set and can't be removed, as dynamic properties always are mandatory in subsequent layers.
aAttributeMask | specifies which attributes should be changed for the property. |
The value is a combination of NodeAttribute flags.
aType | specifies the type of the property. |
A VOID
type can be used to signify that the type is unknown and should not be recorded.
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void removeNode | ( | [in] string | aName | ) | |
raises | ( | MalformedDataException, | |||
com::sun::star::lang::WrappedTargetException | |||||
) |
receives notification that an item is to be dropped from a set.
The current node must be a set and the item must be removable.
aName | specifies the name of the node. |
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void removeProperty | ( | [in] string | aName | ) | |
raises | ( | MalformedDataException, | |||
com::sun::star::lang::WrappedTargetException | |||||
) |
receives notification that a property is dropped from the current node.
The current node must be extensible and the property removable.
aName | specifies the name of the property. |
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void resetProperty | ( | [in] string | aName | ) | |
raises | ( | MalformedDataException, | |||
com::sun::star::lang::WrappedTargetException | |||||
) |
receives notification that a property is reset to its default state.
aName | specifies the name of the property. |
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void resetPropertyValue | ( | ) | ||
raises | ( | MalformedDataException, | ||
com::sun::star::lang::WrappedTargetException | ||||
) |
receives notification that the value of the current property should be reset to its default.
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void resetPropertyValueForLocale | ( | [in] string | aLocale | ) | |
raises | ( | MalformedDataException, | |||
com::sun::star::lang::WrappedTargetException | |||||
) |
receives notification that the value of the current property for a specific locale should be reset to its default.
aLocale | specifies the locale the change applies to. |
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void setPropertyValue | ( | [in] any | aValue | ) | |
raises | ( | MalformedDataException, | |||
com::sun::star::lang::WrappedTargetException | |||||
) |
receives notification about a change to the value of the current property.
aValue | specifies the new value of the property. |
The value must match the type of the existing property. If the property does not have the SchemaAttribute::REQUIRED flag set, the value can be VOID
.
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void setPropertyValueForLocale | ( | [in] any | aValue, |
[in] string | aLocale | ||
) | |||
raises | ( | MalformedDataException, | |
com::sun::star::lang::WrappedTargetException | |||
) |
receives notification about a change to the value of the current property for a specific locale.
aValue | specifies the new value of the property for the given locale. |
The value must match the type of the existing property. If the property does not have the SchemaAttribute::REQUIRED flag set, the value can be VOID
.
aLocale | specifies the locale that the new value applies to. |
com::sun::star::configuration::backend::MalformedDataException |
|
Not every implementation can detect each condition
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |
void startUpdate | ( | ) | ||
raises | ( | MalformedDataException, | ||
com::sun::star::lang::IllegalAccessException, | ||||
com::sun::star::lang::WrappedTargetException | ||||
) |
receives notification that an update or description is started.
com::sun::star::configuration::backend::MalformedDataException | if the update already was started |
com::sun::star::lang::IllegalAccessException | if the target layer is read-only |
Some implementations can only detect this when executing XUpdateHandler::endUpdate()
com::sun::star::lang::WrappedTargetException | if an error occurs processing the event. |