• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

messageviewer

  • sources
  • kde-4.14
  • kdepim
  • messageviewer
  • viewer
htmlquotecolorer.h
Go to the documentation of this file.
1 /* Copyright 2009 Thomas McGuire <mcguire@kde.org>
2 
3  This program is free software; you can redistribute it and/or
4  modify it under the terms of the GNU General Public License as
5  published by the Free Software Foundation; either version 2 of
6  the License or (at your option) version 3 or any later version
7  accepted by the membership of KDE e.V. (or its successor approved
8  by the membership of KDE e.V.), which shall act as a proxy
9  defined in Section 14 of version 3 of the license.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 #ifndef HTMLQUOTECOLORER_H
20 #define HTMLQUOTECOLORER_H
21 
22 #include <QColor>
23 
24 namespace MessageViewer {
25 
31 class HTMLQuoteColorer
32 {
33 public:
34 
35  explicit HTMLQuoteColorer();
36 
45  void setQuoteColor( unsigned int level, const QColor &color );
46 
52  QString process(const QString &htmlSource , QString &extraHead);
53 
54  void setEnableHtmlQuoteColorer(bool enabled);
55 private:
56  QColor mQuoteColors[3];
57  bool mEnableHtmlQuoteColorer;
58 };
59 
60 }
61 
62 #endif
MessageViewer::HTMLQuoteColorer::process
QString process(const QString &htmlSource, QString &extraHead)
Do the work and add nice colors to the HTML.
Definition: htmlquotecolorer.cpp:44
MessageViewer::HTMLQuoteColorer::setEnableHtmlQuoteColorer
void setEnableHtmlQuoteColorer(bool enabled)
Definition: htmlquotecolorer.cpp:39
MessageViewer::HTMLQuoteColorer
Little helper class that takes a HTML source as input and finds all lines that are quoted with '>' or...
Definition: htmlquotecolorer.h:31
QString
QColor
MessageViewer::HTMLQuoteColorer::setQuoteColor
void setQuoteColor(unsigned int level, const QColor &color)
Sets the quote color of the specific leve.
Definition: htmlquotecolorer.cpp:154
MessageViewer::HTMLQuoteColorer::HTMLQuoteColorer
HTMLQuoteColorer()
Definition: htmlquotecolorer.cpp:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messageviewer

Skip menu "messageviewer"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal