]> git.lyx.org Git - features.git/blobdiff - src/Undo.h
Clean-up the undo API
[features.git] / src / Undo.h
index 300ef6bbbb0cca0c5d9f07579a524c47e625e2ae..789de5f39f69209dd6bae6cf8e0c51e47b035d94 100644 (file)
@@ -94,24 +94,14 @@ public:
         * give an inclusive range. This is called before you make the
         * changes to the paragraph, and it will record the original
         * information of the paragraphs in the undo stack.
+        * Kind of undo is always ATOMIC_UNDO.
         */
-       void recordUndo(CursorData const & cur, UndoKind kind,
-               pit_type from, pit_type to);
-
-       /// Convenience: record undo information for the range between
-       /// 'from' and cursor.
-       void recordUndo(CursorData const & cur, UndoKind kind, pit_type from);
+       void recordUndo(CursorData const & cur, pit_type from, pit_type to);
 
        /// Convenience: record undo information for the single
        /// paragraph or cell containing the cursor.
        void recordUndo(CursorData const & cur, UndoKind kind = ATOMIC_UNDO);
 
-       /// Convenience: record undo information for the inset
-       /// containing the cursor.
-       void recordUndoInset(CursorData const & cur,
-                            UndoKind kind = ATOMIC_UNDO,
-                            Inset const * inset = 0);
-
        /// Convenience: record undo for buffer parameters
        void recordUndoBufferParams(CursorData const & cur);