File indexing completed on 2024-05-05 05:21:41
0001 /* 0002 SPDX-FileCopyrightText: 2016-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 <QWidget> 0011 0012 #include <KSyntaxHighlighting/Repository> 0013 #include <TextCustomEditor/PlainTextEditor> 0014 0015 namespace TextCustomEditor 0016 { 0017 class TextEditorCompleter; 0018 } 0019 namespace KPIMTextEdit 0020 { 0021 class InsertHtmlEditor : public TextCustomEditor::PlainTextEditor 0022 { 0023 Q_OBJECT 0024 public: 0025 explicit InsertHtmlEditor(QWidget *parent = nullptr); 0026 ~InsertHtmlEditor() override; 0027 0028 protected: 0029 void keyPressEvent(QKeyEvent *e) override; 0030 0031 private: 0032 TextCustomEditor::TextEditorCompleter *const mTextEditorCompleter; 0033 KSyntaxHighlighting::Repository mRepo; 0034 }; 0035 }