summaryrefslogtreecommitdiffstats
path: root/kugar/part/kugar_factory.h
blob: 1acb2920f57fec209d0c09994f62844033cad856 (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
// Copyright (c) 2000 Phil Thompson <phil@river-bank.demon.co.uk>
//
// This file contains the definition of the interface to the Kugar KPart.


#ifndef _KUGAR_FACTORY_H
#define _KUGAR_FACTORY_H


#include <KoFactory.h>
#include <kaboutdata.h>

class KInstance;


class KugarFactory : public KoFactory
{
    Q_OBJECT
  TQ_OBJECT
public:
    KugarFactory( TQObject* tqparent = 0, const char* name = 0 );
    ~KugarFactory();

    virtual KParts::Part *createPartObject( TQWidget *tqparentWidget = 0, const char *widgetName = 0,
                                            TQObject *tqparent = 0, const char *name = 0, const char *classname = "KoDocument",
                                            const TQStringList &args = TQStringList() );

    static KInstance* global();

    // _Creates_ a KAboutData but doesn't keep ownership
    static KAboutData* aboutData();
private:
    static KInstance* s_instance;
    static KAboutData* s_aboutdata;
};

#endif