KDECore
speller.cpp
Go to the documentation of this file.
QString languageCodeToName(const QString &language) const
Convert a known language code to a human readable, localized form.
Definition: klocale.cpp:670
SpellerPlugin * createSpeller(const QString &language=QString(), const QString &client=QString()) const
Returns dictionary for the given language and preferred client.
Definition: loader.cpp:81
QStringList languageNames() const
Returns a localized list of names of supported languages.
Definition: loader.cpp:228
bool checkAndSuggest(const QString &word, QStringList &suggestions) const
Convience method calling isCorrect() and suggest() if the word isn't correct.
Definition: speller.cpp:129
bool addToSession(const QString &word)
Adds word to the words recognizable in the current session.
Definition: speller.cpp:155
QStringList availableBackends() const
Returns names of all supported backends (e.g.
Definition: speller.cpp:188
QStringList availableLanguageNames() const
Returns a localized list of names of supported languages.
Definition: speller.cpp:202
QStringList suggest(const QString &word) const
Fetches suggestions for the word.
Definition: speller.cpp:122
QMap< QString, QString > availableDictionaries() const
Returns a map of all available language descriptions and their codes.
Definition: speller.cpp:270
bool addToPersonal(const QString &word)
Adds word to the list of of personal words.
Definition: speller.cpp:147
bool storeReplacement(const QString &bad, const QString &good)
Stores user defined good replacement for the bad word.
Definition: speller.cpp:138
bool isValid() const
Returns true if the speller supports currently selected language.
Definition: speller.cpp:259
void setLanguage(const QString &lang)
Sets the language supported by this speller.
Definition: speller.cpp:264
void setDefaultLanguage(const QString &lang)
Definition: speller.cpp:209
void setAttribute(Attribute attr, bool b=true)
Definition: speller.cpp:233
QStringList availableLanguages() const
Returns a list of supported languages.
Definition: speller.cpp:195
void setDefaultClient(const QString &client)
Definition: speller.cpp:221
This file is part of the KDE documentation.
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
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.