]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.h
citation patch from Angus
[lyx.git] / src / MenuBackend.h
index b434e885f8d10a791fd2455cc3698c0833f4c946..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, 
@@ -86,13 +99,15 @@ public:
        ///
        Menu & add(MenuItem const &);
        ///
-       void read(LyXLex &);
+       Menu & read(LyXLex &);
        /// 
        bool menubar() const { return menubar_; }
        /// 
        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_;
-       ///
 };
 
 
@@ -128,6 +142,8 @@ public:
        ///
        bool hasMenu (string const &) const;
        ///
+       Menu & getMenu (string const &);
+       ///
        Menu const & getMenu (string const &) const;
        //
        bool empty() const { return menulist_.empty(); }