summaryrefslogtreecommitdiffstats
path: root/kchart/kchart_factory.h
blob: 13936e4a67153a507798e6adb833f6676c8fcb9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
 * $Id: kchart_factory.h 508787 2006-02-12 18:28:12Z ingwa $
 *
 * Kalle Dalheimer <[email protected]>
 */

#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