]> git.lyx.org Git - lyx.git/blobdiff - src/undo.h
Fix loop when opening TOC widget in an empty document, basically by Richard Heck.
[lyx.git] / src / undo.h
index 8ce44ce962da5eed385e37b57a40d6b4d0177390..54f76ae5235b765261db3463dfdd7b02e1bd7689 100644 (file)
@@ -17,8 +17,8 @@
 #define UNDO_H
 
 #include "dociterator.h"
-#include "ParagraphList.h"
 #include "bufferparams.h"
+#include "ParagraphList_fwd.h"
 
 #include "support/types.h"
 
@@ -29,7 +29,9 @@ namespace lyx {
 
 class BufferParams;
 class BufferView;
+class DocIterator;
 class LCursor;
+class MathArray;
 
 
 /**
@@ -83,9 +85,9 @@ public:
        /// complement to end of this cell
        pit_type end;
        /// the contents of the saved Paragraphs (for texted)
-       ParagraphList pars;
-       /// the stringified contents of the saved MathArray (for mathed)
-       docstring array;
+       ParagraphList pars;
+       /// the contents of the saved MathArray (for mathed)
+       MathArray * array;
        /// Only used in case of full backups
        BufferParams bparams;
        /// Only used in case of full backups
@@ -118,6 +120,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);