• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdehtml
 

tdehtml

  • tdehtml
  • dom
html_element.h
1/*
2 * This file is part of the DOM implementation for KDE.
3 *
4 * (C) 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 <dom/dom_element.h>
33#include <tdelibs_export.h>
34
35class TDEHTMLView;
36
37namespace DOM {
38
39class HTMLElementImpl;
40class DOMString;
41class Element;
42class HTMLCollection;
43
69class TDEHTML_EXPORT HTMLElement : public Element
70{
71 friend class HTMLDocument;
72 friend class ::TDEHTMLView;
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
202 /*
203 * @internal
204 */
205 void removeCSSProperty( const DOMString& property );
206
207 /*
208 * @internal
209 */
210 void addCSSProperty( const DOMString &property, const DOMString &value );
211
212protected:
213 /*
214 * @internal
215 */
216 void assignOther( const Node &other, int elementId );
217};
218
219} //namespace
220
221#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:211
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition html_misc.h:127
DOM::HTMLElement::setLang
void setLang(const DOMString &)
see lang
Definition html_element.cpp:93
DOM::HTMLElement::id
DOMString id() const
The element's identifier.
Definition html_element.cpp:65
DOM::HTMLElement::innerText
DOMString innerText() const
The text contained in this element.
Definition html_element.cpp:150
DOM::HTMLElement::setId
void setId(const DOMString &)
see id
Definition html_element.cpp:71
DOM::HTMLElement::setInnerHTML
void setInnerHTML(const DOMString &html)
Set the HTML content of this node.
Definition html_element.cpp:140
DOM::HTMLElement::className
DOMString className() const
The class attribute of the element.
Definition html_element.cpp:109
DOM::HTMLElement::setClassName
void setClassName(const DOMString &)
see className
Definition html_element.cpp:115
DOM::HTMLElement::dir
DOMString dir() const
Specifies the base direction of directionally neutral text and the directionality of tables.
Definition html_element.cpp:98
DOM::HTMLElement::lang
DOMString lang() const
Language code defined in RFC 1766.
Definition html_element.cpp:87
DOM::HTMLElement::all
HTMLCollection all() const
Retrieves a collection of all nodes that descend from this node.
Definition html_element.cpp:172
DOM::HTMLElement::setInnerText
void setInnerText(const DOMString &text)
Set the text content of this node.
Definition html_element.cpp:156
DOM::HTMLElement::title
DOMString title() const
The element's advisory title.
Definition html_element.cpp:76
DOM::HTMLElement::setTitle
void setTitle(const DOMString &)
see title
Definition html_element.cpp:82
DOM::HTMLElement::setDir
void setDir(const DOMString &)
see dir
Definition html_element.cpp:104
DOM::HTMLElement::children
HTMLCollection children() const
Retrieves a collection of nodes that are direct descendants of this node.
Definition html_element.cpp:166
DOM::HTMLElement::innerHTML
DOMString innerHTML() const
The HTML code contained in this element.
Definition html_element.cpp:134
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition dom_node.h:275
TDEHTMLView
Renders and displays HTML in a TQScrollView.
Definition tdehtmlview.h:79
DOM
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...
Definition design.h:57

tdehtml

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

tdehtml

Skip menu "tdehtml"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdehtml by doxygen 1.15.0
This website is maintained by Timothy Pearson.