KHtml

JSHTMLElement.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (C) 1999 Harri Porten ([email protected])
4  * Copyright (C) 2003 Apple Computer, Inc.
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
17  * License along with this library; if not, write to the Free
18  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301 USA
20  */
21 
22 #ifndef JSHTMLElement_h
23 #define JSHTMLElement_h
24 
25 #include <kjs/object.h>
26 #include <kjs/ExecState.h>
27 #include <kjs/lookup.h>
28 #include "kjs_dom.h"
29 #include <html/html_elementimpl.h>
30 
31 //
32 // Temporary replacement for a file that should actually be
33 // automatically generated from HTMLElement.idl
34 //
35 
36 namespace khtml
37 {
38 
39 class JSHTMLElement : public KJS::DOMElement
40 {
41 public:
42  JSHTMLElement(KJS::ExecState *exec, DOM::HTMLElementImpl *impl)
43  : KJS::DOMElement(KJS::DOMElementProto::self(exec), impl) { }
44 
45  virtual ~JSHTMLElement() { }
46 
47  static const KJS::ClassInfo s_info;
48 };
49 
50 class JSHTMLElementPrototype : public KJS::JSObject
51 {
52 public:
53  static KJS::JSObject *self(KJS::ExecState *exec)
54  {
55  // ### should actually be DOMHTMLElementProto
56  return KJS::DOMElementProto::self(exec);
57  }
58 };
59 
60 }
61 
62 #endif
63 
This file is part of the HTML rendering engine for KDE.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 22:48:16 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.