]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.h
fix bug #6584
[lyx.git] / src / Cursor.h
index 3464a54a233885f0b991e8e4ae862ecdfe4f3d01..205e56187b6dd261f554f573ebea76c1713ba33f 100644 (file)
@@ -228,8 +228,14 @@ public:
        void undispatched();
        /// the event was already dispatched
        void dispatched();
-       /// Set which update should be done
+       /// Set which screen update should be done
        void screenUpdateFlags(Update::flags f);
+       /// Forces an updateBuffer() call
+       void forceBufferUpdate();
+       /// Removes any pending updateBuffer() call
+       void clearBufferUpdate();
+       /// Do we need to call updateBuffer()?
+       bool needBufferUpdate() const;
        /**
         * don't call update() when done
         *
@@ -274,7 +280,8 @@ public:
        void recordUndo(UndoKind kind = ATOMIC_UNDO) const;
 
        /// Convenience: prepare undo for the inset containing the cursor
-       void recordUndoInset(UndoKind kind = ATOMIC_UNDO) const;
+       void recordUndoInset(UndoKind kind = ATOMIC_UNDO,
+                            Inset const * inset = 0) const;
 
        /// Convenience: prepare undo for the whole buffer
        void recordUndoFullDocument() const;