Sonnet
kspell_hspelldict.h
Go to the documentation of this file.00001 00022 #ifndef KSPELL_HSPELLDICT_H 00023 #define KSPELL_HSPELLDICT_H 00024 00025 #include "spellerplugin_p.h" 00026 /* libhspell is a C library and it does not have #ifdef __cplusplus */ 00027 extern "C" { 00028 #include "hspell.h" 00029 } 00030 00031 class HSpellDict : public Sonnet::SpellerPlugin 00032 { 00033 public: 00034 explicit HSpellDict( const QString& lang ); 00035 ~HSpellDict(); 00036 virtual bool isCorrect( const QString& word ) const; 00037 00038 virtual QStringList suggest( const QString& word ) const; 00039 00040 virtual bool storeReplacement( const QString& bad, 00041 const QString& good ); 00042 00043 virtual bool addToPersonal( const QString& word ); 00044 virtual bool addToSession( const QString& word ); 00045 private: 00046 struct dict_radix *m_speller; 00047 QTextCodec *codec; 00048 bool initialized; 00049 }; 00050 00051 #endif