]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcollapsable.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetcollapsable.h
index 539d1c78c9c8daee527db96a485f857393c3c008..5bc909ea621afe21d999b544ab56f2fd7bb4d5d9 100644 (file)
@@ -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:
        ///
@@ -95,7 +99,7 @@ protected:
        ///
        void setInlined() { status_ = Inlined; }
        ///
-       docstring floatName(std::string const & type, BufferParams const &);
+       docstring floatName(std::string const & type, BufferParams const &) const;
 
 protected:
        ///
@@ -117,6 +121,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.