ooodev.adapter.lang.single_service_factory_partial module

class ooodev.adapter.lang.single_service_factory_partial.SingleServiceFactoryPartial(component, interface=com.sun.star.lang.XSingleServiceFactory)[source]

Bases: object

Partial class for XSingleServiceFactory.

Parameters:
  • component (XSingleServiceFactory) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

create_instance()[source]

Creates an instance of a service implementation.

Raises:

com.sun.star.uno.ExceptionException

Return type:

Any

create_instance_with_arguments(*args)[source]

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

Parameters:

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

Raises:

com.sun.star.uno.ExceptionException

Return type:

Any

create_instance_with_prop_args(**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:

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

Raises:

com.sun.star.uno.ExceptionException

Return type:

Any

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

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder