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

tdehtml

  • tdehtml
  • dom
html_misc.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_MISC_H
30#define HTML_MISC_H
31
32#include <dom/html_element.h>
33#include <tdelibs_export.h>
34
35namespace DOM {
36
37class HTMLBaseFontElementImpl;
38class DOMString;
39class HTMLCollectionImpl;
40
48class TDEHTML_EXPORT HTMLBaseFontElement : public HTMLElement
49{
50public:
51 HTMLBaseFontElement();
52 HTMLBaseFontElement(const HTMLBaseFontElement &other);
53 HTMLBaseFontElement(const Node &other) : HTMLElement()
54 {(*this)=other;}
55protected:
56 HTMLBaseFontElement(HTMLBaseFontElementImpl *impl);
57public:
58
59 HTMLBaseFontElement & operator = (const HTMLBaseFontElement &other);
60 HTMLBaseFontElement & operator = (const Node &other);
61
62 ~HTMLBaseFontElement();
63
70 DOMString color() const;
71
75 void setColor( const DOMString & );
76
84 DOMString face() const;
85
89 void setFace( const DOMString & );
90
98 long getSize() const;
99
103 void setSize( long );
104
108 DOMString size() const TDE_DEPRECATED;
109
113 void setSize( const DOMString & ) TDE_DEPRECATED;
114};
115
116// --------------------------------------------------------------------------
117
126class TDEHTML_EXPORT HTMLCollection
127{
128 friend class HTMLDocument;
129 friend class HTMLSelectElement;
130 friend class HTMLImageElement;
131 friend class HTMLMapElement;
132 friend class HTMLTableElement;
133 friend class HTMLTableRowElement;
134 friend class HTMLTableSectionElement;
135 friend class HTMLLayerElement;
136 friend class HTMLElement;
137
138public:
139 HTMLCollection();
140 HTMLCollection(const HTMLCollection &other);
141protected:
142 HTMLCollection(NodeImpl *base, int type);
143public:
144
145 HTMLCollection & operator = (const HTMLCollection &other);
146
147 ~HTMLCollection();
148
153 unsigned long length() const;
154
167 Node item ( unsigned long index ) const;
168
185 Node namedItem ( const DOMString &name ) const;
186
191 Node base() const;
192 HTMLCollectionImpl *handle() const;
193 bool isNull() const;
194 // Fast iteration
195 Node firstItem() const;
196 Node nextItem() const;
197 // In case of multiple items named the same way
198 Node nextNamedItem( const DOMString &name ) const;
199
200protected:
201 HTMLCollectionImpl *impl;
202};
203
204class TDEHTML_EXPORT HTMLFormCollection : public HTMLCollection
205{
206 friend class HTMLFormElement;
207protected:
208 HTMLFormCollection(NodeImpl *base);
209};
210
214class TDEHTML_EXPORT HTMLMappedNameCollection : public HTMLCollection
215{
216public:
217 HTMLMappedNameCollection(NodeImpl *base, int type, const DOMString &name );
218};
219
220} //namespace
221
222#endif
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
DOM::HTMLBaseFontElement
Base font.
Definition: html_misc.h:49
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:127
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::HTMLFormElement
The FORM element encompasses behavior similar to a collection and an element.
Definition: html_form.h:207
DOM::HTMLImageElement
Embedded image.
Definition: html_image.h:186
DOM::HTMLLayerElement
Layer container for Netscape 4.x compatability.
Definition: html_block.h:338
DOM::HTMLMapElement
Client-side image map.
Definition: html_image.h:394
DOM::HTMLSelectElement
The select element allows the selection of an option.
Definition: html_form.h:879
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:275
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.9.4
This website is maintained by Timothy Pearson.