File indexing completed on 2024-04-28 11:45:05

0001 /*
0002     SPDX-FileCopyrightText: 2009 Milian Wolff <mail@milianw.de>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef EXPORTERPLUGINVIEW_H
0008 #define EXPORTERPLUGINVIEW_H
0009 
0010 #include <KTextEditor/View>
0011 
0012 #include <QTextStream>
0013 
0014 class KateExporter
0015 {
0016 public:
0017     explicit KateExporter(KTextEditor::View *view)
0018         : m_view(view)
0019     {
0020     }
0021 
0022     void exportToClipboard();
0023     void exportToFile(const QString &file);
0024 
0025 private:
0026     /// TODO: maybe make this scriptable for additional exporters?
0027     void exportData(const bool useSelction, QTextStream &output);
0028 
0029 private:
0030     KTextEditor::View *m_view;
0031 };
0032 
0033 #endif