ooodev.adapter.lang.multi_service_factory_partial module

class ooodev.adapter.lang.multi_service_factory_partial.MultiServiceFactoryPartial(component, interface=com.sun.star.lang.XMultiServiceFactory)[source]

Bases: object

Partial class for XMultiServiceFactory.

Parameters:
  • component (XMultiServiceFactory) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.lang.XMultiServiceFactory)[source]

Constructor

Parameters:
  • component (XMultiServiceFactory) – UNO Component that implements com.sun.star.lang.XMultiServiceFactory interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XMultiServiceFactory.

Return type:

None

create_instance(service_name)[source]

Creates an instance classified by the specified name.

Raises:

com.sun.star.uno.ExceptionException

Return type:

Any

Parameters:

service_name (str) –

create_instance_with_arguments(*args, service_name)[source]

Creates an instance classified by the specified name and passes the arguments to that instance.

Raises:

com.sun.star.uno.ExceptionException

Return type:

Any

Parameters:
  • args (Any) –

  • service_name (str) –

create_instance_with_prop_args(service_name, **kwargs)[source]

Creates an instance of a service implementation initialized with some arguments.

Each Key, Value pair is converted to a PropertyValue before adding to the service arguments.

Parameters:
  • service_name (str) – The name of the service to create.

  • kwargs (Any) – One or more arguments to initialize the service.

Raises:

com.sun.star.uno.ExceptionException

Return type:

Any

get_available_service_names()[source]

Provides the available names of the factory to be used to create instances.

Return type:

Tuple[str, ...]

ooodev.adapter.lang.multi_service_factory_partial.get_builder(component)[source]

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder