kspell_ispelldict.h00001
00021 #ifndef KSPELL_ASPELLDICT_H
00022 #define KSPELL_ASPELLDICT_H
00023
00024 #include "dictionary.h"
00025
00026 class ISpellChecker;
00027
00028 class ISpellDict : public KSpell2::Dictionary
00029 {
00030 public:
00031 ISpellDict( const QString& lang );
00032 ~ISpellDict();
00033 virtual bool check( const QString& word );
00034
00035 virtual QStringList suggest( const QString& word );
00036
00037 virtual bool checkAndSuggest( const QString& word,
00038 QStringList& suggestions ) ;
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 ISpellChecker *m_checker;
00047 };
00048
00049 #endif
|