diff options
Diffstat (limited to 'kchart/kchart_factory.h')
-rw-r--r-- | kchart/kchart_factory.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/kchart/kchart_factory.h b/kchart/kchart_factory.h new file mode 100644 index 00000000..13936e4a --- /dev/null +++ b/kchart/kchart_factory.h @@ -0,0 +1,46 @@ +/** + * $Id: kchart_factory.h 508787 2006-02-12 18:28:12Z ingwa $ + * + * Kalle Dalheimer <kalle@kde.org> + */ + +#ifndef KCHART_FACTORY_H +#define KCHART_FACTORY_H + + +#include <KoFactory.h> + + +class KInstance; +class KAboutData; + +namespace KChart +{ + +class KChartFactory : public KoFactory +{ + Q_OBJECT +public: + KChartFactory( QObject* parent = 0, const char* name = 0 ); + virtual ~KChartFactory(); + + virtual KParts::Part *createPartObject( QWidget* = 0, + const char * = 0, + QObject* parent = 0, + const char* name = 0, + const char* classname = "KoDocument", + const QStringList &args = QStringList() ); + + static KInstance* global(); + + // _Creates_ a KAboutData but doesn't keep ownership + static KAboutData* aboutData(); + +private: + static KInstance* s_global; + static KAboutData *s_aboutData; +}; + +} //namespace KChart + +#endif |