LibreOffice
LibreOffice 24.2 SDK API Reference
|
can be used to identify office modules. More...
import"XModuleManager.idl";
Public Member Functions | |
string | identify ([in] ::com::sun::star::uno::XInterface Module) raises (::com::sun::star::lang::IllegalArgumentException, UnknownModuleException ) |
identifies the given module. 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... | |
can be used to identify office modules.
string identify | ( | [in] ::com::sun::star::uno::XInterface | Module | ) | |
raises | ( | ::com::sun::star::lang::IllegalArgumentException, | |||
UnknownModuleException | |||||
) |
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 it exists it will be preferred.
Module | Possible objects for this parameter can be the following one:
|
com::sun::star::lang::IllegalArgumentException | if the parameter Module is:
|
UnknownModuleException | if the given module could not be identified. Note: If the module represent a XFrame instance with does not contain a document, this exception is thrown too! |