File indexing completed on 2024-12-08 12:19:03
0001 /* 0002 * This file is part of the KDE libraries 0003 * Copyright (C) 1999 Harri Porten (porten@kde.org) 0004 * Copyright (C) 2003 Apple Computer, Inc. 0005 * 0006 * This library is free software; you can redistribute it and/or 0007 * modify it under the terms of the GNU Library General Public 0008 * License as published by the Free Software Foundation; either 0009 * version 2 of the License, or (at your option) any later version. 0010 * 0011 * This library is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0014 * Library General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU Library General Public 0017 * License along with this library; if not, write to the Free 0018 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0019 * Boston, MA 02110-1301 USA 0020 */ 0021 0022 #ifndef JSHTMLElement_h 0023 #define JSHTMLElement_h 0024 0025 #include <kjs/object.h> 0026 #include <kjs/ExecState.h> 0027 #include <kjs/lookup.h> 0028 #include "kjs_dom.h" 0029 #include <html/html_elementimpl.h> 0030 0031 // 0032 // Temporary replacement for a file that should actually be 0033 // automatically generated from HTMLElement.idl 0034 // 0035 0036 namespace khtml 0037 { 0038 0039 class JSHTMLElement : public KJS::DOMElement 0040 { 0041 public: 0042 JSHTMLElement(KJS::ExecState *exec, DOM::HTMLElementImpl *impl) 0043 : KJS::DOMElement(KJS::DOMElementProto::self(exec), impl) { } 0044 0045 virtual ~JSHTMLElement() { } 0046 0047 static const KJS::ClassInfo s_info; 0048 }; 0049 0050 class JSHTMLElementPrototype : public KJS::JSObject 0051 { 0052 public: 0053 static KJS::JSObject *self(KJS::ExecState *exec) 0054 { 0055 // ### should actually be DOMHTMLElementProto 0056 return KJS::DOMElementProto::self(exec); 0057 } 0058 }; 0059 0060 } 0061 0062 #endif 0063