kspell_hspelldict.h

00001 
00022 #ifndef KSPELL_HSPELLDICT_H
00023 #define KSPELL_HSPELLDICT_H
00024 
00025 #include "dictionary.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 KSpell2::Dictionary
00032 {
00033 public:
00034     HSpellDict( const QString& lang );
00035     ~HSpellDict();
00036     virtual bool check( const QString& word );
00037 
00038     virtual QStringList suggest( const QString& word );
00039 
00040     virtual bool checkAndSuggest( const QString& word,
00041                                   QStringList& suggestions ) ;
00042 
00043     virtual bool storeReplacement( const QString& bad,
00044                                    const QString& good );
00045 
00046     virtual bool addToPersonal( const QString& word );
00047     virtual bool addToSession( const QString& word );
00048 private:
00049     struct dict_radix *m_speller;
00050     QTextCodec *codec;
00051 };
00052 
00053 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys