X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetcollapsable.h;h=4a4f2fec1975ec54032431f4d9d3c762db02ff0d;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=82bae54483cd59eae7932a2cd4e3cdc8efafd63b;hpb=e24bf64c68102691fc76081de9fb57926b482726;p=lyx.git diff --git a/src/insets/insetcollapsable.h b/src/insets/insetcollapsable.h index 82bae54483..4a4f2fec19 100644 --- a/src/insets/insetcollapsable.h +++ b/src/insets/insetcollapsable.h @@ -42,6 +42,8 @@ public: /// InsetCollapsable(BufferParams const &, CollapseStatus status = Open); /// + InsetCollapsable(InsetCollapsable const & rhs); + /// void read(Buffer const &, LyXLex &); /// void write(Buffer const &, std::ostream &) const; @@ -80,6 +82,8 @@ public: bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const; /// void setStatus(LCursor & cur, CollapseStatus st); + /// + bool setMouseHover(bool mouse_hover); protected: /// @@ -94,6 +98,8 @@ protected: InsetBase * editXY(LCursor & cur, int x, int y); /// void setInlined() { status_ = Inlined; } + /// Is the width forced to some value? + virtual bool hasFixedWidth() const { return false; } /// docstring floatName(std::string const & type, BufferParams const &); @@ -117,6 +123,8 @@ private: mutable bool autoOpen_; /// mutable Dimension textdim_; + /// changes color when mouse enters/leaves this inset + bool mouse_hover_; }; // A helper function that pushes the cursor out of the inset.