+ docstring const data = find2string(
+ qstring_to_ucs4(d->ui.wordED->text()),
+ true, true, true);
+ dispatch(FuncRequest(LFUN_WORD_FIND, data));
+}
+
+
+void GuiSpellchecker::on_replacePB_clicked()
+{
+ docstring const replacement = qstring_to_ucs4(d->ui.replaceCO->currentText());
+
+ LYXERR(Debug::GUI, "Replace (" << replacement << ")");
+ BufferView * bv = const_cast<BufferView *>(bufferview());
+ if (!bv->cursor().inTexted())
+ return;
+ cap::replaceSelectionWithString(bv->cursor(), replacement, true);
+ bv->buffer().markDirty();
+ // If we used an LFUN, we would not need that
+ bv->processUpdateFlags(Update::Force | Update::FitCursor);
+ // fix up the count
+ --d->count_;