• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

kjsembed

  • kjsembed
  • kjsembed
dom.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 Copyright (C) 2005, 2006 Ian Reinhart Geiser <geiseri@kde.org>
3 Copyright (C) 2005, 2006 Matt Broadstone <mbroadst@gmail.com>
4 Copyright (C) 2005, 2006 Richard J. Moore <rich@kde.org>
5 Copyright (C) 2005, 2006 Erik L. Bunce <kde@bunce.us>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21*/
22
23
24#ifndef DOM_H
25#define DOM_H
26
27class QDomNode;
28class QDomDocument;
29class QDomElement;
30class QDomAttr;
31class QDomDocumentType;
32class QDomNodeList;
33class QDomNamedNodeMap;
34class QDomText;
35
36#include "value_binding.h"
37#include "static_binding.h"
38
39namespace KJSEmbed
40{
41 class DomNodeBinding : public ValueBinding
42 {
43 public:
44 DomNodeBinding( KJS::ExecState *exec, const QDomNode &value );
45 private:
46 virtual const KJS::ClassInfo* classInfo() const { return &info; }
47 static const KJS::ClassInfo info;
48 };
49
50 class DomDocumentBinding : public ValueBinding
51 {
52 public:
53 DomDocumentBinding( KJS::ExecState *exec, const QDomDocument &value );
54 private:
55 virtual const KJS::ClassInfo* classInfo() const { return &info; }
56 static const KJS::ClassInfo info;
57 };
58
59 class DomElementBinding : public ValueBinding
60 {
61 public:
62 DomElementBinding( KJS::ExecState *exec, const QDomElement &value );
63 private:
64 virtual const KJS::ClassInfo* classInfo() const { return &info; }
65 static const KJS::ClassInfo info;
66 };
67
68 class DomAttrBinding : public ValueBinding
69 {
70 public:
71 DomAttrBinding( KJS::ExecState *exec, const QDomAttr &value );
72 private:
73 virtual const KJS::ClassInfo* classInfo() const { return &info; }
74 static const KJS::ClassInfo info;
75 };
76
77 class DomDocumentTypeBinding : public ValueBinding
78 {
79 public:
80 DomDocumentTypeBinding( KJS::ExecState *exec, const QDomDocumentType &value );
81 private:
82 virtual const KJS::ClassInfo* classInfo() const { return &info; }
83 static const KJS::ClassInfo info;
84 };
85
86 class DomNodeListBinding : public ValueBinding
87 {
88 public:
89 DomNodeListBinding( KJS::ExecState *exec, const QDomNodeList &value );
90 private:
91 virtual const KJS::ClassInfo* classInfo() const { return &info; }
92 static const KJS::ClassInfo info;
93 };
94
95 class DomNamedNodeMapBinding : public ValueBinding
96 {
97 public:
98 DomNamedNodeMapBinding( KJS::ExecState *exec, const QDomNamedNodeMap &value );
99 private:
100 virtual const KJS::ClassInfo* classInfo() const { return &info; }
101 static const KJS::ClassInfo info;
102 };
103
104 class DomTextBinding : public ValueBinding
105 {
106 public:
107 DomTextBinding( KJS::ExecState *exec, const QDomText &value );
108 private:
109 virtual const KJS::ClassInfo* classInfo() const { return &info; }
110 static const KJS::ClassInfo info;
111 };
112
113 KJS_BINDING( DomNode )
114 KJS_BINDING( DomDocument ) // Done
115 KJS_BINDING( DomElement ) // Done
116 KJS_BINDING( DomAttr ) // Done
117 KJS_BINDING( DomDocumentType ) // Done
118 KJS_BINDING( DomNodeList ) // Done
119 KJS_BINDING( DomNamedNodeMap )
120 KJS_BINDING( DomText )
121
122}
123#endif
124//kate: indent-spaces on; indent-width 4; replace-tabs on; indent-mode cstyle;
KJS_BINDING
#define KJS_BINDING(NAME)
Definition: binding_support.h:34
KJSEmbed::DomAttrBinding
Definition: dom.h:69
KJSEmbed::DomDocumentBinding
Definition: dom.h:51
KJSEmbed::DomDocumentTypeBinding
Definition: dom.h:78
KJSEmbed::DomElementBinding
Definition: dom.h:60
KJSEmbed::DomNamedNodeMapBinding
Definition: dom.h:96
KJSEmbed::DomNodeBinding
Definition: dom.h:42
KJSEmbed::DomNodeListBinding
Definition: dom.h:87
KJSEmbed::DomTextBinding
Definition: dom.h:105
KJSEmbed::ValueBinding
Value binding implementation.
Definition: value_binding.h:104
KJSEmbed::ValueBinding::value
T value() const
Returns the stored value.
Definition: value_binding.h:124
KJSEmbed
Definition: application.h:33
static_binding.h
value_binding.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kjsembed

Skip menu "kjsembed"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal