X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FToolbarBackend.h;h=d25b59da5e0faa3d9c1fe30004453d81fd0e4194;hb=1acedf11da79f509da706bc8d6d2f491c9676087;hp=29c541e093ed5532e4e1026e5e29ddab8873f488;hpb=00e305c9d9bd8b0ff54b6c58adb6192d5934ed60;p=lyx.git diff --git a/src/ToolbarBackend.h b/src/ToolbarBackend.h index 29c541e093..d25b59da5e 100644 --- a/src/ToolbarBackend.h +++ b/src/ToolbarBackend.h @@ -21,7 +21,7 @@ namespace lyx { -class LyXLex; +class Lexer; class ToolbarItem { public: @@ -36,7 +36,7 @@ public: LAYOUTS, /// a special widget to insert tabulars TABLEINSERT, - /// + /// POPUPMENU, /// ICONPALETTE @@ -77,7 +77,8 @@ public: LEFT = 64, //< show at left RIGHT = 128, //< show at right REVIEW = 256, //< show when change tracking is enabled - AUTO = 512 //< only if AUTO is set, when MATH, TABLE and REVIEW is used + AUTO = 512, //< only if AUTO is set, when MATH, TABLE and REVIEW is used + MATHMACROTEMPLATE = 1024 //< show in math macro template }; /// the toolbar items typedef std::vector Items; @@ -97,7 +98,7 @@ public: Flags flags; /// read a toolbar from the file - ToolbarInfo & read(LyXLex &); + ToolbarInfo & read(Lexer &); private: /// add toolbar item @@ -122,17 +123,18 @@ public: Toolbars::iterator end() { return usedtoolbars.end(); } /// read toolbars from the file - void readToolbars(LyXLex &); + void readToolbars(Lexer &); /// read ui toolbar settings - void readToolbarSettings(LyXLex &); + void readToolbarSettings(Lexer &); + /// - ToolbarInfo const & getToolbar(std::string const & name) const; + ToolbarInfo const * getDefinedToolbarInfo(std::string const & name) const; /// - ToolbarInfo & getToolbar(std::string const & name); + ToolbarInfo * getUsedToolbarInfo(std::string const & name); private: - /// all the toolbars + /// all the defined toolbars Toolbars toolbars; /// toolbars listed