kspell_aspelldict.h

00001 
00021 #ifndef KSPELL_ASPELLDICT_H
00022 #define KSPELL_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 QString& lang );
00032     ~ASpellDict();
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     AspellConfig  *m_config;
00047     AspellSpeller *m_speller;
00048 };
00049 
00050 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys