ooodev.adapter.ui.module_ui_configuration_manager_comp module
- class ooodev.adapter.ui.module_ui_configuration_manager_comp.ModuleUIConfigurationManagerComp(component)[source]
Bases:
ComponentBase,ModuleUIConfigurationManager2Partial,UIConfigurationEventsClass for managing ModuleUIConfigurationManager Component.
- Parameters:
component (ModuleUIConfigurationManager) –
- __init__(component)[source]
Constructor
- Parameters:
component (ModuleUIConfigurationManager) – UNO ModuleUIConfigurationManager Component that supports
com.sun.star.ui.ModuleUIConfigurationManagerservice.- Return type:
None
- create_default(module_short_name, module_identifier)[source]
Provides a function to initialize a module user interface configuration manager instance.
A module user interface configuration manager instance needs the following arguments as com.sun.star.beans.PropertyValue to be in a working state:
DefaultConfigStoragea reference to acom.sun.star.embed.Storagethat contains the default module user interface configuration settings.UserConfigStoragea reference to acom.sun.star.embed.Storagethat contains the user-defined module user interface configuration settings.ModuleIdentifierstring that provides the module identifier.UserRootCommita reference to acom.sun.star.embed.XTransactedObjectwhich represents the customizable root storage. Every implementation must use this reference to commit its changes also at the root storage.
A non-initialized module user interface configuration manager cannot be used, it is treated as a read-only container.
- Raises:
com.sun.star.configuration.CorruptedUIConfigurationException –
CorruptedUIConfigurationExceptioncom.sun.star.beans.UnknownPropertyException –
UnknownPropertyExceptioncom.sun.star.lang.WrappedTargetException –
WrappedTargetException
- Return type:
None- Parameters:
module_short_name (str) –
module_identifier (str) –
- has_settings(resource_url)[source]
Determines if the settings of a user interface element is part the user interface configuration manager.
- Return type:
bool- Parameters:
resource_url (str) –
- property component: com.sun.star.ui.ModuleUIConfigurationManager
ModuleUIConfigurationManager Component
- Return type:
ModuleUIConfigurationManager