///
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;
///
bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
///
void setStatus(LCursor & cur, CollapseStatus st);
+ ///
+ bool setMouseHover(bool mouse_hover);
protected:
///
///
void setInlined() { status_ = Inlined; }
///
- docstring floatName(std::string const & type, BufferParams const &);
+ docstring floatName(std::string const & type, BufferParams const &) const;
protected:
///
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.