BOOST_ASSERT(text);
ParagraphList const & plist = text->paragraphs();
ParagraphList::const_iterator first = plist.begin();
BOOST_ASSERT(text);
ParagraphList const & plist = text->paragraphs();
ParagraphList::const_iterator first = plist.begin();
- LCursor & cur, pit_type first_pit, pit_type last_pit,
+ Cursor & cur, pit_type first_pit, pit_type last_pit,
// This does the actual undo/redo.
//lyxerr << "undo, performing: " << undo << std::endl;
// This does the actual undo/redo.
//lyxerr << "undo, performing: " << undo << std::endl;
{
Buffer * buf = cur.bv().buffer();
recordUndo(kind, cur, first, last, buf->undostack());
{
Buffer * buf = cur.bv().buffer();
recordUndo(kind, cur, first, last, buf->undostack());
{
recordUndo(kind, cur, cur.pit(), cur.pit());
}
{
recordUndo(kind, cur, cur.pit(), cur.pit());
}
c.pop();
Buffer * buf = cur.bv().buffer();
doRecordUndo(kind, c, c.pit(), c.pit(), cur,
c.pop();
Buffer * buf = cur.bv().buffer();
doRecordUndo(kind, c, c.pit(), c.pit(), cur,
{
recordUndo(kind, cur, cur.selBegin().pit(), cur.selEnd().pit());
}
{
recordUndo(kind, cur, cur.selBegin().pit(), cur.selEnd().pit());
}
{
recordUndo(kind, cur, cur.pit(), from);
}
{
recordUndo(kind, cur, cur.pit(), from);
}
pit_type from, pit_type to)
{
recordUndo(kind, cur, from, to);
pit_type from, pit_type to)
{
recordUndo(kind, cur, from, to);