ooodev.adapter.lang.combined_service_factory_partial module
- class ooodev.adapter.lang.combined_service_factory_partial.CombinedServiceFactoryPartial(component)[source]
Bases:
object
Partial class for
XSingleServiceFactory
andXMultiServiceFactory
.Because the two interface has the same method names, this class allows for overloads of the methods.
The builder that is return by
get_builder()
for this module will only include theCombinedServiceFactoryPartial
class if bothXMultiServiceFactory
andXSingleServiceFactory
are supported.- Parameters:
component (Any) –
- __init__(component)[source]
Constructor
- Parameters:
component (Any) – UNO Component that implements
com.sun.star.lang.XMultiServiceFactory
andcom.sun.star.lang.XSingleServiceFactory
interfaces.- Return type:
None
- create_instance()[source]
- create_instance(service_name: str)
- create_instance(*args, **kwargs)
Creates an instance of a service implementation.
- Raises:
com.sun.star.uno.Exception –
Exception
- Return type:
Any
- create_instance_with_arguments(*args: Any)[source]
- create_instance_with_arguments(*args: Any, service_name: str)
- create_instance_with_arguments(*args, service_name=None)
Creates an instance classified by the specified name and passes the arguments to that instance.
- Raises:
com.sun.star.uno.Exception –
Exception
- Return type:
Any
- Parameters:
args (Any) –
service_name (Any | None) –