Sonnet
kspell_hspelldict.h
Go to the documentation of this file.
00001 00022 #ifndef KSPELL_HSPELLDICT_H 00023 #define KSPELL_HSPELLDICT_H 00024 00025 #include "spellerplugin_p.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 Sonnet::SpellerPlugin 00032 { 00033 public: 00034 explicit HSpellDict( const QString& lang ); 00035 ~HSpellDict(); 00036 virtual bool isCorrect( const QString& word ) const; 00037 00038 virtual QStringList suggest( const QString& word ) const; 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 inline bool isInitialized() const { return initialized; } 00046 private: 00047 struct dict_radix *m_speller; 00048 QTextCodec *codec; 00049 bool initialized; 00050 }; 00051 00052 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Jan 21 2019 12:34:26 by doxygen 1.7.5.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Jan 21 2019 12:34:26 by doxygen 1.7.5.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.