Sonnet
kspell_aspelldict.h
Go to the documentation of this file.00001 00021 #ifndef KSPELL_ASPELLDICT_H 00022 #define KSPELL_ASPELLDICT_H 00023 00024 #include "spellerplugin_p.h" 00025 00026 #include "aspell.h" 00027 00028 class ASpellDict : public Sonnet::SpellerPlugin 00029 { 00030 public: 00031 explicit ASpellDict(const QString &lang); 00032 ~ASpellDict(); 00033 virtual bool isCorrect(const QString &word) const; 00034 00035 virtual QStringList suggest(const QString &word) const; 00036 00037 virtual bool storeReplacement(const QString &bad, 00038 const QString &good); 00039 00040 virtual bool addToPersonal(const QString &word); 00041 virtual bool addToSession(const QString &word); 00042 private: 00043 AspellConfig *m_config; 00044 AspellSpeller *m_speller; 00045 }; 00046 00047 #endif