| # khtml Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# html_element.h

    00001 /*
    00002  * This file is part of the DOM implementation for KDE.
    00003  *
    00004  * (C) 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., 59 Temple Place - Suite 330,
    00019  * Boston, MA 02111-1307, 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_ELEMENT_H
    00030 #define HTML_ELEMENT_H
    00031
    00032 #include <dom/dom_element.h>
    00033 #include <kdelibs_export.h>
    00034
    00035 class KHTMLView;
    00036
    00037 namespace DOM {
    00038
    00039 class HTMLElementImpl;
    00040 class DOMString;
    00041 class Element;
    00042 class HTMLCollection;
    00043
    00069 class KHTML_EXPORT HTMLElement : public Element
    00070 {
    00071     friend class HTMLDocument;
    00072     friend class ::KHTMLView;
    00073     friend class HTMLTableElement;
    00074     friend class HTMLTableRowElement;
    00075     friend class HTMLTableSectionElement;
    00076
    00077 public:
    00078     HTMLElement();
    00079     HTMLElement(const HTMLElement &other);
    00080     HTMLElement(const Node &other) : Element()
    00081          {(*this)=other;}
    00082
    00083 protected:
    00084     HTMLElement(HTMLElementImpl *impl);
    00085 public:
    00086
    00087     HTMLElement & operator = (const HTMLElement &other);
    00088     HTMLElement & operator = (const Node &other);
    00089
    00090     ~HTMLElement();
    00091
    00098     DOMString id() const;
    00099
    00103     void setId( const DOMString & );
    00104
    00111     DOMString title() const;
    00112
    00116     void setTitle( const DOMString & );
    00117
    00124     DOMString lang() const;
    00125
    00129     void setLang( const DOMString & );
    00130
    00138     DOMString dir() const;
    00139
    00143     void setDir( const DOMString & );
    00144
    00153     DOMString className() const;
    00154
    00158     void setClassName( const DOMString & );
    00159
    00164     DOMString innerHTML() const;
    00165
    00173     void setInnerHTML( const DOMString &html );
    00174
    00179     DOMString innerText() const;
    00180
    00188     void setInnerText( const DOMString &text );
    00189
    00194     HTMLCollection children() const;
    00195
    00200     HTMLCollection all() const;
    00201
    00202     /*
    00203      * @internal
    00204      */
    00205     void removeCSSProperty( const DOMString& property );
    00206
    00207     /*
    00208      * @internal
    00209      */
    00210     void addCSSProperty( const DOMString &property, const DOMString &value );
    00211
    00212 protected:
    00213     /*
    00214      * @internal
    00215      */
    00216     void assignOther( const Node &other, int elementId );
    00217 };
    00218
    00219 } //namespace
    00220
    00221 #endif

This file is part of the documentation for khtml Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:33:10 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003