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
#include <qptrlist.h>
00026
#include <kurl.h>
00027
00028
class KInstance;
00029
class KAboutData;
00030
class HistoryProvider;
00031
class KHTMLSettings;
00032
class KHTMLPart;
00033
00034
namespace DOM
00035 {
00036
class DocumentImpl;
00037 }
00038
00039
class KHTMLFactory :
public KParts::Factory
00040 {
00041 Q_OBJECT
00042
friend class DOM::DocumentImpl;
00043
public:
00044 KHTMLFactory(
bool clone =
false );
00045
virtual ~KHTMLFactory();
00046
00047
virtual KParts::Part *createPartObject(
QWidget *parentWidget,
const char *widgetName,
QObject *parent,
const char *name,
const char *className,
const QStringList &args );
00048
00049
static void registerPart(
KHTMLPart *part );
00050
static void deregisterPart(
KHTMLPart *part );
00051
00052
static QPtrList<KHTMLPart> *partList() {
return s_parts; }
00053
00054
static KInstance *
instance();
00055
00056
static KHTMLSettings *defaultHTMLSettings();
00057
00058
00059
static KParts::HistoryProvider *vLinks() {
00060
return KParts::HistoryProvider::self();
00061 }
00062
00063
protected:
00064
static void ref();
00065
static void deref();
00066
private:
00067
static unsigned long s_refcnt;
00068
static KHTMLFactory *s_self;
00069
static KInstance *s_instance;
00070
static KAboutData *s_about;
00071
static KHTMLSettings *s_settings;
00072
static QPtrList<KHTMLPart> *s_parts;
00073 };
00074
00075
#endif
This file is part of the documentation for khtml Library Version 3.3.1.