ooodev.adapter.awt.user_input_interception_partial module

class ooodev.adapter.awt.user_input_interception_partial.UserInputInterceptionPartial(component, interface=com.sun.star.awt.XUserInputInterception)[source]

Bases: object

Partial Class for XUserInputInterception.

New in version 0.20.0.

Parameters:
  • component (XUserInputInterception) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.awt.XUserInputInterception)[source]

Constructor

Parameters:
  • component (XUserInputInterception) – UNO Component that implements com.sun.star.awt.XUserInputInterception.

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

Return type:

None

add_key_handler(handler)[source]

Adds a key handler.

Parameters:

handler (XKeyHandler) – The handler to be added.

Return type:

None

add_mouse_click_handler(handler)[source]

Adds a mouse click handler.

Parameters:

handler (XMouseClickHandler) – The handler to be added.

Return type:

None

remove_key_handler(handler)[source]

Removes a key handler.

Parameters:

handler (XKeyHandler) – The handler to be removed.

Return type:

None

remove_mouse_click_handler(handler)[source]

Removes a mouse click handler.

Parameters:

handler (XMouseClickHandler) – The handler to be removed.

Return type:

None