| 1 | /* |
| 2 | SPDX-FileCopyrightText: 2009 Milian Wolff <mail@milianw.de> |
| 3 | |
| 4 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 5 | */ |
| 6 | |
| 7 | #ifndef HTMLEXPORTER_H |
| 8 | #define HTMLEXPORTER_H |
| 9 | |
| 10 | #include "abstractexporter.h" |
| 11 | |
| 12 | /// TODO: add abstract interface for future exporters |
| 13 | class HTMLExporter : public AbstractExporter |
| 14 | { |
| 15 | public: |
| 16 | HTMLExporter(KTextEditor::View *view, QTextStream &output, const bool = false); |
| 17 | ~HTMLExporter() override; |
| 18 | |
| 19 | void openLine() override; |
| 20 | void closeLine(const bool lastLine) override; |
| 21 | void exportText(const QString &text, const KTextEditor::Attribute::Ptr &attrib) override; |
| 22 | }; |
| 23 | |
| 24 | #endif |
| 25 | |