]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsable.h
Fix crash on recursive include (bug #8994)
[lyx.git] / src / insets / InsetCollapsable.h
index e712fba0b3775b6bc674bdce00a66c1329c6d6a8..1c990f93c88c4c2103ac5695f97a4a0a102d59fc 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 &);
        ///
@@ -111,6 +111,10 @@ public:
 
        /// Default looks
        virtual InsetLayout::InsetDecoration decoration() const;
+       /// Inset font
+       virtual FontInfo getFont() const { return getLayout().font(); }
+       /// Label font
+       virtual FontInfo getLabelfont() const { return getLayout().labelfont(); }
        ///
        enum Geometry {
                TopButton,
@@ -141,7 +145,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: