Class MAPopup

class ooodev.gui.menu.ma.MAPopup(app, node, lo_inst=None)[source]

Bases: LoInstPropsPartial

Class for manager menu by LibreOffice module.

Parameters:
  • app (str | Service) –

  • node (str) –

  • lo_inst (LoInst | None) –

__init__(app, node, lo_inst=None)[source]

Constructor

Parameters:
  • app (str | Service) – LibreOffice Module: calc, writer, draw, impress, math, main

  • node (str) – Menu Node such as private:resource/menubar/menubar

  • lo_inst (LoInst | None, optional) – LibreOffice instance. Defaults to None.

debug()[source]

Debug menu

insert(menu, after='', save=True)[source]

Insert new menu.

Parameters:
  • menu (dict) – New menu data

  • after (int, str, optional) – Insert in after menu (CommandURL). Defaults to “”.

  • save (bool, optional) – For persistent save. Defaults to True.

remove(menu)[source]

Remove menu.

Parameters:

menu (str) – Menu CommandURL

Return type:

None

property app: str

Gets the current app.

Return type:

str

property lo_inst: LoInst

Lo Instance

Return type:

LoInst