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

KHTML

  • khtml
  • dom
html_misc.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_MISC_H
30#define HTML_MISC_H
31
32#include <khtml_export.h>
33#include <dom/html_element.h>
34
35namespace DOM {
36
37class HTMLBaseFontElementImpl;
38class DOMString;
39class HTMLCollectionImpl;
40
48class KHTML_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#ifndef KDE_NO_DEPRECATED
109 KDE_DEPRECATED DOMString size() const;
110#endif
111
115#ifndef KDE_NO_DEPRECATED
116 KDE_DEPRECATED void setSize( const DOMString & );
117#endif
118};
119
120// --------------------------------------------------------------------------
121
130class KHTML_EXPORT HTMLCollection
131{
132 friend class HTMLDocument;
133 friend class HTMLSelectElement;
134 friend class HTMLImageElement;
135 friend class HTMLMapElement;
136 friend class HTMLTableElement;
137 friend class HTMLTableRowElement;
138 friend class HTMLTableSectionElement;
139 friend class HTMLLayerElement;
140 friend class HTMLElement;
141
142public:
143 HTMLCollection();
144 HTMLCollection(const HTMLCollection &other);
145protected:
146 HTMLCollection(HTMLCollectionImpl* impl);
147 HTMLCollection(NodeImpl *base, int type);
148public:
149
150 HTMLCollection & operator = (const HTMLCollection &other);
151
152 ~HTMLCollection();
153
158 unsigned long length() const;
159
172 Node item ( unsigned long index ) const;
173
190 Node namedItem ( const DOMString &name ) const;
191
196 Node base() const;
197 HTMLCollectionImpl *handle() const;
198 bool isNull() const;
199 // Fast iteration
200 Node firstItem() const;
201 Node nextItem() const;
202 // In case of multiple items named the same way
203 Node nextNamedItem( const DOMString &name ) const;
204
205protected:
206 HTMLCollectionImpl *impl;
207};
208
209class KHTML_EXPORT HTMLFormCollection : public HTMLCollection
210{
211 friend class HTMLFormElement;
212protected:
213 HTMLFormCollection(NodeImpl *base);
214};
215
216} //namespace
217
218#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::HTMLBaseFontElement::HTMLBaseFontElement
HTMLBaseFontElement(const Node &other)
Definition html_misc.h:53
DOM::HTMLBaseFontElement::HTMLBaseFontElement
HTMLBaseFontElement()
Definition html_misc.cpp:29
DOM::HTMLCollection::HTMLMapElement
friend class HTMLMapElement
Definition html_misc.h:135
DOM::HTMLCollection::HTMLTableElement
friend class HTMLTableElement
Definition html_misc.h:136
DOM::HTMLCollection::firstItem
Node firstItem() const
Definition html_misc.cpp:175
DOM::HTMLCollection::HTMLSelectElement
friend class HTMLSelectElement
Definition html_misc.h:133
DOM::HTMLCollection::HTMLTableSectionElement
friend class HTMLTableSectionElement
Definition html_misc.h:138
DOM::HTMLCollection::nextItem
Node nextItem() const
Definition html_misc.cpp:182
DOM::HTMLCollection::impl
HTMLCollectionImpl * impl
Definition html_misc.h:206
DOM::HTMLCollection::isNull
bool isNull() const
Definition html_misc.cpp:201
DOM::HTMLCollection::base
Node base() const
Definition html_misc.cpp:167
DOM::HTMLCollection::nextNamedItem
Node nextNamedItem(const DOMString &name) const
Definition html_misc.cpp:189
DOM::HTMLCollection::handle
HTMLCollectionImpl * handle() const
Definition html_misc.cpp:196
DOM::HTMLCollection::HTMLCollection
HTMLCollection()
Definition html_misc.cpp:112
DOM::HTMLCollection::HTMLElement
friend class HTMLElement
Definition html_misc.h:140
DOM::HTMLCollection::HTMLDocument
friend class HTMLDocument
Definition html_misc.h:132
DOM::HTMLCollection::HTMLLayerElement
friend class HTMLLayerElement
Definition html_misc.h:139
DOM::HTMLCollection::HTMLImageElement
friend class HTMLImageElement
Definition html_misc.h:134
DOM::HTMLCollection::item
Node item(unsigned long index) const
This method retrieves a node specified by ordinal index.
Definition html_misc.cpp:155
DOM::HTMLCollection::length
unsigned long length() const
This attribute specifies the length or size of the list.
Definition html_misc.cpp:149
DOM::HTMLCollection::namedItem
Node namedItem(const DOMString &name) const
This method retrieves a Node using a name.
Definition html_misc.cpp:161
DOM::HTMLCollection::HTMLTableRowElement
friend class HTMLTableRowElement
Definition html_misc.h:137
DOM::HTMLElement::HTMLElement
HTMLElement()
Definition html_element.cpp:29
DOM::HTMLFormCollection::HTMLFormElement
friend class HTMLFormElement
Definition html_misc.h:211
DOM::HTMLFormCollection::HTMLFormCollection
HTMLFormCollection(NodeImpl *base)
Definition html_misc.cpp:209
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition dom_node.h:271
NodeImpl
html_element.h
khtml_export.h
DOM
This library provides a full-featured HTML parser and widget.
Definition design.h:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 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