SpellcheckerWidget * p;
///
DockView * dv_;
- ///
+ ///
GuiView * gv_;
/// current word being checked and lang code
WordLangTuple word_;
// restore cursor position
bvcur.setCursor(start_);
bvcur.clearSelection();
- bv->processUpdateFlags(Update::Force | Update::FitCursor);
+ bv->processUpdateFlags(Update::Force | Update::FitCursor);
}
}
}
DocIterator end = to;
if (from.pit() != end.pit()) {
- // there are multiple paragraphs in selection
+ // there are multiple paragraphs in selection
Cursor & bvcur = bv->cursor();
bvcur.setCursor(from);
bvcur.clearSelection();
int const size = end.pos() - from.pos();
bv->putSelectionAt(from, size, false);
}
- bv->processUpdateFlags(Update::Force | Update::FitCursor);
+ bv->processUpdateFlags(Update::Force | Update::FitCursor);
}
void SpellcheckerWidget::Private::forward()
BufferView * bv = d->gv_->documentBufferView();
if (bv == 0)
return false;
- std::set<Language const *> languages =
+ std::set<Language const *> languages =
bv->buffer().masterBuffer()->getLanguages();
if (!languages.empty())
d->setLanguage(*languages.begin());
return;
docstring const textfield = qstring_to_ucs4(d->ui.wordED->text());
docstring const replacement = qstring_to_ucs4(d->ui.replaceCO->currentText());
- docstring const datastring =
+ docstring const datastring =
replace2string(replacement, textfield,
true, // case sensitive
true, // match word
LYXERR(Debug::GUI, "Replace all (" << replacement << ")");
dispatch(FuncRequest(LFUN_WORD_REPLACE, datastring));
d->forward();
+ // replace all wraps around
+ d->wrapAround(true);
d->check(); // continue spellchecking
d->canCheck();
}
return;
fixPositionsIfBroken();
-
+
SpellChecker * speller = theSpellChecker();
if (speller && !speller->hasDictionary(bv->buffer().language())) {
int dsize = speller->numDictionaries();
}
-Dialog * createGuiSpellchecker(GuiView & lv)
-{
+Dialog * createGuiSpellchecker(GuiView & lv)
+{
GuiSpellchecker * gui = new GuiSpellchecker(lv, Qt::RightDockWidgetArea);
#ifdef Q_OS_MAC
gui->setFloating(true);