kspell_aspelldict.h
#ifndef KSPELL_ASPELLDICT_H
#define KSPELL_ASPELLDICT_H
#include "dictionary.h"
#include "aspell.h"
class ASpellDict : public KSpell2::Dictionary
{
public:
ASpellDict( const QString& lang );
~ASpellDict();
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:
AspellConfig *m_config;
AspellSpeller *m_speller;
};
#endif
ASpellDict::suggest
virtual QStringList suggest(const QString &word)
Fetches suggestions for the word.
Definition: kspell_aspelldict.cpp:61
ASpellDict::check
virtual bool check(const QString &word)
Checks the given word.
Definition: kspell_aspelldict.cpp:53
ASpellDict::addToSession
virtual bool addToSession(const QString &word)
Adds word to the words recognizable in the current session.
Definition: kspell_aspelldict.cpp:119
ASpellDict
kspell_aspelldict.h
Definition: kspell_aspelldict.h:28
ASpellDict::checkAndSuggest
virtual bool checkAndSuggest(const QString &word, QStringList &suggestions)
Checks the word and fetches suggestions for it.
Definition: kspell_aspelldict.cpp:87
ASpellDict::addToPersonal
virtual bool addToPersonal(const QString &word)
Adds word to the list of of personal words.
Definition: kspell_aspelldict.cpp:106
KSpell2::Dictionary
Class is returned by from Broker.
Definition: dictionary.h:37
ASpellDict::storeReplacement
virtual bool storeReplacement(const QString &bad, const QString &good)
Stores user defined good replacement for the bad word.
Definition: kspell_aspelldict.cpp:96

KDE Home | KDE Accessibility Home | Description of Access Keys