KHTML
dom2_views.h
Go to the documentation of this file.00001 /* 00002 * This file is part of the DOM implementation for KDE. 00003 * 00004 * (C) 2001 Peter Kelly (pmk@post.com) 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public License 00017 * along with this library; see the file COPYING.LIB. If not, write to 00018 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 * Boston, MA 02110-1301, USA. 00020 * 00021 */ 00022 00023 #ifndef _DOM_Views_h_ 00024 #define _DOM_Views_h_ 00025 00026 #include <kdelibs_export.h> 00027 namespace DOM { 00028 00029 class Document; 00030 class AbstractViewImpl; 00031 class CSSStyleDeclaration; 00032 class Element; 00033 class DOMString; 00034 00041 class KHTML_EXPORT AbstractView { 00042 friend class Event; 00043 friend class UIEvent; 00044 friend class MouseEvent; 00045 friend class MutationEvent; 00046 friend class Document; 00047 public: 00048 AbstractView(); 00049 AbstractView(const AbstractView &other); 00050 virtual ~AbstractView(); 00051 00052 AbstractView & operator = (const AbstractView &other); 00053 00057 Document document() const; 00058 00074 CSSStyleDeclaration getComputedStyle(const Element &elt, const DOMString &pseudoElt); 00075 00080 AbstractViewImpl *handle() const; 00081 bool isNull() const; 00082 00083 protected: 00084 AbstractView(AbstractViewImpl *i); 00085 AbstractViewImpl *impl; 00086 }; 00087 00088 00089 } //namespace 00090 #endif