ooodev.adapter.container.element_access_partial module

class ooodev.adapter.container.element_access_partial.ElementAccessPartial(component, interface=com.sun.star.container.XElementAccess)[source]

Bases: object

Partial class for XElementAccess.

Parameters:
  • component (XElementAccess) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.container.XElementAccess)[source]

Constructor

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

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

Return type:

None

get_element_type()[source]

Gets the type of the elements contained in the container.

Returns:

The type of the elements. None means that it is a multi-type container and you cannot determine the exact types with this interface.

Return type:

Any

has_elements()[source]

Determines whether the container has elements.

Return type:

bool

ooodev.adapter.container.element_access_partial.get_builder(component)[source]

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder