MessageViewer::CSSHelperBase

Search for usage in LXR

#include <csshelperbase.h>

Inheritance diagram for MessageViewer::CSSHelperBase:

Public Types

enum  InlineMessageType {
  Positive , Information , Warning , Error ,
  MESSAGE_TYPE_COUNT
}
 

Public Member Functions

 CSSHelperBase (const QPaintDevice *pd)
 
QString addEndBlockQuote (int numberBlock) const
 
QString addStartBlockQuote (int numberBlock) const
 
QFont bodyFont (bool fixedFont=false, bool printing=false) const
 
QString cssDefinitions (const HtmlHeadSettings &) const
 
QString extraCommonCss (const QString &headerFont) const
 
QString extraPrintCss (const QString &headerFont) const
 
QString extraScreenCss (const QString &headerFont) const
 
const HeaderStylePluginheaderPlugin () const
 
virtual QString htmlHead (const HtmlHeadSettings &) const
 
QString nonQuotedFontTag () const
 
QColor pgpWarnColor () const
 
QColor quoteColor (int level) const
 
QString quoteColorName (int level) const
 
QString quoteFontTag (int level) const
 
void setBodyFont (const QFont &font)
 
void setHeaderPlugin (const HeaderStylePlugin *headerPlugin)
 
void setPrintFont (const QFont &font)
 

Protected Member Functions

void recalculatePGPColors ()
 

Protected Attributes

QColor cInlineMessage [MESSAGE_TYPE_COUNT]
 
QColor cPgpEncrB
 
QColor cPgpEncrF
 
QColor cPgpEncrH
 
QColor cPgpEncrHT
 
QColor cPgpErrB
 
QColor cPgpErrF
 
QColor cPgpErrH
 
QColor cPgpErrHT
 
QColor cPgpOk0B
 
QColor cPgpOk0F
 
QColor cPgpOk0H
 
QColor cPgpOk0HT
 
QColor cPgpOk1B
 
QColor cPgpOk1F
 
QColor cPgpOk1H
 
QColor cPgpOk1HT
 
QColor cPgpWarnB
 
QColor cPgpWarnF
 
QColor cPgpWarnH
 
QColor cPgpWarnHT
 
QString imgHideUrl
 
QString imgShowUrl
 
QColor mBackgroundColor
 
QFont mBodyFont
 
QFont mFixedFont
 
QFont mFixedPrintFont
 
QColor mForegroundColor
 
QColor mLinkColor
 
QFont mPrintFont
 
QColor mQuoteColor [3]
 
QFont mQuoteFont
 
bool mRecycleQuoteColors = false
 
bool mShrinkQuotes = false
 
bool mUseBrowserColor = false
 

Detailed Description

The CSSHelperBase class.

Definition at line 26 of file csshelperbase.h.

Member Enumeration Documentation

◆ InlineMessageType

enum MessageViewer::CSSHelperBase::InlineMessageType

Definition at line 74 of file csshelperbase.h.

Constructor & Destructor Documentation

◆ CSSHelperBase()

MessageViewer::CSSHelperBase::CSSHelperBase ( const QPaintDevice * pd)
explicit

Construct a CSSHelper object and set its font and color settings to default values.

Sub-Classes should put their config loading here.

Definition at line 69 of file csshelperbase.cpp.

Member Function Documentation

◆ addEndBlockQuote()

QString MessageViewer::CSSHelperBase::addEndBlockQuote ( int numberBlock) const
nodiscard

Definition at line 132 of file csshelperbase.cpp.

◆ addStartBlockQuote()

QString MessageViewer::CSSHelperBase::addStartBlockQuote ( int numberBlock) const
nodiscard

Definition at line 141 of file csshelperbase.cpp.

◆ bodyFont()

QFont MessageViewer::CSSHelperBase::bodyFont ( bool fixedFont = false,
bool printing = false ) const
nodiscard

Definition at line 240 of file csshelperbase.cpp.

◆ cssDefinitions()

QString MessageViewer::CSSHelperBase::cssDefinitions ( const HtmlHeadSettings & htmlHeadSetting) const
nodiscard
Returns
The collected CSS definitions as a string

Definition at line 184 of file csshelperbase.cpp.

◆ extraCommonCss()

QString MessageViewer::CSSHelperBase::extraCommonCss ( const QString & headerFont) const
nodiscard

Definition at line 166 of file csshelperbase.cpp.

◆ extraPrintCss()

QString MessageViewer::CSSHelperBase::extraPrintCss ( const QString & headerFont) const
nodiscard

Definition at line 158 of file csshelperbase.cpp.

◆ extraScreenCss()

QString MessageViewer::CSSHelperBase::extraScreenCss ( const QString & headerFont) const
nodiscard

Definition at line 150 of file csshelperbase.cpp.

◆ headerPlugin()

const HeaderStylePlugin * MessageViewer::CSSHelperBase::headerPlugin ( ) const
nodiscard

Definition at line 424 of file csshelperbase.cpp.

◆ htmlHead()

QString MessageViewer::CSSHelperBase::htmlHead ( const HtmlHeadSettings & htmlHeadSettings) const
virtual
Returns
HTML head including style sheet definitions and the >body< tag

Reimplemented in MessageViewer::CSSHelper.

Definition at line 193 of file csshelperbase.cpp.

◆ nonQuotedFontTag()

QString MessageViewer::CSSHelperBase::nonQuotedFontTag ( ) const
nodiscard
Returns
a <div> start tag with embedded style information suitable for non-quoted text

Definition at line 235 of file csshelperbase.cpp.

◆ pgpWarnColor()

QColor MessageViewer::CSSHelperBase::pgpWarnColor ( ) const
nodiscard

Definition at line 780 of file csshelperbase.cpp.

◆ quoteColor()

QColor MessageViewer::CSSHelperBase::quoteColor ( int level) const
nodiscard
Returns
the quote color for the given level, where level ranges from 0 to 2

Definition at line 774 of file csshelperbase.cpp.

◆ quoteColorName()

QString MessageViewer::CSSHelperBase::quoteColorName ( int level) const
nodiscard

Definition at line 769 of file csshelperbase.cpp.

◆ quoteFontTag()

QString MessageViewer::CSSHelperBase::quoteFontTag ( int level) const
nodiscard
Returns
a <div> start tag with embedded style information suitable for quoted text with quote level level

Definition at line 202 of file csshelperbase.cpp.

◆ recalculatePGPColors()

void MessageViewer::CSSHelperBase::recalculatePGPColors ( )
protected

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

Definition at line 80 of file csshelperbase.cpp.

◆ setBodyFont()

void MessageViewer::CSSHelperBase::setBodyFont ( const QFont & font)

Definition at line 759 of file csshelperbase.cpp.

◆ setHeaderPlugin()

void MessageViewer::CSSHelperBase::setHeaderPlugin ( const HeaderStylePlugin * headerPlugin)

Definition at line 258 of file csshelperbase.cpp.

◆ setPrintFont()

void MessageViewer::CSSHelperBase::setPrintFont ( const QFont & font)

Definition at line 764 of file csshelperbase.cpp.

Member Data Documentation

◆ cInlineMessage

QColor MessageViewer::CSSHelperBase::cInlineMessage[MESSAGE_TYPE_COUNT]
protected

Definition at line 125 of file csshelperbase.h.

◆ cPgpEncrB

QColor MessageViewer::CSSHelperBase::cPgpEncrB
protected

Definition at line 122 of file csshelperbase.h.

◆ cPgpEncrF

QColor MessageViewer::CSSHelperBase::cPgpEncrF
protected

Definition at line 119 of file csshelperbase.h.

◆ cPgpEncrH

QColor MessageViewer::CSSHelperBase::cPgpEncrH
protected

Definition at line 120 of file csshelperbase.h.

◆ cPgpEncrHT

QColor MessageViewer::CSSHelperBase::cPgpEncrHT
protected

Definition at line 121 of file csshelperbase.h.

◆ cPgpErrB

QColor MessageViewer::CSSHelperBase::cPgpErrB
protected

Definition at line 118 of file csshelperbase.h.

◆ cPgpErrF

QColor MessageViewer::CSSHelperBase::cPgpErrF
protected

Definition at line 115 of file csshelperbase.h.

◆ cPgpErrH

QColor MessageViewer::CSSHelperBase::cPgpErrH
protected

Definition at line 116 of file csshelperbase.h.

◆ cPgpErrHT

QColor MessageViewer::CSSHelperBase::cPgpErrHT
protected

Definition at line 117 of file csshelperbase.h.

◆ cPgpOk0B

QColor MessageViewer::CSSHelperBase::cPgpOk0B
protected

Definition at line 110 of file csshelperbase.h.

◆ cPgpOk0F

QColor MessageViewer::CSSHelperBase::cPgpOk0F
protected

Definition at line 107 of file csshelperbase.h.

◆ cPgpOk0H

QColor MessageViewer::CSSHelperBase::cPgpOk0H
protected

Definition at line 108 of file csshelperbase.h.

◆ cPgpOk0HT

QColor MessageViewer::CSSHelperBase::cPgpOk0HT
protected

Definition at line 109 of file csshelperbase.h.

◆ cPgpOk1B

QColor MessageViewer::CSSHelperBase::cPgpOk1B
protected

Definition at line 106 of file csshelperbase.h.

◆ cPgpOk1F

QColor MessageViewer::CSSHelperBase::cPgpOk1F
protected

Definition at line 103 of file csshelperbase.h.

◆ cPgpOk1H

QColor MessageViewer::CSSHelperBase::cPgpOk1H
protected

Definition at line 104 of file csshelperbase.h.

◆ cPgpOk1HT

QColor MessageViewer::CSSHelperBase::cPgpOk1HT
protected

Definition at line 105 of file csshelperbase.h.

◆ cPgpWarnB

QColor MessageViewer::CSSHelperBase::cPgpWarnB
protected

Definition at line 114 of file csshelperbase.h.

◆ cPgpWarnF

QColor MessageViewer::CSSHelperBase::cPgpWarnF
protected

Definition at line 111 of file csshelperbase.h.

◆ cPgpWarnH

QColor MessageViewer::CSSHelperBase::cPgpWarnH
protected

Definition at line 112 of file csshelperbase.h.

◆ cPgpWarnHT

QColor MessageViewer::CSSHelperBase::cPgpWarnHT
protected

Definition at line 113 of file csshelperbase.h.

◆ imgHideUrl

QString MessageViewer::CSSHelperBase::imgHideUrl
protected

Definition at line 128 of file csshelperbase.h.

◆ imgShowUrl

QString MessageViewer::CSSHelperBase::imgShowUrl
protected

Definition at line 127 of file csshelperbase.h.

◆ mBackgroundColor

QColor MessageViewer::CSSHelperBase::mBackgroundColor
protected

Definition at line 101 of file csshelperbase.h.

◆ mBodyFont

QFont MessageViewer::CSSHelperBase::mBodyFont
protected

Definition at line 90 of file csshelperbase.h.

◆ mFixedFont

QFont MessageViewer::CSSHelperBase::mFixedFont
protected

Definition at line 92 of file csshelperbase.h.

◆ mFixedPrintFont

QFont MessageViewer::CSSHelperBase::mFixedPrintFont
protected

Definition at line 93 of file csshelperbase.h.

◆ mForegroundColor

QColor MessageViewer::CSSHelperBase::mForegroundColor
protected

Definition at line 99 of file csshelperbase.h.

◆ mLinkColor

QColor MessageViewer::CSSHelperBase::mLinkColor
protected

Definition at line 100 of file csshelperbase.h.

◆ mPrintFont

QFont MessageViewer::CSSHelperBase::mPrintFont
protected

Definition at line 91 of file csshelperbase.h.

◆ mQuoteColor

QColor MessageViewer::CSSHelperBase::mQuoteColor[3]
protected

Definition at line 95 of file csshelperbase.h.

◆ mQuoteFont

QFont MessageViewer::CSSHelperBase::mQuoteFont
protected

Definition at line 94 of file csshelperbase.h.

◆ mRecycleQuoteColors

bool MessageViewer::CSSHelperBase::mRecycleQuoteColors = false
protected

Definition at line 96 of file csshelperbase.h.

◆ mShrinkQuotes

bool MessageViewer::CSSHelperBase::mShrinkQuotes = false
protected

Definition at line 97 of file csshelperbase.h.

◆ mUseBrowserColor

bool MessageViewer::CSSHelperBase::mUseBrowserColor = false
protected

Definition at line 98 of file csshelperbase.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.