]> git.lyx.org Git - features.git/blobdiff - src/Undo.h
Bug 5173: Undo Grouping
[features.git] / src / Undo.h
index dbb7a17649b300df94f42dcc1d8ddf2b1044990e..b0889319ab988f027475b7374bb33efd47d95230 100644 (file)
@@ -79,6 +79,12 @@ public:
        ///
        bool hasRedoStack() const;
 
+       /// open a new group of undo operations. Groups can be nested.
+       void beginUndoGroup();
+
+       /// end the current undo group
+       void endUndoGroup();
+
        /// The general case: prepare undo for an arbitrary range.
        void recordUndo(DocIterator const & cur, UndoKind kind,
                pit_type from, pit_type to);