• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • khtml
 

khtml

  • khtml
khtml_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 __khtml_factory_h__
21 #define __khtml_factory_h__
22 
23 #include <kparts/factory.h>
24 #include <kparts/historyprovider.h>
25 #include <tqptrlist.h>
26 #include <kurl.h>
27 
28 class KInstance;
29 class KAboutData;
30 class HistoryProvider;
31 class KHTMLSettings;
32 class KHTMLPart;
33 
34 namespace DOM
35 {
36  class DocumentImpl;
37 }
38 
39 class KDE_EXPORT KHTMLFactory : public KParts::Factory
40 {
41  Q_OBJECT
42  friend class DOM::DocumentImpl;
43  friend class KHTMLViewPrivate;
44 public:
45  KHTMLFactory( bool clone = false );
46  virtual ~KHTMLFactory();
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( KHTMLPart *part );
51  static void deregisterPart( KHTMLPart *part );
52 
53  static TQPtrList<KHTMLPart> *partList() { return s_parts; }
54 
55  static KInstance *instance();
56 
57  static KHTMLSettings *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 KHTMLFactory *s_self;
70  static KInstance *s_instance;
71  static KAboutData *s_about;
72  static KHTMLSettings *s_settings;
73  static TQPtrList<KHTMLPart> *s_parts;
74 };
75 
76 #endif
KAboutData
KHTMLPart
This class is khtml's main class.
Definition: khtml_part.h:185
KHTMLSettings
Settings for the HTML view.
Definition: khtml_settings.h:39
KInstance
KParts::Factory
KParts::Factory::createPartObject
virtual Part * createPartObject(TQWidget *parentWidget=0, const char *widgetName=0, TQObject *parent=0, const char *name=0, const char *classname="KParts::Part", const TQStringList &args=TQStringList())=0
KParts::HistoryProvider
KParts::Part
DOM
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...
Definition: design.h:57
KNotifyClient::instance
KInstance * instance()

khtml

Skip menu "khtml"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

khtml

Skip menu "khtml"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for khtml by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |