]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcollapsable.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetcollapsable.h
index ee90a458c26b49418eecb51b39872393a091841b..22697c4828e5bfb0c626e932baae3f2b77ff4087 100644 (file)
@@ -65,13 +65,11 @@ public:
        ///
        void setLabelFont(LyXFont & f);
        ///
-       int scroll(bool recursive = true) const;
-       ///
        bool isOpen() const { return status_ == Open || status_ == Inlined; }
        ///
        bool inlined() const { return status_ == Inlined; }
        ///
-       CollapseStatus status() const { return status_; }
+       CollapseStatus status() const;
        ///
        bool allowSpellCheck() const { return true; }
        ///
@@ -80,14 +78,11 @@ public:
        void setStatus(LCursor & cur, CollapseStatus st);
 
 protected:
-
        ///
        virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
        ///
        Dimension dimensionCollapsed() const;
        ///
-       int getMaxTextWidth(Painter & pain, UpdatableInset const *) const;
-       ///
        Box const & buttonDim() const;
        ///
        void edit(LCursor & cur, bool left);
@@ -112,6 +107,8 @@ private:
        mutable CollapseStatus status_;
        /// a substatus of the Open status, determined automatically in metrics
        mutable bool openinlined_;
+       /// the inset will automatically open when the cursor is inside
+       mutable bool autoOpen_;
        ///
        mutable Dimension textdim_;
 };