// convenience function
void LyXText::redoParagraph()
{
- clearSelection();
+ bv()->clearSelection();
redoParagraph(cursorPar());
setCursorIntern(cursor().par(), cursor().pos());
}
return;
bv()->resetAnchor();
setCursor(to.par(), to.pos());
- setSelection();
+ bv()->setSelection();
}
recordUndo(Undo::INSERT, this, startc.par());
getPar(startc)->acceptChange(startc.pos(), endc.pos());
finishUndo();
- clearSelection();
+ bv()->clearSelection();
redoParagraph(getPar(startc));
setCursorIntern(startc.par(), 0);
}
recordUndo(Undo::INSERT, this, startc.par());
getPar(startc)->rejectChange(startc.pos(), endc.pos());
finishUndo();
- clearSelection();
+ bv()->clearSelection();
redoParagraph(getPar(startc));
setCursorIntern(startc.par(), 0);
}
setCursor(tmpcursor, tmpcursor.par(), tmpcursor.pos());
bv()->resetAnchor();
cursor() = tmpcursor;
- setSelection();
+ bv()->setSelection();
cutSelection(true, false);
}
}
setCursor(tmpcursor, tmpcursor.par(), tmpcursor.pos());
bv()->resetAnchor();
cursor() = tmpcursor;
- setSelection();
+ bv()->setSelection();
cutSelection(true, false);
}
}
setCursor(tmpcursor, tmpcursor.par(), tmpcursor.pos());
bv()->resetAnchor();
cursor() = tmpcursor;
- setSelection();
+ bv()->setSelection();
// What is this test for ??? (JMarc)
if (!bv()->selection().set())
deleteWordForward();
{
return bv()->anchor();
}
-
-
-void LyXText::setSelection()
-{
- bv()->selection().set(true);
- // a selection with no contents is not a selection
- if (cursor().par() == anchor().par() && cursor().pos() == anchor().pos())
- bv()->selection().set(false);
-}
-
-
-void LyXText::clearSelection()
-{
- bv()->selection().set(false);
- bv()->selection().mark(false);
- bv()->resetAnchor();
- // reset this in the bv()!
- if (bv() && bv()->text())
- bv()->unsetXSel();
-}
-