A few group menus contains sub menus which have to provide the same entries than the standard menu. For example, the comment #10 of the bug #142990 proposes to add a sub menu entry to the "insert" group that is identical to the "field" sub menu of the standard "insert" menu ? In order to decrease the discrepancies between the 2 sub menus, could we possibly use the same template in order to create the 2 sub-menus ? Other sub menus may benefit from this feature.
The notebookbar variants are based on ui files maintained via Glade. I don't see how a kind of template could work. Or am I missing the point?
(In reply to Jérôme from comment #0) > For example, the comment #10 of the bug #142990 proposes to add a sub menu > entry to the "insert" group that is identical to the "field" sub menu of the > standard "insert" menu ? > > In order to decrease the discrepancies between the 2 sub menus, could we > possibly use the same template in order to create the 2 sub-menus ? This is already the case. The "Field" submenu is defined in a separate xml file at sw/uiconfig/swriter/popupmenu/insertfield.xml, and from there pulled to both the main menu and the toolbar by .uno:InsertFieldCtrl. Moreover, .uno:InsertFieldCtrl is already present in Groupedbar Compact but under the "References" menu, so Bug 142990 appears to be WFM (unless we want to move it to the insert menu, which might be more familiar to some users).
WFM according Maxim's comment