KoPartSelectAction.h
1/* This file is part of the KDE libraries
2 Copyright (C) 2001 David Faure <faure@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301, USA.
17*/
18
19#ifndef koPartSelectAction_h
20#define koPartSelectAction_h
21
22#include <tdeaction.h>
23#include <KoQueryTrader.h>
24
30class KOFFICEUI_EXPORT KoPartSelectAction : public TDEActionMenu
31{
32 TQ_OBJECT
33
34
35public:
36 KoPartSelectAction( const TQString& text, TQObject* parent = 0, const char* name = 0 );
37 KoPartSelectAction( const TQString& text, const TQString& icon,
38 TQObject* parent = 0, const char* name = 0 );
39 KoPartSelectAction( const TQString& text, const TQString& icon,
40 TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
41
42 KoDocumentEntry documentEntry() const { return m_documentEntry; }
43
44 //virtual void plug(TQWidget* widget, int index);
45
46protected:
47 void init();
48
49protected slots:
50 virtual void slotActivated();
51 void slotActionActivated();
52
53private:
54 TQValueList<KoDocumentEntry> m_lstEntries;
55 KoDocumentEntry m_documentEntry;
56};
57
58#endif
Represents an available KOffice component that supports the document interface.
An action for inserting an embedded object.