]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.h
citation patch from Angus
[lyx.git] / src / MenuBackend.h
index 161d9283dfb6c66e97d59c13985d254c01ba7966..d0a3e1e8dd5ce80f37aab63afc24e11ce1bbe710 100644 (file)
@@ -40,7 +40,20 @@ public:
                Lastfiles,
                /** This is the list of opened Documents,
                    typically for the Documents menu. */
-               Documents
+               Documents,
+               ///
+               Toc,
+               ///
+               References,
+               /** This is a list of viewable formats
+                   typically for the Documents menu. */
+               ViewFormats,
+               /** This is a list of updatable formats
+                   typically for the Documents menu. */
+               UpdateFormats,
+               /** This is a list of exportable formats
+                   typically for the Documents menu. */
+               ExportFormats
        };
        /// Create a Command type MenuItem
        MenuItem(Kind kind, 
@@ -93,6 +106,8 @@ public:
        string const & name() const { return name_; }
        ///
        bool empty() const { return items_.empty(); }
+       ///
+       ItemList::size_type size() const { return items_.size(); }
         ///
         const_iterator begin() const {
                 return items_.begin();
@@ -108,7 +123,6 @@ private:
        bool menubar_;
        ///
        string name_;
-       ///
 };