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) | |
| ~DefaultDictionary () | |
| 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
| bool 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.
Definition at line 51 of file defaultdictionary.cpp.
| bool DefaultDictionary::check | ( | const QString & | word | ) | [virtual] |
Checks the given word.
- Returns:
- false if the word is misspelled. true otherwise
Implements KSpell2::Dictionary.
Definition at line 57 of file defaultdictionary.cpp.
| QStringList DefaultDictionary::suggest | ( | const QString & | word | ) | [virtual] |
Fetches suggestions for the word.
- Returns:
- list of all suggestions for the word
Implements KSpell2::Dictionary.
Definition at line 65 of file defaultdictionary.cpp.
| bool DefaultDictionary::checkAndSuggest | ( | const QString & | word, | |
| QStringList & | suggestions | |||
| ) | [virtual] |
Checks the word and fetches suggestions for it.
Implements KSpell2::Dictionary.
Definition at line 74 of file defaultdictionary.cpp.
Stores user defined good replacement for the bad word.
- Returns:
- true on success
Implements KSpell2::Dictionary.
Definition at line 83 of file defaultdictionary.cpp.
| bool DefaultDictionary::addToPersonal | ( | const QString & | word | ) | [virtual] |
Adds word to the list of of personal words.
- Returns:
- true on success
Implements KSpell2::Dictionary.
Definition at line 92 of file defaultdictionary.cpp.
| bool DefaultDictionary::addToSession | ( | const QString & | word | ) | [virtual] |
Adds word to the words recognizable in the current session.
- Returns:
- true on success
Implements KSpell2::Dictionary.
Definition at line 100 of file defaultdictionary.cpp.
The documentation for this class was generated from the following files:

