20 #ifndef __khtml_factory_h__
21 #define __khtml_factory_h__
23 #include <kparts/factory.h>
24 #include <kparts/historyprovider.h>
25 #include <tqptrlist.h>
30 class HistoryProvider;
42 friend class DOM::DocumentImpl;
43 friend class KHTMLViewPrivate;
45 KHTMLFactory(
bool clone =
false );
46 virtual ~KHTMLFactory();
48 virtual KParts::Part *
createPartObject( TQWidget *parentWidget,
const char *widgetName, TQObject *parent,
const char *name,
const char *className,
const TQStringList &args );
50 static void registerPart(
KHTMLPart *part );
51 static void deregisterPart(
KHTMLPart *part );
53 static TQPtrList<KHTMLPart> *partList() {
return s_parts; }
61 return KParts::HistoryProvider::self();
68 static unsigned long s_refcnt;
69 static KHTMLFactory *s_self;
73 static TQPtrList<KHTMLPart> *s_parts;