00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef koPartSelectAction_h
00020 #define koPartSelectAction_h
00021
00022 #include <kaction.h>
00023 #include <kactionmenu.h>
00024 #include <KoQueryTrader.h>
00025
00026 #include <Q3ValueList>
00027
00033 class KOFFICEUI_EXPORT KoPartSelectAction : public KActionMenu
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 KoPartSelectAction( const QString& text, KActionCollection* parent = 0, const char* name = 0 );
00039 KoPartSelectAction( const QString& text, const QString& icon,
00040 KActionCollection* parent = 0, const char* name = 0 );
00041 KoPartSelectAction( const QString& text, const QString& icon,
00042 QObject* receiver, const char* slot, KActionCollection* parent, const char* name = 0 );
00043
00044 KoDocumentEntry documentEntry() const { return m_documentEntry; }
00045
00046
00047
00048 protected:
00049 void init();
00050
00051 protected slots:
00052 virtual void slotActivated();
00053 void slotActionActivated();
00054
00055 private:
00056 Q3ValueList<KoDocumentEntry> m_lstEntries;
00057 KoDocumentEntry m_documentEntry;
00058 };
00059
00060 #endif