// Copyright (c) 2000 Phil Thompson // // This file contains the definition of the interface to the Kugar KPart. #ifndef _KUGAR_FACTORY_H #define _KUGAR_FACTORY_H #include #include class KInstance; class KugarFactory : public KoFactory { Q_OBJECT public: KugarFactory( TQObject* parent = 0, const char* name = 0 ); ~KugarFactory(); 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 KInstance* global(); // _Creates_ a KAboutData but doesn't keep ownership static KAboutData* aboutData(); private: static KInstance* s_instance; static KAboutData* s_aboutdata; }; #endif