Messagelib

headerstyleplugin.cpp
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "headerstyleplugin.h"
8
9using namespace MessageViewer;
10class MessageViewer::HeaderStylePluginPrivate
11{
12public:
13 HeaderStylePluginPrivate() = default;
14
15 bool mIsEnabled = false;
16 bool mShowEmoticons = true;
17};
18
19HeaderStylePlugin::HeaderStylePlugin(QObject *parent)
20 : QObject(parent)
21 , d(new MessageViewer::HeaderStylePluginPrivate)
22{
23}
24
25HeaderStylePlugin::~HeaderStylePlugin() = default;
26
27bool HeaderStylePlugin::hasMargin() const
28{
29 return true;
30}
31
32QString HeaderStylePlugin::alignment() const
33{
34 return QStringLiteral("left");
35}
36
37int HeaderStylePlugin::elidedTextSize() const
38{
39 return -1;
40}
41
42void HeaderStylePlugin::setIsEnabled(bool enabled)
43{
44 d->mIsEnabled = enabled;
45}
46
47bool HeaderStylePlugin::isEnabled() const
48{
49 return d->mIsEnabled;
50}
51
52QString HeaderStylePlugin::attachmentHtml() const
53{
54 return {};
55}
56
57bool HeaderStylePlugin::hasConfigureDialog() const
58{
59 return false;
60}
61
62void HeaderStylePlugin::showConfigureDialog(QWidget *parent)
63{
64 Q_UNUSED(parent)
65 // Reimplement
66}
67
68QString HeaderStylePlugin::extraScreenCss(const QString &headerFont) const
69{
70 Q_UNUSED(headerFont)
71 return {};
72}
73
74QString HeaderStylePlugin::extraPrintCss(const QString &headerFont) const
75{
76 Q_UNUSED(headerFont)
77 return {};
78}
79
80QString HeaderStylePlugin::extraCommonCss(const QString &headerFont) const
81{
82 Q_UNUSED(headerFont)
83 return {};
84}
85
86#include "moc_headerstyleplugin.cpp"
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 11:58:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.