]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarBackend.h
Fix 3188, update the labels at each Caption insertion.
[lyx.git] / src / ToolbarBackend.h
index 59f1ee65ca5221f18e3706128fe2aa1264bde75e..7d9fc9f6b914729081bd8c95f033a996287efb0a 100644 (file)
@@ -18,6 +18,9 @@
 #include <vector>
 
 
+namespace lyx {
+
+
 class LyXLex;
 
 
@@ -35,7 +38,7 @@ public:
        };
 
        /// action, tooltip
-       typedef std::pair<FuncRequest, lyx::docstring> Item;
+       typedef std::pair<FuncRequest, docstring> Item;
 
        /// the toolbar items
        typedef std::vector<Item> Items;
@@ -49,7 +52,9 @@ public:
                TOP = 16, //< show at top
                BOTTOM = 32, //< show at bottom
                LEFT = 64, //< show at left
-               RIGHT = 128 //< show at right
+               RIGHT = 128, //< show at right
+               REVIEW = 256, //< shown when change tracking is enabled
+               AUTO = 512  //< only if AUTO is set, will MATH, TABLE and REIVEW is used
        };
 
        /// a toolbar
@@ -71,13 +76,13 @@ public:
        ToolbarBackend();
 
        /// iterator for all toolbars
-       Toolbars::const_iterator begin() const {
-               return usedtoolbars.begin();
-       }
+       Toolbars::const_iterator begin() const { return usedtoolbars.begin(); }
+
+       Toolbars::const_iterator end() const { return usedtoolbars.end(); }
 
-       Toolbars::const_iterator end() const {
-               return usedtoolbars.end();
-       }
+       Toolbars::iterator begin() { return usedtoolbars.begin(); }
+
+       Toolbars::iterator end() { return usedtoolbars.end(); }
 
        /// read a toolbar from the file
        void read(LyXLex &);
@@ -91,7 +96,7 @@ public:
 private:
        /// add the given lfun with tooltip if relevant
        void add(Toolbar & tb, FuncRequest const &,
-                lyx::docstring const & tooltip = lyx::docstring());
+                docstring const & tooltip = docstring());
 
        /// all the toolbars
        Toolbars toolbars;
@@ -104,4 +109,7 @@ private:
 extern ToolbarBackend toolbarbackend;
 
 
+
+} // namespace lyx
+
 #endif // TOOLBAR_BACKEND_H