MessageViewer::CSSHelperBase Class

The CSSHelperBase class. More...

Header: #include <MessageViewer/CSSHelperBase>
CMake: find_package(KPim6MessageViewer REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::MessageViewer)
Inherited By:

MessageViewer::CSSHelper

Public Functions

CSSHelperBase(const QPaintDevice *pd)
QString cssDefinitions(const MessageViewer::CSSHelperBase::HtmlHeadSettings &) const
virtual QString htmlHead(const MessageViewer::CSSHelperBase::HtmlHeadSettings &) const
QString nonQuotedFontTag() const
QColor quoteColor(int level) const
QString quoteFontTag(int level) const

Protected Functions

Detailed Description

Member Function Documentation

[explicit] CSSHelperBase::CSSHelperBase(const QPaintDevice *pd)

Construct a CSSHelper object and set its font and color settings to default values. Sub-Classes should put their config loading here.

QString CSSHelperBase::cssDefinitions(const MessageViewer::CSSHelperBase::HtmlHeadSettings &) const

Returns The collected CSS definitions as a string

[virtual] QString CSSHelperBase::htmlHead(const MessageViewer::CSSHelperBase::HtmlHeadSettings &) const

Returns HTML head including style sheet definitions and the &gt;body&lt; tag

QString CSSHelperBase::nonQuotedFontTag() const

Returns a &lt;div&gt; start tag with embedded style information suitable for non-quoted text

QColor CSSHelperBase::quoteColor(int level) const

Returns the quote color for the given level, where level ranges from 0 to 2 *

QString CSSHelperBase::quoteFontTag(int level) const

Returns a &lt;div&gt; start tag with embedded style information suitable for quoted text with quote level level

[protected] void CSSHelperBase::recalculatePGPColors()

Recalculate PGP frame and body colors (should be called after changing color settings)