]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCollapsible.h
XHTML/DocBook: merge code duplicates for vertical alignment.
[features.git] / src / insets / InsetCollapsible.h
index f07aec09f773394da90cb480b029415400d14808..0f2711afbae8dfe035a358652566aad512acb717 100644 (file)
@@ -18,6 +18,8 @@
 
 #include "Box.h"
 
+#include "support/unique_ptr.h"
+
 #include <map>
 
 namespace lyx {
@@ -25,9 +27,9 @@ namespace lyx {
 class CursorSlice;
 class InsetLayout;
 
-namespace support { class TempFile; }
+enum class InsetDecoration : int;
 
-namespace frontend { class Painter; }
+namespace support { class TempFile; }
 
 /** A collapsible text inset
 
@@ -122,11 +124,7 @@ 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(); }
+       virtual InsetDecoration decoration() const;
        ///
        enum Geometry {
                TopButton,
@@ -147,10 +145,9 @@ public:
        ///
        bool setMouseHover(BufferView const * bv, bool mouse_hover) const override;
        ///
-       ColorCode backgroundColor(PainterInfo const &) const override
-               { return getLayout().bgcolor(); }
+       ColorCode backgroundColor(PainterInfo const &) const override;
        ///
-       ColorCode labelColor() const override { return getLayout().labelfont().color(); }
+       ColorCode labelColor() const override;
        ///
        InsetCode lyxCode() const override { return COLLAPSIBLE_CODE; }