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

KHTML

  • sources
  • kde-4.12
  • kdelibs
  • 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 
35 class KHTMLView;
36 
37 namespace DOM {
38 
39 class HTMLElementImpl;
40 class DOMString;
41 class Element;
42 class HTMLCollection;
43 
69 class 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 
77 public:
78  HTMLElement();
79  HTMLElement(const HTMLElement &other);
80  HTMLElement(const Node &other) : Element()
81  {(*this)=other;}
82 
83 protected:
84  HTMLElement(HTMLElementImpl *impl);
85 public:
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 
242 protected:
243  /*
244  * @internal
245  */
246  void assignOther( const Node &other, int elementId );
247 };
248 
249 } //namespace
250 
251 #endif
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:270
DOM::HTMLDocument
An HTMLDocument is the root of the HTML hierarchy and holds the entire content.
Definition: html_document.h:73
DOM::HTMLTableSectionElement
The THEAD , TFOOT , and TBODY elements.
Definition: html_table.h:895
KHTMLView
Renders and displays HTML in a QScrollArea.
Definition: khtmlview.h:92
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:130
DOM::Element
By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...
Definition: dom_element.h:209
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::HTMLTableRowElement
A row in a table.
Definition: html_table.h:725
dom_element.h
dir
QString dir(const QString &fileClass)
khtml_export.h
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:441
DOM::enabled
static bool enabled(KHTMLPart *)
Definition: jsediting.cpp:383
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:69
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:20 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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