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

messageviewer

  • MessageViewer
  • HTMLQuoteColorer
Public Member Functions | List of all members
MessageViewer::HTMLQuoteColorer Class Reference

#include <htmlquotecolorer.h>

Public Member Functions

 HTMLQuoteColorer ()
 
QString process (const QString &htmlSource, QString &extraHead)
 
void setQuoteColor (unsigned int level, const QColor &color)
 

Detailed Description

Little helper class that takes a HTML source as input and finds all lines that are quoted with '>' or '|'.

The HTML text is then modified so that the quoted lines appear in the defined quote colors.

Definition at line 31 of file htmlquotecolorer.h.

Constructor & Destructor Documentation

HTMLQuoteColorer::HTMLQuoteColorer ( )
explicit

Definition at line 33 of file htmlquotecolorer.cpp.

Member Function Documentation

QString HTMLQuoteColorer::process ( const QString &  htmlSource,
QString &  extraHead 
)

Do the work and add nice colors to the HTML.

Parameters
htmlSourcethe input HTML code
Returns
the modified HTML code, without any <body>, <html> or <head> tags

Definition at line 37 of file htmlquotecolorer.cpp.

void HTMLQuoteColorer::setQuoteColor ( unsigned int  level,
const QColor &  color 
)

Sets the quote color of the specific leve.

This class supports 3 levels, from 0 to 2. Level 2 is the most quoted, with three quote signs in front of the line, and level 0 is the least quoted, with one quote sign in front of the line.

If you don't call this, the color of the quoting will be black.

Definition at line 146 of file htmlquotecolorer.cpp.


The documentation for this class was generated from the following files:
  • htmlquotecolorer.h
  • htmlquotecolorer.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:58 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

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