]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsible.h
Change cursor shape for clickable math insets
[lyx.git] / src / insets / InsetCollapsible.h
index 55044b47decd24b20f567b983330e6036551108d..0f2711afbae8dfe035a358652566aad512acb717 100644 (file)
@@ -18,6 +18,8 @@
 
 #include "Box.h"
 
+#include "support/unique_ptr.h"
+
 #include <map>
 
 namespace lyx {
@@ -25,6 +27,8 @@ namespace lyx {
 class CursorSlice;
 class InsetLayout;
 
+enum class InsetDecoration : int;
+
 namespace support { class TempFile; }
 
 /** A collapsible text inset
@@ -120,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,
@@ -145,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; }