libkdepim

KPIM::CSSHelper Class Reference

List of all members.

Detailed Description

Definition at line 43 of file csshelper.h.


Public Member Functions

 CSSHelper (const QPaintDeviceMetrics &pdm)
QString htmlHead (bool fixedFont=false) const
QString cssDefinitions (bool fixedFont=false) const
QString quoteFontTag (int level) const
QString nonQuotedFontTag () const
QFont bodyFont (bool fixedFont=false, bool printing=false) const
void setBodyFont (const QFont &font)
void setPrintFont (const QFont &font)

Protected Member Functions

void recalculatePGPColors ()

Protected Attributes

QFont mBodyFont
QFont mPrintFont
QFont mFixedFont
QFont mFixedPrintFont
QFont mQuoteFont [3]
QColor mQuoteColor [3]
bool mRecycleQuoteColors
bool mBackingPixmapOn
bool mShrinkQuotes
QString mBackingPixmapStr
QColor mForegroundColor
QColor mLinkColor
QColor mVisitedLinkColor
QColor mBackgroundColor
QColor cPgpOk1F
QColor cPgpOk1H
QColor cPgpOk1B
QColor cPgpOk0F
QColor cPgpOk0H
QColor cPgpOk0B
QColor cPgpWarnF
QColor cPgpWarnH
QColor cPgpWarnB
QColor cPgpErrF
QColor cPgpErrH
QColor cPgpErrB
QColor cPgpEncrF
QColor cPgpEncrH
QColor cPgpEncrB
QColor cHtmlWarning

Constructor & Destructor Documentation

KPIM::CSSHelper::CSSHelper const QPaintDeviceMetrics &  pdm  ) 
 

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 71 of file csshelper.cpp.


Member Function Documentation

QString KPIM::CSSHelper::cssDefinitions bool  fixedFont = false  )  const
 

Returns:
The collected CSS definitions as a string

Definition at line 156 of file csshelper.cpp.

QString KPIM::CSSHelper::htmlHead bool  fixedFont = false  )  const
 

Returns:
HTML head including style sheet definitions and the >body< tag

Definition at line 172 of file csshelper.cpp.

QString KPIM::CSSHelper::nonQuotedFontTag  )  const
 

Returns:
a <div> start tag with embedded style information suitable for non-quoted text

Definition at line 192 of file csshelper.cpp.

QString KPIM::CSSHelper::quoteFontTag int  level  )  const
 

Returns:
a <div> start tag with embedded style information suitable for quoted text with quote level level

Definition at line 179 of file csshelper.cpp.

void KPIM::CSSHelper::recalculatePGPColors  )  [protected]
 

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

Definition at line 105 of file csshelper.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys