X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FUndo.cpp;h=3dcd54daa867b162d4dc9fc72aeacc202f390213;hb=4ba4d701f798488c098ecbc740c3020ed514cd96;hp=6b05ae484b4e995191998202920d682f36bffd0c;hpb=51fbea02a8f7dc1e360a61bdc95d5ac9200cb5f6;p=lyx.git diff --git a/src/Undo.cpp b/src/Undo.cpp index 6b05ae484b..3dcd54daa8 100644 --- a/src/Undo.cpp +++ b/src/Undo.cpp @@ -21,14 +21,14 @@ #include "Cursor.h" #include "debug.h" #include "BufferView.h" -#include "LyXText.h" +#include "Text.h" #include "Paragraph.h" #include "ParagraphList.h" #include "mathed/MathSupport.h" #include "mathed/MathData.h" -#include "insets/InsetBase.h" +#include "insets/Inset.h" #include @@ -104,9 +104,9 @@ void doRecordUndo(Undo::undo_kind kind, undo.array = new MathData(cell.cell()); } else { // some more effort needed here as 'the whole cell' of the - // main LyXText _is_ the whole document. + // main Text _is_ the whole document. // record the relevant paragraphs - LyXText const * text = cell.text(); + Text const * text = cell.text(); BOOST_ASSERT(text); ParagraphList const & plist = text->paragraphs(); ParagraphList::const_iterator first = plist.begin(); @@ -184,7 +184,7 @@ bool textUndoOrRedo(BufferView & bv, undo.array = 0; } else { // Some finer machinery is needed here. - LyXText * text = dit.text(); + Text * text = dit.text(); BOOST_ASSERT(text); BOOST_ASSERT(undo.pars); ParagraphList & plist = text->paragraphs();