KSpell2::DefaultDictionary Class Reference
Inheritance diagram for KSpell2::DefaultDictionary:

Detailed Description
Definition at line 32 of file defaultdictionary.h.
Signals | |
void | changed () |
Public Member Functions | |
DefaultDictionary (const QString &lang, Broker *broker) | |
bool | isValid () const |
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) |
Protected Slots | |
void | defaultConfigurationChanged () |
Member Function Documentation
virtual bool KSpell2::DefaultDictionary::addToPersonal | ( | const QString & | word | ) | [virtual] |
virtual bool KSpell2::DefaultDictionary::addToSession | ( | const QString & | word | ) | [virtual] |
Adds word to the words recognizable in the current session.
- Returns:
- true on success
Implements KSpell2::Dictionary.
virtual bool KSpell2::DefaultDictionary::check | ( | const QString & | word | ) | [virtual] |
Checks the given word.
- Returns:
- false if the word is misspelled. true otherwise
Implements KSpell2::Dictionary.
virtual bool KSpell2::DefaultDictionary::checkAndSuggest | ( | const QString & | word, | |
QStringList & | suggestions | |||
) | [virtual] |
bool KSpell2::DefaultDictionary::isValid | ( | ) | const |
Returns true whether the default dictionary object is valid.
It might not be if there's no dictionary object for the default language.
virtual bool KSpell2::DefaultDictionary::storeReplacement | ( | const QString & | bad, | |
const QString & | good | |||
) | [virtual] |
Stores user defined good replacement for the bad word.
- Returns:
- true on success
Implements KSpell2::Dictionary.
virtual QStringList KSpell2::DefaultDictionary::suggest | ( | const QString & | word | ) | [virtual] |
Fetches suggestions for the word.
- Returns:
- list of all suggestions for the word
Implements KSpell2::Dictionary.
The documentation for this class was generated from the following file: