20 #ifndef KPIMTEXTEDIT_EMAILQUOTEHIGHLIGHTER_H
21 #define KPIMTEXTEDIT_EMAILQUOTEHIGHLIGHTER_H
23 #include "kpimtextedit_export.h"
25 #include <sonnet/highlighter.h>
29 namespace KPIMTextEdit {
53 const QColor &normalColor = Qt::black,
54 const QColor "eDepth1 = QColor( 0x00, 0x80, 0x00 ),
55 const QColor "eDepth2 = QColor( 0x00, 0x80, 0x00 ),
56 const QColor "eDepth3 = QColor( 0x00, 0x80, 0x00 ),
57 const QColor &misspelledColor = Qt::red );
71 void setQuoteColor(
const QColor &normalColor,
72 const QColor "eDepth1,
73 const QColor "eDepth2,
74 const QColor "eDepth3,
75 const QColor &misspelledColor = Qt::red );
82 void toggleSpellHighlighting(
bool on );
87 virtual void highlightBlock (
const QString & text );
94 static QString highlightText(
const QString &text,
95 const QColor "eDepth1 = QColor( 0x00, 0x80, 0x00 ),
96 const QColor "eDepth2 = QColor( 0x00, 0x80, 0x00 ),
97 const QColor "eDepth3 = QColor( 0x00, 0x80, 0x00 ) );
103 static QString highlightParagraph(
const QString &text,
104 const QColor "eDepth1 = QColor( 0x00, 0x80, 0x00 ),
105 const QColor "eDepth2 = QColor( 0x00, 0x80, 0x00 ),
106 const QColor "eDepth3 = QColor( 0x00, 0x80, 0x00 ) );
117 virtual void unsetMisspelled(
int start,
int count );
123 virtual void setMisspelled(
int start,
int count );
126 class EMailQuoteHighlighterPrivate;
127 std::auto_ptr<EMailQuoteHighlighterPrivate> d;
This highlighter highlights spelling mistakes and also highlightes quotes.
Special textedit that provides additional features which are useful for PIM applications like mail cl...