ooodev.adapter.lang.type_provider_partial module

class ooodev.adapter.lang.type_provider_partial.TypeProviderPartial(component, interface=com.sun.star.lang.XTypeProvider)[source]

Bases: object

Partial class for XTypeProvider.

Parameters:
  • component (XTypeProvider) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

get_implementation_id()[source]

Obsolete unique identifier.

Originally returned a sequence of bytes which, when non-empty, was used as an ID to distinguish unambiguously between two sets of types, for example to realize hashing functionality when the object is introspected. Two objects that returned the same non-empty ID had to return the same set of types in getTypes(). (If a unique ID could not be provided, this method was always allowed to return an empty sequence, though).

Return type:

ByteSequence

get_types()[source]

returns a sequence of all types (usually interface types) provided by the object.

Return type:

Tuple[Any, ...]

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

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder