]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsable.h
Context menu item to add unknown branch (rest of #7643)
[lyx.git] / src / insets / InsetCollapsable.h
index e712fba0b3775b6bc674bdce00a66c1329c6d6a8..d7d050e3fea9a44aba29ea8d1b5b28026714f58d 100644 (file)
 #ifndef INSETCOLLAPSABLE_H
 #define INSETCOLLAPSABLE_H
 
-#include "Inset.h"
 #include "InsetText.h"
 
 #include "Box.h"
-#include "TextClass.h"
+
+#include <map>
 
 namespace lyx {
 
@@ -45,7 +45,7 @@ public:
        ///
        docstring toolTip(BufferView const & bv, int x, int y) const;
        ///
-       docstring name() const { return from_ascii("Collapsable"); }
+       docstring layoutName() const { return from_ascii("Collapsable"); }
        ///
        void read(Lexer &);
        ///
@@ -141,7 +141,9 @@ public:
        ///
        virtual bool usePlainLayout() const { return true; }
        ///
-       virtual docstring contextMenu(BufferView const & bv, int x, int y) const;
+       std::string contextMenu(BufferView const & bv, int x, int y) const;
+       ///
+       std::string contextMenuName() const;
        ///
        docstring floatName(std::string const & type) const;
 protected: