khtml_factory.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __khtml_factory_h__
00021 #define __khtml_factory_h__
00022
00023 #include <kparts/factory.h>
00024 #include <kparts/historyprovider.h>
00025
00026 class KInstance;
00027 class KAboutData;
00028 class HistoryProvider;
00029 class KHTMLSettings;
00030 class KHTMLPart;
00031
00032 class KHTMLFactory : public KParts::Factory
00033 {
00034 Q_OBJECT
00035 public:
00036 KHTMLFactory( bool clone = false );
00037 virtual ~KHTMLFactory();
00038
00039 virtual KParts::Part *createPartObject( QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, const char *className, const QStringList &args );
00040
00041 static void registerPart( KHTMLPart *part );
00042 static void deregisterPart( KHTMLPart *part );
00043
00044 static QPtrList<KHTMLPart> *partList() { return s_parts; }
00045
00046 static KInstance *instance();
00047
00048 static KHTMLSettings *defaultHTMLSettings();
00049
00050
00051 static KParts::HistoryProvider *vLinks() {
00052 return KParts::HistoryProvider::self();
00053 }
00054
00055 protected:
00056 static void ref();
00057 static void deref();
00058 private:
00059 static unsigned long s_refcnt;
00060 static KHTMLFactory *s_self;
00061 static KInstance *s_instance;
00062 static KAboutData *s_about;
00063 static KHTMLSettings *s_settings;
00064 static QPtrList<KHTMLPart> *s_parts;
00065 };
00066
00067 #endif
This file is part of the documentation for kdelibs Version 3.1.5.