]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarBackend.h
move some selection related stuff over to textcursor.C
[lyx.git] / src / ToolbarBackend.h
index bbc3498f5ebd6c01e287fe3744940318948502d7..9a84eee9bc0b6a97cf48b1fc485025453bfbd37a 100644 (file)
@@ -68,16 +68,19 @@ public:
 
        /// iterator for all toolbars
        Toolbars::const_iterator begin() const {
-               return toolbars.begin();
+               return usedtoolbars.begin();
        }
 
        Toolbars::const_iterator end() const {
-               return toolbars.end();
+               return usedtoolbars.end();
        }
 
        /// read a toolbar from the file
        void read(LyXLex &);
 
+       /// read the used toolbars
+       void readToolbars(LyXLex &);
+
        /// return a full path of an XPM for the given action
        static string const getIcon(int action);
 
@@ -90,6 +93,9 @@ private:
 
        /// all the toolbars
        Toolbars toolbars;
+
+       /// toolbars listed
+       Toolbars usedtoolbars;
 };
 
 /// The global instance