File indexing completed on 2025-02-16 04:49:26

0001 /*
0002    SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <MessageComposer/PluginEditorConvertText>
0010 
0011 class MarkdownPlugin : public MessageComposer::PluginEditorConvertText
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit MarkdownPlugin(QObject *parent = nullptr, const QList<QVariant> & = {});
0016     ~MarkdownPlugin() override;
0017 
0018     MessageComposer::PluginEditorConvertTextInterface *createInterface(QObject *parent) override;
0019 
0020     [[nodiscard]] bool hasConfigureDialog() const override;
0021     void showConfigureDialog(QWidget *parent) override;
0022     [[nodiscard]] QString description() const override;
0023     [[nodiscard]] bool canWorkOnHtml() const override;
0024     [[nodiscard]] bool hasStatusBarSupport() const override;
0025 
0026     [[nodiscard]] bool hasPopupMenuSupport() const override;
0027     [[nodiscard]] bool hasToolBarSupport() const override;
0028 };