katedocumenthelpers.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __KATE_DOCUMENT_HELPERS__
00022 #define __KATE_DOCUMENT_HELPERS__
00023
00024 #include "../interfaces/document.h"
00025
00026 #include <kparts/browserextension.h>
00027
00028 #include <qstringlist.h>
00029 #include <qguardedptr.h>
00030
00031 class KateDocument;
00032
00033 class KateBrowserExtension : public KParts::BrowserExtension
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 KateBrowserExtension( KateDocument* doc );
00039
00040 public slots:
00041 void copy();
00042 void slotSelectionChanged();
00043 void print();
00044
00045 private:
00046 KateDocument* m_doc;
00047 };
00048
00049 class KateExportAction: public Kate::ActionMenu
00050 {
00051 Q_OBJECT
00052
00053 public:
00054 KateExportAction(const QString& text, QObject* parent = 0, const char* name = 0)
00055 : Kate::ActionMenu(text, parent, name) { init(); };
00056
00057 ~KateExportAction(){;}
00058
00059 void updateMenu (Kate::Document *doc);
00060
00061 private:
00062 QGuardedPtr<Kate::Document> m_doc;
00063 QStringList filter;
00064 void init();
00065
00066 protected slots:
00067 void filterChoosen(int);
00068 };
00069
00070 #endif
00071
This file is part of the documentation for kate Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Mar 4 22:45:59 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003