summaryrefslogtreecommitdiffstats
path: root/kugar/part/kugar_factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'kugar/part/kugar_factory.h')
-rw-r--r--kugar/part/kugar_factory.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/kugar/part/kugar_factory.h b/kugar/part/kugar_factory.h
new file mode 100644
index 00000000..70ad6317
--- /dev/null
+++ b/kugar/part/kugar_factory.h
@@ -0,0 +1,36 @@
+// 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
+public:
+ KugarFactory( QObject* parent = 0, const char* name = 0 );
+ ~KugarFactory();
+
+ virtual KParts::Part *createPartObject( QWidget *parentWidget = 0, const char *widgetName = 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_instance;
+ static KAboutData* s_aboutdata;
+};
+
+#endif