#include <dictionary.h>
Public Member Functions | |
virtual bool | check (const TQString &word)=0 |
virtual TQStringList | suggest (const TQString &word)=0 |
virtual bool | checkAndSuggest (const TQString &word, TQStringList &suggestions)=0 |
virtual bool | storeReplacement (const TQString &bad, const TQString &good)=0 |
virtual bool | addToPersonal (const TQString &word)=0 |
virtual bool | addToSession (const TQString &word)=0 |
TQString | language () const |
bool | isDefault () const |
Protected Member Functions | |
Dictionary (const TQString &lang, bool def=false) | |
Protected Attributes | |
TQString | m_language |
bool | m_default |
Friends | |
class | Broker |
Detailed Description
Class is returned by from Broker.
It acts as the actual spellchecker.
class used for actuall spell checking
Definition at line 36 of file dictionary.h.
Member Function Documentation
◆ addToPersonal()
|
pure virtual |
Adds word to the list of of personal words.
- Returns
- true on success
Implemented in HSpellDict, and ASpellDict.
◆ addToSession()
|
pure virtual |
Adds word to the words recognizable in the current session.
- Returns
- true on success
Implemented in HSpellDict, and ASpellDict.
◆ check()
|
pure virtual |
Checks the given word.
- Returns
- false if the word is misspelled. true otherwise
Implemented in HSpellDict, and ASpellDict.
◆ checkAndSuggest()
|
pure virtual |
Checks the word and fetches suggestions for it.
Implemented in HSpellDict, and ASpellDict.
◆ isDefault()
|
inline |
Returns true if this dictionary was constructed from default Settings values.
Definition at line 91 of file dictionary.h.
◆ language()
|
inline |
Returns language supported by this dictionary.
Definition at line 82 of file dictionary.h.
◆ storeReplacement()
|
pure virtual |
Stores user defined good replacement for the bad word.
- Returns
- true on success
Implemented in HSpellDict, and ASpellDict.
◆ suggest()
|
pure virtual |
Fetches suggestions for the word.
- Returns
- list of all suggestions for the word
Implemented in HSpellDict, and ASpellDict.
The documentation for this class was generated from the following file: