KHtml

khtml_global.h
1 /* This file is part of the KDE project
2  *
3  * Copyright (C) 2000 Simon Hausmann <[email protected]>
4  * Copyright (C) 2007 David Faure <[email protected]>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef KHTML_GLOBAL_H
23 #define KHTML_GLOBAL_H
24 
25 #include <khtml_export.h>
26 
27 #include <kparts/historyprovider.h>
28 
29 class KIconLoader;
30 class KAboutData;
31 class KHTMLSettings;
32 class KHTMLPart;
33 
34 namespace KParts
35 {
36 class HistoryProvider;
37 }
38 namespace DOM
39 {
40 class DocumentImpl;
41 }
42 
43 /**
44  * @internal
45  * Exported for khtml test programs, but not installed
46  */
47 class KHTML_EXPORT KHTMLGlobal
48 {
49  friend class KHTMLViewPrivate;
50 
51 public:
52  KHTMLGlobal();
53  ~KHTMLGlobal();
54 
55  static void registerPart(KHTMLPart *part);
56  static void deregisterPart(KHTMLPart *part);
57 
58  static void registerDocumentImpl(DOM::DocumentImpl *doc);
59  static void deregisterDocumentImpl(DOM::DocumentImpl *doc);
60 
61  static const KAboutData &aboutData();
62  static KIconLoader *iconLoader();
63 
64  static KHTMLSettings *defaultHTMLSettings();
65 
66  // list of visited URLs
67  static KParts::HistoryProvider *vLinks()
68  {
69  return KParts::HistoryProvider::self();
70  }
71 
72  // Called when khtml part is unloaded
73  static void finalCheck();
74 
75 private:
76  static void ref();
77  static void deref();
78 private:
79  static unsigned long s_refcnt;
80  static KHTMLGlobal *s_self;
81  static KIconLoader *s_iconLoader;
82  static KAboutData *s_about;
83  static KHTMLSettings *s_settings;
84 };
85 
86 #endif
87 
Settings for the HTML view.
This class is khtml&#39;s main class.
Definition: khtml_part.h:208
This library provides a full-featured HTML parser and widget.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 16 2021 22:47:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.