kexi

kexireportfactory.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2004 Cedric Pasteur <cedric.pasteur@free.fr>
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 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KEXIREPORTFACTORY_H
00021 #define KEXIREPORTFACTORY_H
00022 
00023 #include <widgetfactory.h>
00024 
00026 class KexiReportFactory : public KFormDesigner::WidgetFactory
00027 {
00028     Q_OBJECT
00029 
00030     public:
00031         KexiReportFactory(QObject *parent, const char *name, const QStringList &args);
00032         virtual ~KexiReportFactory();
00033 
00034         virtual QString  name();
00035         virtual QWidget *createWidget(const QCString &classname, QWidget *parent, const char *name, KFormDesigner::Container *container,
00036             int options = DefaultOptions);
00037 
00038         virtual bool createMenuActions(const QCString &classname, QWidget *w, QPopupMenu *menu,
00039            KFormDesigner::Container *container);
00040         virtual bool startEditing(const QCString &classname, QWidget *w, KFormDesigner::Container *container);
00041         virtual bool previewWidget(const QCString &, QWidget *, KFormDesigner::Container *);
00042 
00043         //virtual void      saveSpecialProperty(const QString &classname, const QString &name, const QVariant &value, QWidget *w,
00044                  //QDomElement &parentNode, QDomDocument &parent) {}
00045         //virtual void            readSpecialProperty(const QCString &classname, QDomElement &node, QWidget *w, KFormDesigner::ObjectTreeItem *item) {}
00046         virtual QValueList<QCString> autoSaveProperties(const QCString &classname);
00047 
00048     public slots:
00049         void editText();
00050 
00051     protected:
00052         virtual bool isPropertyVisibleInternal(const QCString &, QWidget *, const QCString &, bool isTopLevel);
00053 //      virtual void changeText(const QString &newText);
00054 //      virtual void resizeEditor(QWidget *widget, const QCString &classname);
00055 
00056     private:
00057         QWidget *m_widget;
00058         KFormDesigner::Container *m_container;
00059 };
00060 
00061 #endif
00062 
KDE Home | KDE Accessibility Home | Description of Access Keys