ooodev.adapter.awt.top_window_partial module

class ooodev.adapter.awt.top_window_partial.TopWindowPartial(component, interface=com.sun.star.awt.XTopWindow)[source]

Bases: object

Partial class for XTopWindow.

Parameters:
  • component (XTopWindow) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

add_top_window_listener(listener)[source]

Adds the specified top window listener to receive window events from this window.

Return type:

None

Parameters:

listener (com.sun.star.awt.XTopWindowListener) –

remove_top_window_listener(listener)[source]

Removes the specified top window listener so that it no longer receives window events from this window.

Return type:

None

Parameters:

listener (com.sun.star.awt.XTopWindowListener) –

set_menu_bar(menu)[source]

Sets a menu bar.

Return type:

None

Parameters:

menu (com.sun.star.awt.XMenuBar) –

to_back()[source]

Places this window at the bottom of the stacking order and makes the corresponding adjustment to other visible windows.

Return type:

None

to_front()[source]

Places this window at the top of the stacking order and shows it in front of any other windows.

Return type:

None