ooodev.adapter.container.container_partial module

class ooodev.adapter.container.container_partial.ContainerPartial(component, interface=com.sun.star.container.XContainer)[source]

Bases: object

Partial class for XContainer.

Parameters:
  • component (XContainer) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

add_container_listener(listener)[source]

Adds the specified listener to receive events when elements are inserted or removed.

Parameters:

listener (XContainerListener) – The listener to be added.

Return type:

None

remove_container_listener(listener)[source]

Removes the specified listener so it does not receive any events from this container.

Parameters:

listener (XContainerListener) – The listener to be removed.

Return type:

None

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

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder