KDECore
#include <spellerplugin_p.h>
Public Member Functions | |
virtual | ~SpellerPlugin () |
virtual bool | addToPersonal (const QString &word)=0 |
virtual bool | addToSession (const QString &word)=0 |
virtual bool | checkAndSuggest (const QString &word, QStringList &suggestions) const |
virtual bool | isCorrect (const QString &word) const =0 |
bool | isMisspelled (const QString &word) const |
QString | language () const |
virtual bool | storeReplacement (const QString &bad, const QString &good)=0 |
virtual QStringList | suggest (const QString &word) const =0 |
Protected Member Functions | |
SpellerPlugin (const QString &lang) | |
Detailed Description
Class is returned by from Loader.
It acts as the actual spellchecker.
Definition at line 38 of file spellerplugin_p.h.
Constructor & Destructor Documentation
|
virtual |
Definition at line 38 of file spellerplugin.cpp.
|
protected |
Definition at line 32 of file spellerplugin.cpp.
Member Function Documentation
Adds word to the list of of personal words.
- Returns
- true on success
Adds word to the words recognizable in the current session.
- Returns
- true on success
|
virtual |
Convience method calling isCorrect() and suggest() if the word isn't correct.
Definition at line 53 of file spellerplugin.cpp.
Checks the given word.
- Returns
- false if the word is misspelled. true otherwise
Checks the given word.
- Returns
- true if the word is misspelled. false otherwise
Definition at line 48 of file spellerplugin.cpp.
QString Sonnet::SpellerPlugin::language | ( | ) | const |
Returns language supported by this dictionary.
Definition at line 43 of file spellerplugin.cpp.
|
pure virtual |
Stores user defined good replacement for the bad word.
- Returns
- true on success
|
pure virtual |
Fetches suggestions for the word.
- Returns
- list of all suggestions for the word
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.