kchart

kchart_factory.h
1
7#ifndef KCHART_FACTORY_H
8#define KCHART_FACTORY_H
9
10
11#include <KoFactory.h>
12
13
14class TDEInstance;
15class TDEAboutData;
16
17namespace KChart
18{
19
20class KChartFactory : public KoFactory
21{
22 TQ_OBJECT
23
24public:
25 KChartFactory( TQObject* parent = 0, const char* name = 0 );
26 virtual ~KChartFactory();
27
28 virtual KParts::Part *createPartObject( TQWidget* = 0,
29 const char * = 0,
30 TQObject* parent = 0,
31 const char* name = 0,
32 const char* classname = "KoDocument",
33 const TQStringList &args = TQStringList() );
34
35 static TDEInstance* global();
36
37 // _Creates_ a TDEAboutData but doesn't keep ownership
38 static TDEAboutData* aboutData();
39
40private:
41 static TDEInstance* s_global;
42 static TDEAboutData *s_aboutData;
43};
44
45} //namespace KChart
46
47#endif