]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsable.h
Circumvent odd stmary font metrics (part of #9990).
[lyx.git] / src / insets / InsetCollapsable.h
index 4008cee7425662bd7daab785f914de998c5d13ef..f2ce0caf3ca976904ec983f5c1c63cc6c92e64d9 100644 (file)
@@ -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,11 +145,9 @@ public:
        ///
        virtual bool usePlainLayout() const { return true; }
        ///
-       docstring contextMenu(BufferView const & bv, int x, int y) const;
+       std::string contextMenu(BufferView const & bv, int x, int y) const;
        ///
-       docstring contextMenuName() const;
-       ///
-       docstring floatName(std::string const & type) const;
+       std::string contextMenuName() const;
 protected:
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);