You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.2 KiB
77 lines
2.2 KiB
15 years ago
|
/* This file is part of the KDE project
|
||
|
*
|
||
|
* Copyright (C) 2000 Simon Hausmann <hausmann@kde.org>
|
||
|
*
|
||
|
* This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Library General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 2 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This library is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Library General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Library General Public License
|
||
|
* along with this library; see the file COPYING.LIB. If not, write to
|
||
|
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
* Boston, MA 02110-1301, USA.
|
||
|
*/
|
||
12 years ago
|
#ifndef __tdehtml_factory_h__
|
||
|
#define __tdehtml_factory_h__
|
||
15 years ago
|
|
||
12 years ago
|
#include <tdeparts/factory.h>
|
||
|
#include <tdeparts/historyprovider.h>
|
||
14 years ago
|
#include <tqptrlist.h>
|
||
15 years ago
|
#include <kurl.h>
|
||
|
|
||
12 years ago
|
class TDEInstance;
|
||
|
class TDEAboutData;
|
||
15 years ago
|
class HistoryProvider;
|
||
|
class KHTMLSettings;
|
||
|
class KHTMLPart;
|
||
|
|
||
|
namespace DOM
|
||
|
{
|
||
|
class DocumentImpl;
|
||
|
}
|
||
|
|
||
|
class KDE_EXPORT KHTMLFactory : public KParts::Factory
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
friend class DOM::DocumentImpl;
|
||
|
friend class KHTMLViewPrivate;
|
||
|
public:
|
||
|
KHTMLFactory( bool clone = false );
|
||
|
virtual ~KHTMLFactory();
|
||
|
|
||
14 years ago
|
virtual KParts::Part *createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *className, const TQStringList &args );
|
||
15 years ago
|
|
||
|
static void registerPart( KHTMLPart *part );
|
||
|
static void deregisterPart( KHTMLPart *part );
|
||
|
|
||
14 years ago
|
static TQPtrList<KHTMLPart> *partList() { return s_parts; }
|
||
15 years ago
|
|
||
12 years ago
|
static TDEInstance *instance();
|
||
15 years ago
|
|
||
|
static KHTMLSettings *defaultHTMLSettings();
|
||
|
|
||
|
// list of visited URLs
|
||
|
static KParts::HistoryProvider *vLinks() {
|
||
|
return KParts::HistoryProvider::self();
|
||
|
}
|
||
|
|
||
|
protected:
|
||
|
static void ref();
|
||
|
static void deref();
|
||
|
private:
|
||
|
static unsigned long s_refcnt;
|
||
|
static KHTMLFactory *s_self;
|
||
12 years ago
|
static TDEInstance *s_instance;
|
||
|
static TDEAboutData *s_about;
|
||
15 years ago
|
static KHTMLSettings *s_settings;
|
||
14 years ago
|
static TQPtrList<KHTMLPart> *s_parts;
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif
|