#define UNDO_H
#include "dociterator.h"
-#include "ParagraphList.h"
#include "bufferparams.h"
+#include "ParagraphList_fwd.h"
#include "support/types.h"
class BufferParams;
class BufferView;
+class DocIterator;
class LCursor;
+class MathArray;
/**
/// 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
*/
/// 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);