Messagelib
7#include "grantleeheaderstyle.h"
8#include "header/grantleeheaderformatter.h"
9#include <GrantleeTheme/GrantleeTheme>
11#include <KMime/Message>
13using namespace MessageViewer;
14class MessageViewer::GrantleeHeaderStylePrivate
17 GrantleeHeaderStylePrivate()
18 : mGrantleeFormatter(new GrantleeHeaderFormatter)
22 ~GrantleeHeaderStylePrivate()
24 delete mGrantleeFormatter;
27 GrantleeHeaderFormatter *
const mGrantleeFormatter;
30GrantleeHeaderStyle::GrantleeHeaderStyle()
32 , d(new MessageViewer::GrantleeHeaderStylePrivate)
36GrantleeHeaderStyle::~GrantleeHeaderStyle() =
default;
38const char *GrantleeHeaderStyle::name()
const
43QString GrantleeHeaderStyle::format(KMime::Message *message)
const
49 GrantleeHeaderFormatter::GrantleeHeaderFormatterSettings settings;
50 settings.isPrinting = isPrinting();
51 settings.theme = theme();
52 settings.style =
this;
53 settings.message = message;
54 settings.showEmoticons = showEmoticons();
55 return d->mGrantleeFormatter->toHtml(settings);
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:40 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.