ooodev.adapter.frame.menu_bar_merging_acceptor_partial module

class ooodev.adapter.frame.menu_bar_merging_acceptor_partial.MenuBarMergingAcceptorPartial(component, interface=com.sun.star.frame.XMenuBarMergingAcceptor)[source]

Bases: object

Partial class for XMenuBarMergingAcceptor.

Parameters:
  • component (XMenuBarMergingAcceptor) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.frame.XMenuBarMergingAcceptor)[source]

Constructor

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

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

Return type:

None

remove_merged_menu_bar()[source]

removes a previously set merged menu bar and sets a previously created menu bar back.

Return type:

None

set_merged_menu_bar(merged_menu_bar)[source]

allows to set a merged menu bar.

This function is normally used to provide inplace editing where functions from two application parts, container application and embedded object, are available to the user simultaneously. A menu bar which is set by this method has a higher priority than others created by com.sun.star.frame.XLayoutManager interface. Settings of a merged menu bar cannot be retrieved.

Return type:

bool

Parameters:

merged_menu_bar (com.sun.star.container.XIndexAccess) –