#include "BufferView.h"
#include "Cursor.h"
#include "CutAndPaste.h"
-#include "support/debug.h"
-#include "support/gettext.h"
#include "Language.h"
#include "LyXRC.h"
#include "Paragraph.h"
-#include "support/textutils.h"
+#include "support/debug.h"
#include "support/docstring.h"
+#include "support/gettext.h"
#include "support/lstrings.h"
+#include "support/textutils.h"
#include <QListWidgetItem>
}
-void GuiSpellchecker::closeEvent(QCloseEvent * e)
-{
- slotClose();
- GuiDialog::closeEvent(e);
-}
-
-
void GuiSpellchecker::reject()
{
slotClose();
}
-static SpellBase * getSpeller(BufferParams const & bp)
+static SpellBase * createSpeller(BufferParams const & bp)
{
string lang = (lyxrc.isp_use_alt_lang)
? lyxrc.isp_alt_lang
{
LYXERR(Debug::GUI, "Spellchecker::initialiseParams");
- speller_ = getSpeller(buffer().params());
+ speller_ = createSpeller(buffer().params());
if (!speller_)
return false;
ptrdiff_t start = 0;
ptrdiff_t total = 0;
- DocIterator it = DocIterator(buffer().inset());
- for (start = 0; it != cur; it.forwardPos())
+ DocIterator it = doc_iterator_begin(buffer().inset());
+ for (start = 1; it != cur; it.forwardPos())
++start;
for (total = start; it; it.forwardPos())