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

KHTML

html_misc.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of the DOM implementation for KDE.
00003  *
00004  * Copyright 1999 Lars Knoll (knoll@kde.org)
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public License
00017  * along with this library; see the file COPYING.LIB.  If not, write to
00018  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020  *
00021  * This file includes excerpts from the Document Object Model (DOM)
00022  * Level 1 Specification (Recommendation)
00023  * http://www.w3.org/TR/REC-DOM-Level-1/
00024  * Copyright © World Wide Web Consortium , (Massachusetts Institute of
00025  * Technology , Institut National de Recherche en Informatique et en
00026  * Automatique , Keio University ). All Rights Reserved.
00027  *
00028  */
00029 #ifndef HTML_MISC_H
00030 #define HTML_MISC_H
00031 
00032 #include <khtml_export.h>
00033 #include <dom/html_element.h>
00034 
00035 namespace DOM {
00036 
00037 class HTMLBaseFontElementImpl;
00038 class DOMString;
00039 class HTMLCollectionImpl;
00040 
00048 class KHTML_EXPORT HTMLBaseFontElement : public HTMLElement
00049 {
00050 public:
00051     HTMLBaseFontElement();
00052     HTMLBaseFontElement(const HTMLBaseFontElement &other);
00053     HTMLBaseFontElement(const Node &other) : HTMLElement()
00054          {(*this)=other;}
00055 protected:
00056     HTMLBaseFontElement(HTMLBaseFontElementImpl *impl);
00057 public:
00058 
00059     HTMLBaseFontElement & operator = (const HTMLBaseFontElement &other);
00060     HTMLBaseFontElement & operator = (const Node &other);
00061 
00062     ~HTMLBaseFontElement();
00063 
00070     DOMString color() const;
00071 
00075     void setColor( const DOMString & );
00076 
00084     DOMString face() const;
00085 
00089     void setFace( const DOMString & );
00090 
00098     long getSize() const;
00099 
00103     void setSize( long );
00104 
00108 #ifndef KDE_NO_DEPRECATED
00109     KDE_DEPRECATED DOMString size() const;
00110 #endif
00111 
00115 #ifndef KDE_NO_DEPRECATED
00116     KDE_DEPRECATED void setSize( const DOMString & );
00117 #endif
00118 };
00119 
00120 // --------------------------------------------------------------------------
00121 
00130 class KHTML_EXPORT HTMLCollection
00131 {
00132     friend class HTMLDocument;
00133     friend class HTMLSelectElement;
00134     friend class HTMLImageElement;
00135     friend class HTMLMapElement;
00136     friend class HTMLTableElement;
00137     friend class HTMLTableRowElement;
00138     friend class HTMLTableSectionElement;
00139     friend class HTMLLayerElement;
00140     friend class HTMLElement;
00141 
00142 public:
00143     HTMLCollection();
00144     HTMLCollection(const HTMLCollection &other);
00145 protected:
00146     HTMLCollection(HTMLCollectionImpl* impl);
00147     HTMLCollection(NodeImpl *base, int type);
00148 public:
00149 
00150     HTMLCollection & operator = (const HTMLCollection &other);
00151 
00152     ~HTMLCollection();
00153 
00158     unsigned long length() const;
00159 
00172     Node item ( unsigned long index ) const;
00173 
00190     Node namedItem ( const DOMString &name ) const;
00191 
00196     Node base() const;
00197     HTMLCollectionImpl *handle() const;
00198     bool isNull() const;
00199     // Fast iteration
00200     Node firstItem() const;
00201     Node nextItem() const;
00202     // In case of multiple items named the same way
00203     Node nextNamedItem( const DOMString &name ) const;
00204 
00205 protected:
00206     HTMLCollectionImpl *impl;
00207 };
00208 
00209 class KHTML_EXPORT HTMLFormCollection : public HTMLCollection
00210 {
00211     friend class HTMLFormElement;
00212 protected:
00213     HTMLFormCollection(NodeImpl *base);
00214 };
00215 
00216 } //namespace
00217 
00218 #endif

KHTML

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • 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
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal