keximacropart.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 2006 Sebastian Sauer <mail@dipe.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 You should have received a copy of the GNU Library General Public License 00013 along with this library; see the file COPYING.LIB. If not, write to 00014 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00015 Boston, MA 02110-1301, USA. 00016 */ 00017 00018 #ifndef KEXIMACROPART_H 00019 #define KEXIMACROPART_H 00020 00021 //#include <qcstring.h> 00022 00023 #include <kexi.h> 00024 #include <kexipart.h> 00025 #include <kexidialogbase.h> 00026 00030 class KexiMacroPart : public KexiPart::Part 00031 { 00032 Q_OBJECT 00033 00034 public: 00035 00043 KexiMacroPart(QObject *parent, const char *name, const QStringList& args); 00044 00048 virtual ~KexiMacroPart(); 00049 00054 virtual bool execute(KexiPart::Item* item, QObject* sender = 0); 00055 00059 virtual QString i18nMessage(const QCString& englishMessage) const; 00060 00061 protected: 00062 00071 virtual KexiViewBase* createView(QWidget *parent, 00072 KexiDialogBase* dialog, 00073 KexiPart::Item& item, 00074 int viewMode = Kexi::DesignViewMode, 00075 QMap<QString,QString>* staticObjectArgs = 0); 00076 00080 virtual void initPartActions(); 00081 00085 virtual void initInstanceActions(); 00086 00087 private: 00089 class Private; 00091 Private* const d; 00092 }; 00093 00094 #endif 00095
