html_misc.h
/*
* This file is part of the DOM implementation for KDE.
*
* (C) 1999 Lars Knoll (knoll@kde.org)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* This file includes excerpts from the Document Object Model (DOM)
* Level 1 Specification (Recommendation)
* http://www.w3.org/TR/REC-DOM-Level-1/
* Copyright World Wide Web Consortium , (Massachusetts Institute of
* Technology , Institut National de Recherche en Informatique et en
* Automatique , Keio University ). All Rights Reserved.
*
*/
#ifndef HTML_MISC_H
#define HTML_MISC_H
#include <dom/html_element.h>
#include <kdelibs_export.h>
namespace DOM {
class HTMLBaseFontElementImpl;
class DOMString;
class HTMLCollectionImpl;
class KHTML_EXPORT HTMLBaseFontElement : public HTMLElement
{
public:
HTMLBaseFontElement();
HTMLBaseFontElement(const HTMLBaseFontElement &other);
HTMLBaseFontElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLBaseFontElement(HTMLBaseFontElementImpl *impl);
public:
HTMLBaseFontElement & operator = (const HTMLBaseFontElement &other);
HTMLBaseFontElement & operator = (const Node &other);
~HTMLBaseFontElement();
DOMString color() const;
void setColor( const DOMString & );
DOMString face() const;
void setFace( const DOMString & );
long getSize() const;
void setSize( long );
DOMString size() const KDE_DEPRECATED;
void setSize( const DOMString & ) KDE_DEPRECATED;
};
// --------------------------------------------------------------------------
class KHTML_EXPORT HTMLCollection
{
friend class HTMLDocument;
friend class HTMLSelectElement;
friend class HTMLImageElement;
friend class HTMLMapElement;
friend class HTMLTableElement;
friend class HTMLTableRowElement;
friend class HTMLTableSectionElement;
friend class HTMLLayerElement;
friend class HTMLElement;
public:
HTMLCollection();
HTMLCollection(const HTMLCollection &other);
protected:
HTMLCollection(NodeImpl *base, int type);
public:
HTMLCollection & operator = (const HTMLCollection &other);
~HTMLCollection();
unsigned long length() const;
Node item ( unsigned long index ) const;
Node namedItem ( const DOMString &name ) const;
Node base() const;
HTMLCollectionImpl *handle() const;
bool isNull() const;
// Fast iteration
Node firstItem() const;
Node nextItem() const;
// In case of multiple items named the same way
Node nextNamedItem( const DOMString &name ) const;
protected:
HTMLCollectionImpl *impl;
};
class KHTML_EXPORT HTMLFormCollection : public HTMLCollection
{
friend class HTMLFormElement;
protected:
HTMLFormCollection(NodeImpl *base);
};
class KHTML_EXPORT HTMLMappedNameCollection : public HTMLCollection
{
public:
HTMLMappedNameCollection(NodeImpl *base, int type, const DOMString &name );
};
} //namespace
#endif
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:274
DOM::HTMLDocument
An HTMLDocument is the root of the HTML hierarchy and holds the entire content.
Definition: html_document.h:73
DOM::HTMLSelectElement
The select element allows the selection of an option.
Definition: html_form.h:878
DOM::HTMLLayerElement
Layer container for Netscape 4.x compatability.
Definition: html_block.h:337
DOM::HTMLTableSectionElement
The THEAD , TFOOT , and TBODY elements.
Definition: html_table.h:895
DOM::HTMLFormElement
The FORM element encompasses behavior similar to a collection and an element.
Definition: html_form.h:206
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:126
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::HTMLImageElement
Embedded image.
Definition: html_image.h:185
DOM::HTMLTableRowElement
A row in a table.
Definition: html_table.h:725
DOM::HTMLMapElement
Client-side image map.
Definition: html_image.h:393
DOM::HTMLBaseFontElement
Base font.
Definition: html_misc.h:48
DOM::HTMLTableElement
The create* and delete* methods on the table allow authors to construct and modify tables...
Definition: html_table.h:441
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:69

KDE Home | KDE Accessibility Home | Description of Access Keys