blob: 7957037a8a43d6b495b8fafe7067e5caeee18872 (
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
|
/* This template is based off of the KOffice example written by Torben Weis <weis@kde.org
It was converted to a KDevelop template by Ian Reinhart Geiser <geiseri@yahoo.com>
*/
#ifndef %{APPNAME}_FACTORY_H
#define %{APPNAME}_FACTORY_H
#include <koFactory.h>
class TDEInstance;
class TDEAboutData;
class %{APPNAME}Factory : public KoFactory
{
TQ_OBJECT
public:
%{APPNAME}Factory( TQObject* parent = 0, const char* name = 0 );
~%{APPNAME}Factory();
virtual KParts::Part *createPartObject( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KoDocument", const TQStringList &args = TQStringList() );
static TDEInstance* global();
// _Creates_ a TDEAboutData but doesn't keep ownership
static TDEAboutData* aboutData();
private:
static TDEInstance* s_global;
static TDEAboutData* s_aboutData;
};
#endif
|