KHtml

html_element.h
1 /*
2  * This file is part of the DOM implementation for KDE.
3  *
4  * Copyright 1999 Lars Knoll ([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  * This file includes excerpts from the Document Object Model (DOM)
22  * Level 1 Specification (Recommendation)
23  * https://www.w3.org/TR/REC-DOM-Level-1/
24  * Copyright © World Wide Web Consortium , (Massachusetts Institute of
25  * Technology , Institut National de Recherche en Informatique et en
26  * Automatique , Keio University ). All Rights Reserved.
27  *
28  */
29 #ifndef HTML_ELEMENT_H
30 #define HTML_ELEMENT_H
31 
32 #include <khtml_export.h>
33 #include <dom/dom_element.h>
34 
35 class KHTMLView;
36 
37 namespace DOM
38 {
39 
40 class HTMLElementImpl;
41 class DOMString;
42 class Element;
43 class HTMLCollection;
44 
70 class KHTML_EXPORT HTMLElement : public Element
71 {
72  friend class HTMLDocument;
73  friend class ::KHTMLView;
74  friend class HTMLTableElement;
75  friend class HTMLTableRowElement;
76  friend class HTMLTableSectionElement;
77 
78 public:
79  HTMLElement();
80  HTMLElement(const HTMLElement &other);
81  HTMLElement(const Node &other) : Element()
82  {
83  (*this) = other;
84  }
85 
86 protected:
87  HTMLElement(HTMLElementImpl *impl);
88 public:
89 
90  HTMLElement &operator = (const HTMLElement &other);
91  HTMLElement &operator = (const Node &other);
92 
93  ~HTMLElement();
94 
101  DOMString id() const;
102 
106  void setId(const DOMString &);
107 
114  DOMString title() const;
115 
119  void setTitle(const DOMString &);
120 
127  DOMString lang() const;
128 
132  void setLang(const DOMString &);
133 
141  DOMString dir() const;
142 
146  void setDir(const DOMString &);
147 
156  DOMString className() const;
157 
161  void setClassName(const DOMString &);
162 
167  DOMString innerHTML() const;
168 
176  void setInnerHTML(const DOMString &html);
177 
182  DOMString innerText() const;
183 
191  void setInnerText(const DOMString &text);
192 
197  HTMLCollection children() const;
198 
203  HTMLCollection all() const;
204 
210  bool isContentEditable() const;
211 
222  DOMString contentEditable() const;
223 
233  void setContentEditable(const DOMString &enabled);
234 
235  /*
236  * @internal
237  */
238  void removeCSSProperty(const DOMString &property);
239 
240  /*
241  * @internal
242  */
243  void addCSSProperty(const DOMString &property, const DOMString &value);
244 
245 protected:
246  /*
247  * @internal
248  */
249  void assignOther(const Node &other, int elementId);
250 };
251 
252 } //namespace
253 
254 #endif
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:278
An HTMLDocument is the root of the HTML hierarchy and holds the entire content.
Definition: html_document.h:74
The THEAD , TFOOT , and TBODY elements.
Definition: html_table.h:906
Renders and displays HTML in a QScrollArea.
Definition: khtmlview.h:97
An HTMLCollection is a list of nodes.
Definition: html_misc.h:133
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
This library provides a full-featured HTML parser and widget.
A row in a table.
Definition: html_table.h:734
The create* and delete* methods on the table allow authors to construct and modify tables...
Definition: html_table.h:448
All HTML element interfaces derive from this class.
Definition: html_element.h:70
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Nov 27 2020 22:47:40 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.