ooodev.adapter.ui.context_menu_interception_partial module

class ooodev.adapter.ui.context_menu_interception_partial.ContextMenuInterceptionPartial(component, interface=com.sun.star.ui.XContextMenuInterception)[source]

Bases: object

Partial Class for XContextMenuInterception.

New in version 0.20.0.

Parameters:
  • component (XContextMenuInterception) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.ui.XContextMenuInterception)[source]

Constructor

Parameters:
  • component (XContextMenuInterception) – UNO Component that implements com.sun.star.ui.XContextMenuInterception.

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

Return type:

None

register_context_menu_interceptor(interceptor)[source]

Registers a context menu interceptor, which will become the first interceptor in the chain of registered interceptors.

Parameters:

interceptor (XContextMenuInterceptor) – The interceptor to be registered.

Return type:

None

release_context_menu_interceptor(interceptor)[source]

Releases a context menu interceptor.

The order of removals is arbitrary. It is not necessary to remove the last registered interceptor first.

Parameters:

interceptor (XContextMenuInterceptor) – The interceptor to be released.

Return type:

None