]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcollapsable.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetcollapsable.h
index 82bae54483cd59eae7932a2cd4e3cdc8efafd63b..4a4f2fec1975ec54032431f4d9d3c762db02ff0d 100644 (file)
@@ -42,6 +42,8 @@ public:
        ///
        InsetCollapsable(BufferParams const &, CollapseStatus status = Open);
        ///
+       InsetCollapsable(InsetCollapsable const & rhs);
+       ///
        void read(Buffer const &, LyXLex &);
        ///
        void write(Buffer const &, std::ostream &) 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.