]> git.lyx.org Git - lyx.git/blobdiff - src/undo.h
Implement os::current_root for native Win32 builds.
[lyx.git] / src / undo.h
index 366d9fc5155699fa528372587374a3b2c0a3b046..69bc307f0dbe6648850b9186eb59f7be3946e335 100644 (file)
@@ -45,7 +45,7 @@ structure ('Undo') _before_ it is changed in some edit operation.
 Obviously, the stored ranged should be as small as possible. However, it
 there is a lower limit: The StableDocIterator pointing stored in the undo
 struct must be valid after the changes, too, as it will used as a pointer
-where to insert the stored bits when performining undo. 
+where to insert the stored bits when performining undo.
 
 */
 
@@ -70,12 +70,12 @@ struct Undo {
        undo_kind kind;
        /// the position of the cursor
        StableDocIterator cursor;
-       /// the position of the cell described 
+       /// the position of the cell described
        StableDocIterator cell;
        /// counted from begin of cell
-       lyx::par_type from;
+       lyx::pit_type from;
        /// complement to end of this cell
-       lyx::par_type end;
+       lyx::pit_type end;
        /// the contents of the saved Paragraphs (for texted)
        ParagraphList pars;
        /// the stringified contents of the saved MathArray (for mathed)
@@ -102,10 +102,10 @@ void finishUndo();
 
 /// The general case: prepare undo for an arbitrary range.
 void recordUndo(LCursor & cur, Undo::undo_kind kind,
-       lyx::par_type from, lyx::par_type to);
+       lyx::pit_type from, lyx::pit_type to);
 
 /// Convenience: prepare undo for the range between 'from' and cursor.
-void recordUndo(LCursor & cur, Undo::undo_kind kind, lyx::par_type from);
+void recordUndo(LCursor & cur, Undo::undo_kind kind, lyx::pit_type from);
 
 /// Convenience: prepare undo for the single paragraph or cell
 /// containing the cursor