• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
  • dom
html_element.h
Go to the documentation of this file.
1/*
2 * This file is part of the DOM implementation for KDE.
3 *
4 * Copyright 1999 Lars Knoll (knoll@kde.org)
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 * http://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
35class KHTMLView;
36
37namespace DOM {
38
39class HTMLElementImpl;
40class DOMString;
41class Element;
42class HTMLCollection;
43
69class KHTML_EXPORT HTMLElement : public Element
70{
71 friend class HTMLDocument;
72 friend class ::KHTMLView;
73 friend class HTMLTableElement;
74 friend class HTMLTableRowElement;
75 friend class HTMLTableSectionElement;
76
77public:
78 HTMLElement();
79 HTMLElement(const HTMLElement &other);
80 HTMLElement(const Node &other) : Element()
81 {(*this)=other;}
82
83protected:
84 HTMLElement(HTMLElementImpl *impl);
85public:
86
87 HTMLElement & operator = (const HTMLElement &other);
88 HTMLElement & operator = (const Node &other);
89
90 ~HTMLElement();
91
98 DOMString id() const;
99
103 void setId( const DOMString & );
104
111 DOMString title() const;
112
116 void setTitle( const DOMString & );
117
124 DOMString lang() const;
125
129 void setLang( const DOMString & );
130
138 DOMString dir() const;
139
143 void setDir( const DOMString & );
144
153 DOMString className() const;
154
158 void setClassName( const DOMString & );
159
164 DOMString innerHTML() const;
165
173 void setInnerHTML( const DOMString &html );
174
179 DOMString innerText() const;
180
188 void setInnerText( const DOMString &text );
189
194 HTMLCollection children() const;
195
200 HTMLCollection all() const;
201
207 bool isContentEditable() const;
208
219 DOMString contentEditable() const;
220
230 void setContentEditable(const DOMString &enabled);
231
232 /*
233 * @internal
234 */
235 void removeCSSProperty( const DOMString& property );
236
237 /*
238 * @internal
239 */
240 void addCSSProperty( const DOMString &property, const DOMString &value );
241
242protected:
243 /*
244 * @internal
245 */
246 void assignOther( const Node &other, int elementId );
247};
248
249} //namespace
250
251#endif
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
DOM::Element
By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...
Definition: dom_element.h:210
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:131
DOM::HTMLDocument
An HTMLDocument is the root of the HTML hierarchy and holds the entire content.
Definition: html_document.h:74
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:70
DOM::HTMLElement::HTMLElement
HTMLElement(const Node &other)
Definition: html_element.h:80
DOM::HTMLTableElement
The create* and delete* methods on the table allow authors to construct and modify tables.
Definition: html_table.h:442
DOM::HTMLTableRowElement
A row in a table.
Definition: html_table.h:726
DOM::HTMLTableSectionElement
The THEAD , TFOOT , and TBODY elements.
Definition: html_table.h:896
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:271
KHTMLView
Renders and displays HTML in a QScrollArea.
Definition: khtmlview.h:93
dom_element.h
khtml_export.h
DOM
This library provides a full-featured HTML parser and widget.
Definition: design.h:55
dir
QString dir(const QString &fileClass)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal