kchart

kchart_factory.h

00001 
00007 #ifndef KCHART_FACTORY_H
00008 #define KCHART_FACTORY_H
00009 
00010 
00011 #include <KoFactory.h>
00012 
00013 
00014 class KInstance;
00015 class KAboutData;
00016 
00017 namespace KChart
00018 {
00019 
00020 class KChartFactory : public KoFactory
00021 {
00022     Q_OBJECT
00023 public:
00024     KChartFactory( QObject* parent = 0, const char* name = 0 );
00025     virtual ~KChartFactory();
00026 
00027     virtual KParts::Part  *createPartObject( QWidget* = 0, 
00028                          const char * = 0,
00029                          QObject* parent = 0,
00030                          const char* name = 0,
00031                          const char* classname = "KoDocument",
00032                          const QStringList &args = QStringList() );
00033 
00034     static KInstance* global();
00035 
00036     // _Creates_ a KAboutData but doesn't keep ownership
00037     static KAboutData* aboutData();
00038 
00039 private:
00040     static KInstance* s_global;
00041     static KAboutData *s_aboutData;
00042 };
00043 
00044 }  //namespace KChart
00045 
00046 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys