1/*
2 SPDX-FileCopyrightText: 2009 Milian Wolff <mail@milianw.de>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef EXPORTERPLUGINVIEW_H
8#define EXPORTERPLUGINVIEW_H
9
10#include <KTextEditor/View>
11
12#include <QTextStream>
13
14class KateExporter
15{
16public:
17 explicit KateExporter(KTextEditor::View *view)
18 : m_view(view)
19 {
20 }
21
22 void exportToClipboard();
23 void exportToFile(const QString &file);
24
25private:
26 /// TODO: maybe make this scriptable for additional exporters?
27 void exportData(const bool useSelction, QTextStream &output);
28
29private:
30 KTextEditor::View *m_view;
31};
32
33#endif
34

source code of ktexteditor/src/export/exporter.h