X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetcollapsable.h;h=4a4f2fec1975ec54032431f4d9d3c762db02ff0d;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=539d1c78c9c8daee527db96a485f857393c3c008;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/insets/insetcollapsable.h b/src/insets/insetcollapsable.h index 539d1c78c9..4a4f2fec19 100644 --- a/src/insets/insetcollapsable.h +++ b/src/insets/insetcollapsable.h @@ -42,11 +42,13 @@ public: /// InsetCollapsable(BufferParams const &, CollapseStatus status = Open); /// + InsetCollapsable(InsetCollapsable const & rhs); + /// void read(Buffer const &, LyXLex &); /// void write(Buffer const &, std::ostream &) const; /// - void metrics(MetricsInfo &, Dimension &) const; + bool metrics(MetricsInfo &, Dimension &) const; /// void draw(PainterInfo & pi, int x, int y) 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.