ParagraphList::iterator & beg,
ParagraphList::iterator & end)
{
- if (!text.selection.set()) {
+ if (!text.bv()->selection().set()) {
beg = text.cursorPar();
end = boost::next(beg);
} else {
void LyXText::setFont(LyXFont const & font, bool toggleall)
{
// if there is no selection just set the current_font
- if (!selection.set()) {
+ if (!bv()->selection().set()) {
// Determine basis font
LyXFont layoutfont;
if (cursor().pos() < cursorPar()->beginOfBody())
selectWordWhenUnderCursor(lyx::PREVIOUS_WORD);
string idxstring;
- if (!selection.set())
+ if (!bv()->selection().set())
bv()->owner()->message(_("Nothing to index!"));
else if (selStart().par() != selEnd().par())
bv()->owner()->message(_("Cannot index more than one paragraph!"));
bv()->stuffClipboard(selectionAsString(*bv()->buffer(), true));
// This doesn't make sense, if there is no selection
- if (!selection.set())
+ if (!bv()->selection().set())
return;
// OK, we have a selection. This is always between selStart()
bv()->stuffClipboard(selectionAsString(*bv()->buffer(), true));
// this doesnt make sense, if there is no selection
- if (!selection.set())
+ if (!bv()->selection().set())
return;
// ok we have a selection. This is always between selStart()
bool LyXText::deleteEmptyParagraphMechanism(CursorSlice const & old_cursor)
{
// Would be wrong to delete anything if we have a selection.
- if (selection.set())
+ if (bv()->selection().set())
return false;
// Don't do anything if the cursor is invalid