ooodev.adapter.lang.multi_component_factory_partial module

class ooodev.adapter.lang.multi_component_factory_partial.MultiComponentFactoryPartial(component, interface=com.sun.star.lang.XMultiComponentFactory)[source]

Bases: object

Partial class for XMultiComponentFactory.

Parameters:
  • component (XMultiComponentFactory) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

create_instance_with_arguments_and_context(service_name, ctx, *args)[source]

Creates an instance of a component which supports the services specified by the factory, and initializes the new instance with the given arguments and context.

Raises:

com.sun.star.uno.ExceptionException

Return type:

XInterface

Parameters:
  • service_name (str) –

  • ctx (com.sun.star.uno.XComponentContext) –

  • args (Any) –

create_instance_with_context(service_name, ctx)[source]

Creates an instance of a component which supports the services specified by the factory.

Raises:

com.sun.star.uno.ExceptionException

Return type:

XInterface

Parameters:
  • service_name (str) –

  • ctx (com.sun.star.uno.XComponentContext) –

get_available_service_names()[source]

Gets the names of all supported services.

Return type:

Tuple[str, ...]