kspell_hspelldict.h
#ifndef KSPELL_HSPELLDICT_H
#define KSPELL_HSPELLDICT_H
#include "dictionary.h"
/* libhspell is a C library and it does not have #ifdef __cplusplus */
extern "C" {
#include "hspell.h"
}
class HSpellDict : public KSpell2::Dictionary
{
public:
HSpellDict( const QString& lang );
~HSpellDict();
virtual bool check( const QString& word );
virtual QStringList suggest( const QString& word );
virtual bool checkAndSuggest( const QString& word,
QStringList& suggestions ) ;
virtual bool storeReplacement( const QString& bad,
const QString& good );
virtual bool addToPersonal( const QString& word );
virtual bool addToSession( const QString& word );
private:
struct dict_radix *m_speller;
QTextCodec *codec;
};
#endif
HSpellDict::check
virtual bool check(const QString &word)
Checks the given word.
Definition: kspell_hspelldict.cpp:46
HSpellDict::addToSession
virtual bool addToSession(const QString &word)
Adds word to the words recognizable in the current session.
Definition: kspell_hspelldict.cpp:102
HSpellDict::checkAndSuggest
virtual bool checkAndSuggest(const QString &word, QStringList &suggestions)
Checks the word and fetches suggestions for it.
Definition: kspell_hspelldict.cpp:78
HSpellDict::addToPersonal
virtual bool addToPersonal(const QString &word)
Adds word to the list of of personal words.
Definition: kspell_hspelldict.cpp:95
HSpellDict::suggest
virtual QStringList suggest(const QString &word)
Fetches suggestions for the word.
Definition: kspell_hspelldict.cpp:64
KSpell2::Dictionary
Class is returned by from Broker.
Definition: dictionary.h:37
HSpellDict::storeReplacement
virtual bool storeReplacement(const QString &bad, const QString &good)
Stores user defined good replacement for the bad word.
Definition: kspell_hspelldict.cpp:87
HSpellDict
kspell_hspelldict.h
Definition: kspell_hspelldict.h:31

KDE Home | KDE Accessibility Home | Description of Access Keys