ooodev.adapter.frame.module_manager_partial module
- class ooodev.adapter.frame.module_manager_partial.ModuleManagerPartial(component, interface=com.sun.star.frame.XModuleManager)[source]
Bases:
object
Partial class for XModuleManager.
- Parameters:
component (XModuleManager) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.frame.XModuleManager)[source]
Constructor
- Parameters:
component (XModuleManager) – UNO Component that implements
com.sun.star.frame.XModuleManager
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XModuleManager
.
- Return type:
None
- identify(module)[source]
Identifies the given module.
This identifier can then be used at the service ModuleManager to get more information about this module.
For identification the interface com.sun.star.lang.XServiceInfo is requested on the given module. Because all module service registrations must be unique this value can be queried and checked against the configuration.
Since OOo 2.3.0 also the optional interface XModule will be used. If its exists it will be preferred.
- Raises:
com.sun.star.lang.IllegalArgumentException –
IllegalArgumentException
UnknownModuleException –
UnknownModuleException
- Return type:
str
- Parameters:
module (com.sun.star.uno.XInterface) –