ooodev.adapter.lang.component_partial module

class ooodev.adapter.lang.component_partial.ComponentPartial(component, interface=com.sun.star.lang.XComponent)[source]

Bases: object

Partial class for XComponent.

Parameters:
  • component (XComponent) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

add_event_listener(listener)[source]

Adds an event listener to the component.

Parameters:

listener (XEventListener) – The event listener to be added.

Return type:

None

dispose()[source]

Disposes the component.

Return type:

None

remove_event_listener(listener)[source]

Removes an event listener from the component.

Parameters:

listener (XEventListener) – The event listener to be removed.

Return type:

None

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

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder