]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.h
Fix crash when running lyx -dbg insets -e ...
[lyx.git] / src / MenuBackend.h
index 169b9d56183794d59f6761d4035f4f9cd4a22250..c68018bbb0e1e1db8e14af631e2e4cc52153361f 100644 (file)
@@ -4,7 +4,7 @@
 *           LyX, The Document Processor
 *
 *           Copyright 1995 Matthias Ettrich
-*           Copyright 1995-2000 The LyX Team.
+*           Copyright 1995-2001 The LyX Team.
 *
 *           This file is Copyright 1999
 *           Jean-Marc Lasgouttes
@@ -44,8 +44,6 @@ public:
                Documents,
                ///
                Toc,
-               ///
-               References,
                /** This is a list of viewable formats
                    typically for the File->View menu. */
                ViewFormats,
@@ -57,7 +55,13 @@ public:
                ExportFormats,
                /** This is a list of importable formats
                    typically for the File->Export menu. */
-               ImportFormats
+               ImportFormats,
+               /** This is the list of floats that we can
+                   insert a list for. */
+               FloatListInsert,
+               /** This is the list of floats that we can
+                   insert. */
+               FloatInsert
        };
        /// Create a Command type MenuItem
        MenuItem(Kind kind, 
@@ -127,6 +131,8 @@ public:
        bool empty() const { return items_.empty(); }
        ///
        ItemList::size_type size() const { return items_.size(); }
+       ///
+       bool hasSubmenu(string const &) const;
         ///
         const_iterator begin() const {
                 return items_.begin();
@@ -163,7 +169,7 @@ public:
        ///
        void add(Menu const &);
        ///
-       bool hasMenu (string const &) const;
+       bool hasMenu(string const &) const;
        ///
        Menu & getMenu (string const &);
        ///