File indexing completed on 2024-05-05 05:21:40

0001 /*
0002   SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: LGPL-2.0-or-later
0005 
0006 */
0007 
0008 #pragma once
0009 
0010 #include "kpimtextedit_private_export.h"
0011 #include <QDialog>
0012 
0013 namespace KPIMTextEdit
0014 {
0015 class InsertHtmlDialogPrivate;
0016 class KPIMTEXTEDIT_TESTS_EXPORT InsertHtmlDialog : public QDialog
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit InsertHtmlDialog(QWidget *parent = nullptr);
0021     ~InsertHtmlDialog() override;
0022     [[nodiscard]] QString html() const;
0023     void setSelectedText(const QString &str);
0024 
0025 private:
0026     friend class InsertHtmlDialogPrivate;
0027     std::unique_ptr<InsertHtmlDialogPrivate> const d;
0028     void readConfig();
0029     void writeConfig();
0030 };
0031 }