X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetcommand.h;h=a2397dba654e02ac2d2895395e20f89506e32522;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=2b558aaeb40ba42a0a9c1bd063ee9706c39a463e;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/insets/insetcommand.h b/src/insets/insetcommand.h index 2b558aaeb4..a2397dba65 100644 --- a/src/insets/insetcommand.h +++ b/src/insets/insetcommand.h @@ -38,7 +38,7 @@ public: /// ~InsetCommand(); /// - void metrics(MetricsInfo &, Dimension &) const; + bool metrics(MetricsInfo &, Dimension &) const; /// void draw(PainterInfo & pi, int x, int y) const; /// @@ -47,9 +47,6 @@ public: /// virtual void read(Buffer const &, LyXLex & lex) { p_.read(lex); } - /// Can remove one InsetBibKey is modified - /// FIXME remove - void scanCommand(std::string const & c) { p_.scanCommand(c); }; /// virtual int latex(Buffer const &, odocstream &, OutputParams const &) const; @@ -91,6 +88,8 @@ public: std::string const getSecOptions() const { return p_.getSecOptions(); } /// RenderButton & button() const { return button_; } + /// + bool setMouseHover(bool mouse_hover); protected: /// @@ -128,6 +127,8 @@ private: /// InsetCommandParams p_; std::string mailer_name_; + /// changes color when mouse enters/leaves this inset + bool mouse_hover_; mutable bool updateButtonLabel_; mutable RenderButton button_; };