/*
  SPDX-FileCopyrightText: 2012-2026 Laurent Montel <montel@kde.org>

  SPDX-License-Identifier: LGPL-2.0-or-later

*/

#pragma once

#include <KActionMenu>
class QTextEdit;
namespace KPIMTextEdit
{
class TableActionMenuPrivate;

class TableActionMenu : public KActionMenu
{
    Q_OBJECT
public:
    explicit TableActionMenu(QTextEdit *textEdit, QObject *parent = nullptr);
    ~TableActionMenu() override;

    void setRichTextMode(bool richTextMode);

private:
    friend class TableActionMenuPrivate;
    std::unique_ptr<TableActionMenuPrivate> const d;
};
}
