ooodev.adapter.container.container_listener module

class ooodev.adapter.container.container_listener.ContainerListener(trigger_args=None, subscriber=None)[source]

Bases: AdapterBase, XContainerListener

receives events when the content of the related container changes.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

Any

__init__(trigger_args=None, subscriber=None)[source]

Constructor:

Parameters:
  • trigger_args (GenericArgs, optional) – Args that are passed to events when they are triggered.

  • subscriber (XContainer, optional) – An UNO object that implements the XContainer interface. If passed in then this listener instance is automatically added to it.

Return type:

None

disposing(event)[source]

Gets called when the broadcaster is about to be disposed.

All listeners and all other objects, which reference the broadcaster should release the reference to the source. No method should be invoked anymore on this object ( including XComponent.removeEventListener() ).

This method is called for every listener registration of derived listener interfaced, not only for registrations at XComponent.

Return type:

None

Parameters:

event (com.sun.star.lang.EventObject) –

elementInserted(event)[source]

Event is invoked when a container has inserted an element.

Return type:

None

Parameters:

event (com.sun.star.container.ContainerEvent) –

elementRemoved(event)[source]

Event is invoked when a container has removed an element.

Return type:

None

Parameters:

event (com.sun.star.container.ContainerEvent) –

elementReplaced(event)[source]

Event is invoked when a container has replaced an element.

Return type:

None

Parameters:

event (com.sun.star.container.ContainerEvent) –