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.
class used for actuall spell checking
Definition at line 38 of file spellerplugin_p.h.
Constructor & Destructor Documentation
◆ ~SpellerPlugin()
|
virtual |
Definition at line 38 of file spellerplugin.cpp.
◆ SpellerPlugin()
|
protected |
Definition at line 32 of file spellerplugin.cpp.
Member Function Documentation
◆ addToPersonal()
Adds word to the list of of personal words.
- Returns
- true on success
◆ addToSession()
Adds word to the words recognizable in the current session.
- Returns
- true on success
◆ checkAndSuggest()
|
virtual |
Convience method calling isCorrect() and suggest() if the word isn't correct.
Definition at line 53 of file spellerplugin.cpp.
◆ isCorrect()
Checks the given word.
- Returns
- false if the word is misspelled. true otherwise
◆ isMisspelled()
Checks the given word.
- Returns
- true if the word is misspelled. false otherwise
Definition at line 48 of file spellerplugin.cpp.
◆ language()
QString Sonnet::SpellerPlugin::language | ( | ) | const |
Returns language supported by this dictionary.
Definition at line 43 of file spellerplugin.cpp.
◆ storeReplacement()
|
pure virtual |
Stores user defined good replacement for the bad word.
- Returns
- true on success
◆ suggest()
|
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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.