Messagelib
10 #ifndef MIMETREEPARSER_CSSHELPERBASE_H 11 #define MIMETREEPARSER_CSSHELPERBASE_H 13 #include "messageviewer_export.h" 22 class HeaderStylePlugin;
38 virtual QString htmlHead(
bool fixedFont =
false)
const;
41 Q_REQUIRED_RESULT
QString cssDefinitions(
bool fixedFont =
false)
const;
45 Q_REQUIRED_RESULT
QString quoteFontTag(
int level)
const;
48 Q_REQUIRED_RESULT
QString nonQuotedFontTag()
const;
50 Q_REQUIRED_RESULT
QFont bodyFont(
bool fixedFont =
false,
bool printing =
false)
const;
52 void setBodyFont(
const QFont &font);
53 void setPrintFont(
const QFont &font);
56 Q_REQUIRED_RESULT
QColor quoteColor(
int level)
const;
57 Q_REQUIRED_RESULT
QString quoteColorName(
int level)
const;
59 Q_REQUIRED_RESULT
QColor pgpWarnColor()
const;
61 Q_REQUIRED_RESULT
QString addEndBlockQuote(
int numberBlock)
const;
62 Q_REQUIRED_RESULT
QString addStartBlockQuote(
int numberBlock)
const;
64 Q_REQUIRED_RESULT
QString extraScreenCss(
const QString &headerFont)
const;
65 Q_REQUIRED_RESULT
QString extraPrintCss(
const QString &headerFont)
const;
66 Q_REQUIRED_RESULT
QString extraCommonCss(
const QString &headerFont)
const;
70 enum InlineMessageType {
81 void recalculatePGPColors();
87 QFont mFixedPrintFont;
90 bool mRecycleQuoteColors =
false;
91 bool mShrinkQuotes =
false;
92 bool mUseBrowserColor =
false;
119 QColor cInlineMessage[MESSAGE_TYPE_COUNT];
125 QString quoteCssDefinition()
const;
126 int fontSize(
bool fixed,
bool print =
false)
const;
128 QString printCssDefinitions(
bool fixed)
const;
132 QString commonCssDefinitions()
const;
133 QString fullAddressList()
const;
134 QString linkColorDefinition()
const;
135 QString defaultScreenHeaderFont()
const;
136 QString defaultPrintHeaderFont()
const;
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 23:19:52 by
doxygen 1.8.11 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.