X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCollapsable.h;h=1c990f93c88c4c2103ac5695f97a4a0a102d59fc;hb=e15d3d35cba7266d8a1a22c7e4cd92d12599e103;hp=0ec354be7460e7e4b8c545e84a8a7e0401042516;hpb=708b73cab792f7398e7b2f977dd6d2f98f6281d9;p=lyx.git diff --git a/src/insets/InsetCollapsable.h b/src/insets/InsetCollapsable.h index 0ec354be74..1c990f93c8 100644 --- a/src/insets/InsetCollapsable.h +++ b/src/insets/InsetCollapsable.h @@ -14,11 +14,11 @@ #ifndef INSETCOLLAPSABLE_H #define INSETCOLLAPSABLE_H -#include "Inset.h" #include "InsetText.h" #include "Box.h" -#include "TextClass.h" + +#include namespace lyx { @@ -37,7 +37,7 @@ public: /// InsetCollapsable(InsetCollapsable const & rhs); /// - ~InsetCollapsable(); + virtual ~InsetCollapsable(); /// InsetCollapsable * asInsetCollapsable() { return this; } /// @@ -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 &); /// @@ -68,6 +68,8 @@ public: bool editable() const; /// bool hasSettings() const { return true; } + /// + bool clickable(int x, int y) const; /// can we go further down on mouse click? bool descendable(BufferView const & bv) const; /// @@ -109,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, @@ -127,7 +133,7 @@ public: /// bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; /// - bool setMouseHover(BufferView const * bv, bool mouse_hover); + bool setMouseHover(BufferView const * bv, bool mouse_hover) const; /// ColorCode backgroundColor(PainterInfo const &) const { return getLayout().bgcolor(); } @@ -139,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: