]> git.lyx.org Git - lyx.git/blobdiff - src/undo.h
add config.h
[lyx.git] / src / undo.h
index 519b21252acc0e58eea1958b1927fd8a65af3789..494cf7b6fb70c056edaa1a3a2b08f935aaed314c 100644 (file)
@@ -29,6 +29,7 @@ namespace lyx {
 
 class BufferParams;
 class BufferView;
+class DocIterator;
 class LCursor;
 
 
@@ -85,7 +86,7 @@ public:
        /// the contents of the saved Paragraphs (for texted)
        ParagraphList pars;
        /// the stringified contents of the saved MathArray (for mathed)
-       std::string array;
+       docstring array;
        /// Only used in case of full backups
        BufferParams bparams;
        /// Only used in case of full backups
@@ -118,6 +119,8 @@ void finishUndo();
  */
 
 /// The general case: prepare undo for an arbitrary range.
+/// FIXME: replace LCursor with DocIterator. This is not possible right
+/// now because we need access to Buffer->params()!.
 void recordUndo(LCursor & cur, Undo::undo_kind kind,
        pit_type from, pit_type to);