MessageViewer::CSSHelperBase
#include <csshelperbase.h>

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 (bool fixedFont=false) const |
QString | extraCommonCss (const QString &headerFont) const |
QString | extraPrintCss (const QString &headerFont) const |
QString | extraScreenCss (const QString &headerFont) const |
virtual QString | htmlHead (bool fixedFont=false) 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.
Constructor & Destructor Documentation
◆ CSSHelperBase()
|
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 70 of file csshelperbase.cpp.
Member Function Documentation
◆ cssDefinitions()
QString MessageViewer::CSSHelperBase::cssDefinitions | ( | bool | fixedFont = false | ) | const |
- Returns
- The collected CSS definitions as a string
Definition at line 186 of file csshelperbase.cpp.
◆ htmlHead()
|
virtual |
- Returns
- HTML head including style sheet definitions and the >body< tag
Reimplemented in MessageViewer::CSSHelper.
Definition at line 195 of file csshelperbase.cpp.
◆ nonQuotedFontTag()
QString MessageViewer::CSSHelperBase::nonQuotedFontTag | ( | ) | const |
- Returns
- a <div> start tag with embedded style information suitable for non-quoted text
Definition at line 237 of file csshelperbase.cpp.
◆ quoteColor()
QColor MessageViewer::CSSHelperBase::quoteColor | ( | int | level | ) | const |
- Returns
- the quote color for the given level, where level ranges from 0 to 2
Definition at line 750 of file csshelperbase.cpp.
◆ quoteFontTag()
QString MessageViewer::CSSHelperBase::quoteFontTag | ( | int | level | ) | const |
- Returns
- a <div> start tag with embedded style information suitable for quoted text with quote level
level
Definition at line 204 of file csshelperbase.cpp.
◆ recalculatePGPColors()
|
protected |
Recalculate PGP frame and body colors (should be called after changing color settings)
Definition at line 82 of file csshelperbase.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 04:01:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.