html_element.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_ELEMENT_H
#define HTML_ELEMENT_H
#include <dom/dom_element.h>
#include <kdelibs_export.h>
class KHTMLView;
namespace DOM {
class HTMLElementImpl;
class DOMString;
class Element;
class HTMLCollection;
class KHTML_EXPORT HTMLElement : public Element
{
friend class HTMLDocument;
friend class ::KHTMLView;
friend class HTMLTableElement;
friend class HTMLTableRowElement;
friend class HTMLTableSectionElement;
public:
HTMLElement();
HTMLElement(const HTMLElement &other);
HTMLElement(const Node &other) : Element()
{(*this)=other;}
protected:
HTMLElement(HTMLElementImpl *impl);
public:
HTMLElement & operator = (const HTMLElement &other);
HTMLElement & operator = (const Node &other);
~HTMLElement();
DOMString id() const;
void setId( const DOMString & );
DOMString title() const;
void setTitle( const DOMString & );
DOMString lang() const;
void setLang( const DOMString & );
DOMString dir() const;
void setDir( const DOMString & );
DOMString className() const;
void setClassName( const DOMString & );
DOMString innerHTML() const;
void setInnerHTML( const DOMString &html );
DOMString innerText() const;
void setInnerText( const DOMString &text );
HTMLCollection children() const;
HTMLCollection all() const;
/*
* @internal
*/
void removeCSSProperty( const DOMString& property );
/*
* @internal
*/
void addCSSProperty( const DOMString &property, const DOMString &value );
protected:
/*
* @internal
*/
void assignOther( const Node &other, int elementId );
};
} //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::HTMLTableSectionElement
The THEAD , TFOOT , and TBODY elements.
Definition: html_table.h:895
KHTMLView
Renders and displays HTML in a QScrollView.
Definition: khtmlview.h:78
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:126
DOM::Element
By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...
Definition: dom_element.h:210
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::HTMLTableRowElement
A row in a table.
Definition: html_table.h:725
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