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 and XMultiServiceFactory.

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 the CombinedServiceFactoryPartial class if both XMultiServiceFactory and XSingleServiceFactory are supported.

Parameters:

component (Any) –

__init__(component)[source]

Constructor

Parameters:

component (Any) – UNO Component that implements com.sun.star.lang.XMultiServiceFactory and com.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.ExceptionException

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.ExceptionException

Return type:

Any

Parameters:
  • args (Any) –

  • service_name (Any | None) –

create_instance_with_prop_args(**kwargs: Any)[source]
create_instance_with_prop_args(service_name: str, **kwargs: Any)
create_instance_with_prop_args(service_name='', **kwargs)
Return type:

Any

Parameters:
  • service_name (str) –

  • kwargs (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.combined_service_factory_partial.get_builder(component)[source]

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder