TO_EXPORTFORMATS,
TO_IMPORTFORMATS,
TO_UPDATEFORMATS,
- TO_VIEWFORMATS
+ TO_VIEWFORMATS,
+ TO_DYNAMICMENU
};
struct LexerKeyword toolTags[] = {
+ { "dynamicmenu", TO_DYNAMICMENU},
{ "end", TO_ENDTOOLBAR },
{ "exportformats", TO_EXPORTFORMATS },
{ "iconpalette", TO_ICONPALETTE },
}
break;
+ case TO_DYNAMICMENU: {
+ if (lex.next(true)) {
+ string const name = lex.getString();
+ lex.next(true);
+ docstring const label = lex.getDocString();
+ add(ToolbarItem(ToolbarItem::DYNAMICMENU, name, label));
+ }
+ break;
+ }
+
case TO_STICKYPOPUPMENU:
if (lex.next(true)) {
string const pname = lex.getString();