chalk

kis_factory.h
1/*
2 * kis_factory.h - part of Krayon
3 *
4 * Copyright (c) 1999 Matthias Elter <elter@kde.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21#ifndef __kis_factory_h__
22#define __kis_factory_h__
23
24#include <tqptrlist.h>
25
26#include <tdeparts/plugin.h>
27
28#include <KoFactory.h>
29
30#include <koffice_export.h>
31
32class TDEInstance;
33class TDEAboutData;
34
35class KRITACORE_EXPORT KisFactory : public KoFactory
36{
37 TQ_OBJECT
38
39
40public:
41 KisFactory( TQObject* parent = 0, const char* name = 0 );
42 ~KisFactory();
43
44 virtual KParts::Part *createPartObject(TQWidget *parentWidget = 0,
45 const char *widgetName = 0,
46 TQObject *parent = 0,
47 const char *name = 0,
48 const char *classname = "KoDocument",
49 const TQStringList &args = TQStringList() );
50
51 static TDEAboutData *aboutData();
52 static TDEInstance *instance();
53
54private:
55 static TDEInstance *s_instance;
56 static TDEAboutData *s_aboutData;
57};
58
59#endif