KHtml

kjs_mozilla.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (C) 2003 George Staikos ([email protected])
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
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef _KJS_MOZILLA_H_
21 #define _KJS_MOZILLA_H_
22 
23 #include <kjs/object.h>
24 #include "kjs_binding.h"
25 
26 class KHTMLPart;
27 
28 namespace KJS
29 {
30 
31 class MozillaSidebarExtension : public JSObject
32 {
33 public:
34  MozillaSidebarExtension(ExecState *exec, KHTMLPart *p);
35 
36  using KJS::JSObject::getOwnPropertySlot;
37  bool getOwnPropertySlot(ExecState *exec, const Identifier &propertyName, PropertySlot &slot) override;
38  JSValue *getValueProperty(ExecState *exec, int token) const;
39  const ClassInfo *classInfo() const override
40  {
41  return &info;
42  }
43  static const ClassInfo info;
44  enum { addPanel };
45  KHTMLPart *part() const
46  {
47  return m_part;
48  }
49 private:
50  KHTMLPart *m_part;
51 };
52 } // namespace
53 
54 #endif
This class is khtml&#39;s main class.
Definition: khtml_part.h:208
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Oct 26 2021 22:48:05 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.