KDECore
speller.cpp
Go to the documentation of this file.
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void setDefaultLanguage(const QString &lang)
Definition: speller.cpp:209
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
bool checkAndSuggest(const QString &word, QStringList &suggestions) const
Convience method calling isCorrect() and suggest() if the word isn't correct.
Definition: speller.cpp:129
QString languageCodeToName(const QString &language) const
Convert a known language code to a human readable, localized form.
Definition: klocale.cpp:670
QStringList suggest(const QString &word) const
Fetches suggestions for the word.
Definition: speller.cpp:122
bool isEmpty() const
Definition: speller.h:109
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 languageNames() const
Returns a localized list of names of supported languages.
Definition: loader.cpp:228
void setDefaultClient(const QString &client)
Definition: speller.cpp:221
void setAttribute(Attribute attr, bool b=true)
Definition: speller.cpp:233
Definition: speller.h:110
QMap< QString, QString > availableDictionaries() const
Returns a map of all available language descriptions and their codes.
Definition: speller.cpp:270
QString mid(int position, int n) const
SpellerPlugin * createSpeller(const QString &language=QString(), const QString &client=QString()) const
Returns dictionary for the given language and preferred client.
Definition: loader.cpp:81
QString left(int n) const
QString fromLatin1(const char *str, int size)
bool addToPersonal(const QString &word)
Adds word to the list of of personal words.
Definition: speller.cpp:147
iterator insert(const Key &key, const T &value)
bool addToSession(const QString &word)
Adds word to the words recognizable in the current session.
Definition: speller.cpp:155
QStringList availableLanguages() const
Returns a list of supported languages.
Definition: speller.cpp:195
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void setLanguage(const QString &lang)
Sets the language supported by this speller.
Definition: speller.cpp:264
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.