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 { Positive, Information, Warning, Error, MESSAGE_TYPE_COUNT };
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 [[nodiscard]]
QString quoteCssDefinition()
const;
126 [[nodiscard]]
int fontSize(
bool fixed,
bool print =
false)
const;
128 [[nodiscard]]
QString printCssDefinitions(
const HtmlHeadSettings &)
const;
130 [[nodiscard]]
QString screenCssDefinitions(
const CSSHelperBase *helper,
const HtmlHeadSettings &)
const;
132 [[nodiscard]]
QString commonCssDefinitions()
const;
133 [[nodiscard]]
QString fullAddressList()
const;
134 [[nodiscard]]
QString linkColorDefinition(
const HtmlHeadSettings &htmlHeadSettings)
const;
135 [[nodiscard]]
QString defaultScreenHeaderFont()
const;
136 [[nodiscard]]
QString defaultPrintHeaderFont()
const;
137 [[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 Oct 11 2024 12:08:46 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.