Kate
exporterpluginview.h
Go to the documentation of this file.
00001 00020 #ifndef EXPORTERPLUGINVIEW_H 00021 #define EXPORTERPLUGINVIEW_H 00022 00023 #include <QtCore/QObject> 00024 #include <kxmlguiclient.h> 00025 00026 #include <ktexteditor/range.h> 00027 00028 namespace KTextEditor { 00029 class View; 00030 } 00031 00032 class ExporterPluginView : public QObject, public KXMLGUIClient 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 ExporterPluginView(KTextEditor::View* view = 0); 00038 ~ExporterPluginView(); 00039 00040 private: 00042 void exportData(const bool useSelction, QTextStream& output); 00043 00044 private slots: 00045 void exportToClipboard(); 00046 void exportToFile(); 00047 00048 void updateSelectionAction(KTextEditor::View *view); 00049 00050 private: 00051 KTextEditor::View* m_view; 00052 QAction* m_copyAction; 00053 QAction* m_fileExportAction; 00054 }; 00055 00056 #endif // EXPORTERPLUGINVIEW_H 00057 00058 // kate: space-indent on; indent-width 2; replace-tabs on;
KDE 4.6 API Reference