File indexing completed on 2025-03-09 04:54:40
0001 /* -*- c++ -*- 0002 csshelper.h 0003 0004 This file is part of KMail, the KDE mail client. 0005 SPDX-FileCopyrightText: 2003 Marc Mutz <mutz@kde.org> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include <MessageViewer/CSSHelperBase> 0013 0014 #include "messageviewer_export.h" 0015 0016 namespace MessageViewer 0017 { 0018 /** 0019 * @brief The CSSHelper class 0020 */ 0021 class MESSAGEVIEWER_EXPORT CSSHelper : public CSSHelperBase 0022 { 0023 public: 0024 explicit CSSHelper(const QPaintDevice *pd); 0025 ~CSSHelper() override; 0026 0027 /** @return HTML head including style sheet definitions and the 0028 >body< tag */ 0029 [[nodiscard]] QString htmlHead(const HtmlHeadSettings &htmlHeadSettings) const override; 0030 [[nodiscard]] QString endBodyHtml() const; 0031 void updateColor(); 0032 }; 0033 }