redoParagraphs(start, endpit);
updateCounters();
- redoCursor();
}
// this handles the counter labels, and also fixes up
// depth values for follow-on (child) paragraphs
updateCounters();
- redoCursor();
}
unFreezeUndo();
redoParagraphs(beg, ++end);
- redoCursor();
}
if (implicitSelection) {
clearSelection();
cursor = resetCursor;
- setCursor(cursorPar(), cursor.pos());
selection.cursor = cursor;
}
}
// Reset cursors to their original position.
cursor = reset_cursor;
- setCursor(cursorPar(), cursor.pos());
selection.cursor = cursor;
// Clear the implicit selection.
}
redoParagraphs(getPar(selStart()), endpit);
- redoCursor();
}
// need a valid cursor. (Lgb)
clearSelection();
- redoCursor();
updateCounters();
}
redoParagraphs(cursorPar(), endpit);
- setCursor(cursor.par(), cursor.pos());
clearSelection();
selection.cursor = cursor;
bv()->buffer()->insertStringAsLines(pit, pos, current_font, str);
redoParagraphs(cursorPar(), endpit);
- setCursor(cursorPar(), cursor.pos());
selection.cursor = cursor;
setCursor(pit, pos);
setSelection();
}
-void LyXText::redoCursor()
-{
- setCursor(cursor, cursor.par(), cursor.pos(), cursor.boundary());
-
- if (!selection.set())
- return;
-
- LyXCursor tmpcursor = cursor;
- setCursor(selection.cursor.par(), selection.cursor.pos());
- selection.cursor = cursor;
- setCursor(tmpcursor.par(), tmpcursor.pos());
- setSelection();
-}
-
-
void LyXText::setCursor(LyXCursor & cur, paroffset_type par,
pos_type pos, bool boundary)
{
// pagragraph because we erased the last character.
if (cur.pos() > getPar(cur)->size())
cur.pos(getPar(cur)->size());
-
- // recompute row et al. for this cursor
- setCursor(cur, cur.par(), cur.pos(), cur.boundary());
}
cursor.par(parOffset(tmppit));
redoParagraph();
- // correct cursor y
- setCursorIntern(cursor.par(), cursor.pos());
-
if (selection_position_was_oldcursor_position) {
// correct selection
selection.cursor = cursor;
if (old_pit->stripLeadingSpaces()) {
redoParagraph(old_pit);
- // correct cursor y
- setCursorIntern(cursor.par(), cursor.pos());
selection.cursor = cursor;
}
return false;