X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fundo.h;h=494cf7b6fb70c056edaa1a3a2b08f935aaed314c;hb=e5a46922e916a06ad1b958d5895cc3cfb4f13d2c;hp=519b21252acc0e58eea1958b1927fd8a65af3789;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/undo.h b/src/undo.h index 519b21252a..494cf7b6fb 100644 --- a/src/undo.h +++ b/src/undo.h @@ -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);