Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdehtml
tdehtml
tdehtml
tdehtml_factory.h
1
/* This file is part of the KDE project
2
*
3
* Copyright (C) 2000 Simon Hausmann <hausmann@kde.org>
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
14
*
15
* You should have received a copy of the GNU Library General Public License
16
* along with this library; see the file COPYING.LIB. If not, write to
17
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
19
*/
20
#ifndef __tdehtml_factory_h__
21
#define __tdehtml_factory_h__
22
23
#include <tdeparts/factory.h>
24
#include <tdeparts/historyprovider.h>
25
#include <tqptrlist.h>
26
#include <kurl.h>
27
28
class
TDEInstance
;
29
class
TDEAboutData
;
30
class
HistoryProvider;
31
class
TDEHTMLSettings
;
32
class
TDEHTMLPart
;
33
34
namespace
DOM
35
{
36
class
DocumentImpl;
37
}
38
39
class
KDE_EXPORT TDEHTMLFactory :
public
KParts::Factory
40
{
41
Q_OBJECT
42
friend
class
DOM::DocumentImpl;
43
friend
class
TDEHTMLViewPrivate;
44
public
:
45
TDEHTMLFactory(
bool
clone =
false
);
46
virtual
~TDEHTMLFactory();
47
48
virtual
KParts::Part
*
createPartObject
( TQWidget *parentWidget,
const
char
*widgetName, TQObject *parent,
const
char
*name,
const
char
*className,
const
TQStringList &args );
49
50
static
void
registerPart(
TDEHTMLPart
*part );
51
static
void
deregisterPart(
TDEHTMLPart
*part );
52
53
static
TQPtrList<TDEHTMLPart> *partList() {
return
s_parts; }
54
55
static
TDEInstance
*
instance
();
56
57
static
TDEHTMLSettings
*defaultHTMLSettings();
58
59
// list of visited URLs
60
static
KParts::HistoryProvider
*vLinks() {
61
return
KParts::HistoryProvider::self
();
62
}
63
64
protected
:
65
static
void
ref();
66
static
void
deref();
67
private
:
68
static
unsigned
long
s_refcnt;
69
static
TDEHTMLFactory *s_self;
70
static
TDEInstance
*s_instance;
71
static
TDEAboutData
*s_about;
72
static
TDEHTMLSettings
*s_settings;
73
static
TQPtrList<TDEHTMLPart> *s_parts;
74
};
75
76
#endif
tdehtml
Skip menu "tdehtml"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
tdehtml
Skip menu "tdehtml"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdecore
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdeioslave
http
tdefile
tdeio
tdeioexec
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet