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
Cursor & start()
static Cursor invalid()
void replaceCharactersByEncoding(const KTextEditor::Range &range)
Definition: katedocument.cpp:5322
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
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:694
virtual bool replaceText(const KTextEditor::Range &range, const QString &s, bool block=false)
Definition: katedocument.cpp:4687
bool attributeRequiresSpellchecking(int attr)
Definition: katehighlight.cpp:1045
int getEncodedCharactersInsertionPolicy(int attrib) const
Definition: katehighlight.cpp:704
virtual QChar character(const KTextEditor::Cursor &position) const
Definition: katedocument.cpp:388
QList< QPair< KTextEditor::MovingRange *, QString > > dictionaryRanges() const
Definition: katedocument.cpp:5037
QStringList suggest(const QString &word) 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
bool onSingleLine() const
Definition: katedocument.h:74
void ignoreWord(const QString &word, const QString &dictionary)
Definition: spellcheck.cpp:54
virtual int line() const
virtual void setPosition(const Cursor &position)
Cursor & end()
Definition: katehighlight.h:119
QSharedPointer< TextLineData > TextLine
The normal world only accesses the text lines with shared pointers.
Definition: katetextline.h:443
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:5228
Range intersect(const Range &range) const
bool addToPersonal(const QString &word)
QList< QPair< KTextEditor::Range, QString > > spellCheckRanges(KateDocument *doc, const KTextEditor::Range &range, bool singleLine=false)
Definition: spellcheck.cpp:226
bool addToSession(const QString &word)
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
bool contains(const Range &range) const
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
bool isEmpty() const
Definition: katedocument.h:1144
const KShortcut & end()
virtual void setColumn(int column)
int column() const
void setLanguage(const QString &lang)
void replaceCharactersEncodedIfNecessary(const QString &newWord, KateDocument *doc, const KTextEditor::Range &replacementRange)
Definition: spellcheck.cpp:239
const KShortcut & begin()
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.