KDEUI
Go to the documentation of this file.
21#ifndef SONNET_HIGHLIGHTER_H
22#define SONNET_HIGHLIGHTER_H
24#include <QtGui/QSyntaxHighlighter>
25#include <QtCore/QStringList>
39 const QString &configFile = QString(),
40 const QColor &col=QColor());
43 bool spellCheckerFound()
const;
45 QString currentLanguage()
const;
46 void setCurrentLanguage(
const QString &lang);
48 static QStringList personalWords();
63 void setActive(
bool active);
72 bool isActive()
const;
74 bool automatic()
const;
76 void setAutomatic(
bool automatic);
85 void addWordToDictionary(
const QString &word);
95 void ignoreWord(
const QString &word);
108 QStringList suggestionsForWord(
const QString &word,
int max = 10 );
117 bool isWordMisspelled(
const QString &word);
123 void setMisspelledColor(
const QColor &color);
129 bool checkerEnabledByDefault()
const;
149 QT_MOC_COMPAT
void newSuggestions(
const QString &originalWord,
const QStringList &suggestions);
153 virtual void highlightBlock(
const QString &text);
154 virtual void setMisspelled(
int start,
int count);
155 virtual void unsetMisspelled(
int start,
int count);
157 bool eventFilter(
QObject *o, QEvent *e);
158 bool intraWordEditing()
const;
159 void setIntraWordEditing(
bool editing);
162 void slotAutoDetection();
163 void slotRehighlight();
165 virtual void connectNotify(
const char* signal);
166 virtual void disconnectNotify(
const char* signal);
void activeChanged(const QString &description)
Emitted when as-you-type spell checking is enabled or disabled.
QT_MOC_COMPAT void newSuggestions(const QString &originalWord, const QStringList &suggestions)
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
KDE's Doxygen guidelines are available online.