Kate
spellcheck.cpp
Go to the documentation of this file.
92 QList<QPair<KTextEditor::Range, QString> > KateSpellCheckManager::spellCheckLanguageRanges(KateDocument *doc,
120 // 'consideredRange' did not intersect with any dictionary range, so we add it with the default dictionary
129 QList<QPair<KTextEditor::Range, QString> > KateSpellCheckManager::spellCheckWrtHighlightingRanges(KateDocument *document,
160 for(QList<KTextEditor::Range>::iterator i = rangesToSplit.begin(); i != rangesToSplit.end(); ++i) {
226 QList<QPair<KTextEditor::Range, QString> > KateSpellCheckManager::spellCheckRanges(KateDocument *doc,
232 for(QList<RangeDictionaryPair>::iterator i = languageRangeList.begin(); i != languageRangeList.end(); ++i) {
239 void KateSpellCheckManager::replaceCharactersEncodedIfNecessary(const QString& newWord, KateDocument *doc,
243 int attr = doc->kateTextLine(replacementRange.start().line())->attribute(replacementRange.start().column());
247 || (p == KateDocument::EncodeWhenPresent && doc->containsCharacterEncoding(replacementRange))) {
265 && !doc->character(cursor).isSpace() && doc->character(cursor).category() != QChar::Other_Control) {
290 && !doc->character(cursor).isSpace() && doc->character(cursor).category() != QChar::Other_Control) {
virtual ~KateSpellCheckManager()
Definition: spellcheck.cpp:43
This class can be used to efficiently search for occurrences of strings in a given string...
Definition: prefixstore.h:41
void replaceCharactersByEncoding(const KTextEditor::Range &range)
Definition: katedocument.cpp:5316
void push_back(const T &value)
static QList< KTextEditor::Range > rangeDifference(const KTextEditor::Range &r1, const KTextEditor::Range &r2)
'r2' is a subrange of 'r1', which is extracted from 'r1' and the remaining ranges are returned ...
Definition: spellcheck.cpp:68
Category category() const
QList< QPair< KTextEditor::Range, QString > > spellCheckLanguageRanges(KateDocument *doc, const KTextEditor::Range &range)
Definition: spellcheck.cpp:92
const KatePrefixStore & getCharacterEncodingsPrefixStore(int attrib) const
Definition: katehighlight.cpp:723
virtual bool replaceText(const KTextEditor::Range &range, const QString &s, bool block=false)
Definition: katedocument.cpp:4686
bool attributeRequiresSpellchecking(int attr)
Definition: katehighlight.cpp:1083
bool isSpace() const
int getEncodedCharactersInsertionPolicy(int attrib) const
Definition: katehighlight.cpp:733
virtual QChar character(const KTextEditor::Cursor &position) const
Definition: katedocument.cpp:388
QList< QPair< KTextEditor::MovingRange *, QString > > dictionaryRanges() const
Definition: katedocument.cpp:5036
bool isEmpty() const
bool isEmpty() const
void addToDictionary(const QString &word, const QString &dictionary)
Definition: spellcheck.cpp:61
QStringList suggestions(const QString &word, const QString &dictionary)
Definition: spellcheck.cpp:47
iterator end()
Definition: katedocument.h:74
void ignoreWord(const QString &word, const QString &dictionary)
Definition: spellcheck.cpp:54
T takeFirst()
Definition: katehighlight.h:119
int length() const
KateSpellCheckManager(QObject *parent=NULL)
Definition: spellcheck.cpp:38
virtual QString text(const KTextEditor::Range &range, bool blockwise=false) const
Definition: katedocument.cpp:337
bool containsCharacterEncoding(const KTextEditor::Range &range)
Definition: katedocument.cpp:5222
QList< QPair< KTextEditor::Range, QString > > spellCheckRanges(KateDocument *doc, const KTextEditor::Range &range, bool singleLine=false)
Definition: spellcheck.cpp:226
QList< QPair< KTextEditor::Range, QString > > spellCheckWrtHighlightingRanges(KateDocument *doc, const KTextEditor::Range &range, const QString &dictionary=QString(), bool singleLine=false, bool returnSingleRange=false)
Definition: spellcheck.cpp:129
QString findPrefix(const QString &s, int start=0) const
Returns the shortest prefix of the given string that is contained in this prefix store starting at po...
Definition: prefixstore.cpp:120
Definition: katedocument.h:1146
iterator begin()
void replaceCharactersEncodedIfNecessary(const QString &newWord, KateDocument *doc, const KTextEditor::Range &replacementRange)
Definition: spellcheck.cpp:239
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.