]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarBackend.h
Improve fullscreen capabilities ( http://bugzilla.lyx.org/show_bug.cgi?id=4146 ).
[lyx.git] / src / ToolbarBackend.h
index c7d32cf449ac96d88c76139c0c15852a1bd43068..d25b59da5e0faa3d9c1fe30004453d81fd0e4194 100644 (file)
@@ -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<ToolbarItem> Items;
@@ -126,13 +127,14 @@ public:
 
        /// read ui toolbar settings
        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