]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Toolbars.h
updated list of LyX translations
[lyx.git] / src / frontends / Toolbars.h
index eb10a4cdfd7e14c53da6809e68c5e8525b7a4a06..55ada415f95d18ef19ec355d428da343bf216cdf 100644 (file)
@@ -90,11 +90,13 @@ public:
        /// Show/hide the named toolbar.
        void display(std::string const & name, bool show);
 
-       /// get toolbar state (on/off/auto)
-       ToolbarInfo::Flags getToolbarState(std::string const & name);
+       /// get toolbar info
+       ToolbarInfo * getToolbarInfo(std::string const & name);
 
-       /// toggle the state of toolbars (on/off/auto)
-       void toggleToolbarState(std::string const & name);
+       /** toggle the state of toolbars (on/off/auto). Skip "auto"
+        * when allowauto is false.
+        */
+       void toggleToolbarState(std::string const & name, bool allowauto);
 
        /// Update the state of the toolbars.
        void update(bool in_math, bool in_table, bool review);