KHtml

dom2_views.h
1 /*
2  * This file is part of the DOM implementation for KDE.
3  *
4  * Copyright 2001 Peter Kelly ([email protected])
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 License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #ifndef _DOM_Views_h_
24 #define _DOM_Views_h_
25 
26 #include <khtml_export.h>
27 namespace DOM
28 {
29 
30 class Document;
31 class AbstractViewImpl;
32 class CSSStyleDeclaration;
33 class Element;
34 class DOMString;
35 
36 /**
37  * Introduced in DOM Level 2
38  *
39  * A base interface that all views shall derive from.
40  *
41  */
42 class KHTML_EXPORT AbstractView
43 {
44  friend class Event;
45  friend class UIEvent;
46  friend class MouseEvent;
47  friend class MutationEvent;
48  friend class Document;
49 public:
50  AbstractView();
51  AbstractView(const AbstractView &other);
52  virtual ~AbstractView();
53 
54  AbstractView &operator = (const AbstractView &other);
55 
56  /**
57  * The source DocumentView of which this is an AbstractView.
58  */
59  Document document() const;
60 
61  /**
62  * Introduced in DOM Level 2
63  * This method is from the ViewCSS interface
64  *
65  * This method is used to get the computed style as it is defined in
66  * [CSS2].
67  *
68  * @param elt The element whose style is to be computed. This parameter
69  * cannot be null.
70  *
71  * @param pseudoElt The pseudo-element or null if none.
72  *
73  * @return The computed style. The CSSStyleDeclaration is read-only and
74  * contains only absolute values.
75  */
76  CSSStyleDeclaration getComputedStyle(const Element &elt, const DOMString &pseudoElt);
77 
78  /**
79  * @internal
80  * not part of the DOM
81  */
82  AbstractViewImpl *handle() const;
83  bool isNull() const;
84 
85 protected:
86  AbstractView(AbstractViewImpl *i);
87  AbstractViewImpl *impl;
88 };
89 
90 } //namespace
91 #endif
The CSSStyleDeclaration interface represents a single CSS declaration block .
Definition: css_value.h:59
Introduced in DOM Level 2.
Definition: dom2_views.h:42
Introduced in DOM Level 2.
Definition: dom2_events.h:310
Introduced in DOM Level 2.
Definition: dom2_events.h:413
By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...
Definition: dom_element.h:212
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:246
Introduced in DOM Level 2.
Definition: dom2_events.h:774
This library provides a full-featured HTML parser and widget.
Introduced in DOM Level 2.
Definition: dom2_events.h:116
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue May 11 2021 22:45:52 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.