]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcommand.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetcommand.h
index 2b558aaeb40ba42a0a9c1bd063ee9706c39a463e..a2397dba654e02ac2d2895395e20f89506e32522 100644 (file)
@@ -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_;
 };