File indexing completed on 2024-05-12 05:04:25

0001 /**
0002  * SPDX-FileCopyrightText: 2023 Janet Black
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 #include <QtQml>
0010 
0011 /**
0012  * Clipboard proxy
0013  */
0014 class TextPreprocessing : public QObject
0015 {
0016     Q_OBJECT
0017     QML_ELEMENT
0018     QML_SINGLETON
0019 
0020 public:
0021     explicit TextPreprocessing(QObject *parent = nullptr);
0022     ~TextPreprocessing();
0023 
0024     Q_INVOKABLE QString preprocessHTML(const QString &html, const QColor &linkColor);
0025 };