ooodev.adapter.form.confirm_delete_broadcaster_partial module

class ooodev.adapter.form.confirm_delete_broadcaster_partial.ConfirmDeleteBroadcasterPartial(component, interface=com.sun.star.form.XConfirmDeleteBroadcaster)[source]

Bases: object

Partial Class for XConfirmDeleteBroadcaster.

Parameters:
  • component (XConfirmDeleteBroadcaster) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.form.XConfirmDeleteBroadcaster)[source]

Constructor

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

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

Return type:

None

add_confirm_delete_listener(listener)[source]

Remembers the specified listener to receive an event for confirming deletions

XConfirmDeleteListener.confirmDelete() is called before a deletion is performed. You may use the event to write your own confirmation messages.

Return type:

None

Parameters:

listener (com.sun.star.form.XConfirmDeleteListener) –

remove_confirm_delete_listener(listener)[source]

Removes the specified listener.

Return type:

None

Parameters:

listener (com.sun.star.form.XConfirmDeleteListener) –