12#include "messageviewer_export.h"
20namespace MessageViewer
22class HeaderStylePlugin;
29 struct MESSAGEVIEWER_EXPORT HtmlHeadSettings {
30 bool fixedFont =
false;
31 bool htmlFormat =
true;
42 virtual QString htmlHead(
const HtmlHeadSettings &)
const;
45 [[nodiscard]]
QString cssDefinitions(
const HtmlHeadSettings &)
const;
49 [[nodiscard]]
QString quoteFontTag(
int level)
const;
52 [[nodiscard]]
QString nonQuotedFontTag()
const;
54 [[nodiscard]]
QFont bodyFont(
bool fixedFont =
false,
bool printing =
false)
const;
56 void setBodyFont(
const QFont &font);
57 void setPrintFont(
const QFont &font);
60 [[nodiscard]]
QColor quoteColor(
int level)
const;
61 [[nodiscard]]
QString quoteColorName(
int level)
const;
63 [[nodiscard]]
QColor pgpWarnColor()
const;
65 [[nodiscard]]
QString addEndBlockQuote(
int numberBlock)
const;
66 [[nodiscard]]
QString addStartBlockQuote(
int numberBlock)
const;
68 [[nodiscard]]
QString extraScreenCss(
const QString &headerFont)
const;
69 [[nodiscard]]
QString extraPrintCss(
const QString &headerFont)
const;
70 [[nodiscard]]
QString extraCommonCss(
const QString &headerFont)
const;
74 enum InlineMessageType {
87 void recalculatePGPColors();
93 QFont mFixedPrintFont;
96 bool mRecycleQuoteColors =
false;
97 bool mShrinkQuotes =
false;
98 bool mUseBrowserColor =
false;
125 QColor cInlineMessage[MESSAGE_TYPE_COUNT];
131 [[nodiscard]]
QString quoteCssDefinition()
const;
132 [[nodiscard]]
int fontSize(
bool fixed,
bool print =
false)
const;
134 [[nodiscard]]
QString printCssDefinitions(
const HtmlHeadSettings &)
const;
136 [[nodiscard]]
QString screenCssDefinitions(
const CSSHelperBase *helper,
const HtmlHeadSettings &)
const;
138 [[nodiscard]]
QString commonCssDefinitions()
const;
139 [[nodiscard]]
QString fullAddressList()
const;
140 [[nodiscard]]
QString linkColorDefinition(
const HtmlHeadSettings &htmlHeadSettings)
const;
141 [[nodiscard]]
QString defaultScreenHeaderFont()
const;
142 [[nodiscard]]
QString defaultPrintHeaderFont()
const;
143 [[nodiscard]]
bool useBrowserColor(
const HtmlHeadSettings &htmlHeadSettings)
const;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:48:01 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.