tdespell_ispelldict.h
00001 00021 #ifndef TDESPELL_ASPELLDICT_H 00022 #define TDESPELL_ASPELLDICT_H 00023 00024 #include "dictionary.h" 00025 00026 class ISpellChecker; 00027 00028 class ISpellDict : public KSpell2::Dictionary 00029 { 00030 public: 00031 ISpellDict( const TQString& lang ); 00032 ~ISpellDict(); 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 ISpellChecker *m_checker; 00047 }; 00048 00049 #endif