19 #ifndef LIB_QUENTIER_NOTE_EDITOR_SPELL_CHECKER_H
20 #define LIB_QUENTIER_NOTE_EDITOR_SPELL_CHECKER_H
22 #include <quentier/utility/Macros.h>
23 #include <quentier/utility/Linkage.h>
30 QT_FORWARD_DECLARE_CLASS(FileIOProcessorAsync)
31 QT_FORWARD_DECLARE_CLASS(SpellCheckerPrivate)
32 QT_FORWARD_DECLARE_CLASS(Account)
39 const Account & account, QObject * parent = Q_NULLPTR,
40 const QString & userDictionaryPath = QString());
43 QVector<QPair<QString,bool> > listAvailableDictionaries()
const;
45 void setAccount(
const Account & account);
47 void enableDictionary(
const QString & language);
48 void disableDictionary(
const QString & language);
50 bool checkSpell(
const QString & word)
const;
51 QStringList spellCorrectionSuggestions(
const QString & misSpelledWord)
const;
52 void addToUserWordlist(
const QString & word);
53 void removeFromUserWordList(
const QString & word);
54 void ignoreWord(
const QString & word);
55 void removeWord(
const QString & word);
63 SpellCheckerPrivate *
const d_ptr;
69 #endif // LIB_QUENTIER_NOTE_EDITOR_SPELL_CHECKER_H