tdespell2
tdespell_aspelldict.h
00001 00021 #ifndef TDESPELL_ASPELLDICT_H 00022 #define TDESPELL_ASPELLDICT_H 00023 00024 #include "dictionary.h" 00025 00026 #include "aspell.h" 00027 00028 class ASpellDict : public KSpell2::Dictionary 00029 { 00030 public: 00031 ASpellDict( const TQString& lang ); 00032 ~ASpellDict(); 00033 virtual bool check( const TQString& word ); 00034 00035 virtual TQStringList suggest( const TQString& word ); 00036 00037 virtual bool checkAndSuggest( const TQString& word, 00038 TQStringList& suggestions ) ; 00039 00040 virtual bool storeReplacement( const TQString& bad, 00041 const TQString& good ); 00042 00043 virtual bool addToPersonal( const TQString& word ); 00044 virtual bool addToSession( const TQString& word ); 00045 private: 00046 AspellConfig *m_config; 00047 AspellSpeller *m_speller; 00048 }; 00049 00050 #endif