html_head.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_HEAD_H
#define HTML_HEAD_H
#include <dom/html_element.h>
#include <dom/css_stylesheet.h>
namespace DOM {
class HTMLBaseElementImpl;
class DOMString;
class KHTML_EXPORT HTMLBaseElement : public HTMLElement
{
public:
HTMLBaseElement();
HTMLBaseElement(const HTMLBaseElement &other);
HTMLBaseElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLBaseElement(HTMLBaseElementImpl *impl);
public:
HTMLBaseElement & operator = (const HTMLBaseElement &other);
HTMLBaseElement & operator = (const Node &other);
~HTMLBaseElement();
DOMString href() const;
void setHref( const DOMString & );
DOMString target() const;
void setTarget( const DOMString & );
};
// --------------------------------------------------------------------------
class HTMLLinkElementImpl;
class KHTML_EXPORT HTMLLinkElement : public HTMLElement
{
public:
HTMLLinkElement();
HTMLLinkElement(const HTMLLinkElement &other);
HTMLLinkElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLLinkElement(HTMLLinkElementImpl *impl);
public:
HTMLLinkElement & operator = (const HTMLLinkElement &other);
HTMLLinkElement & operator = (const Node &other);
~HTMLLinkElement();
bool disabled() const;
void setDisabled( bool );
DOMString charset() const;
void setCharset( const DOMString & );
DOMString href() const;
void setHref( const DOMString & );
DOMString hreflang() const;
void setHreflang( const DOMString & );
DOMString media() const;
void setMedia( const DOMString & );
DOMString rel() const;
void setRel( const DOMString & );
DOMString rev() const;
void setRev( const DOMString & );
DOMString target() const;
void setTarget( const DOMString & );
DOMString type() const;
void setType( const DOMString & );
StyleSheet sheet() const;
};
// --------------------------------------------------------------------------
class HTMLMetaElementImpl;
class KHTML_EXPORT HTMLMetaElement : public HTMLElement
{
public:
HTMLMetaElement();
HTMLMetaElement(const HTMLMetaElement &other);
HTMLMetaElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLMetaElement(HTMLMetaElementImpl *impl);
public:
HTMLMetaElement & operator = (const HTMLMetaElement &other);
HTMLMetaElement & operator = (const Node &other);
~HTMLMetaElement();
DOMString content() const;
void setContent( const DOMString & );
DOMString httpEquiv() const;
void setHttpEquiv( const DOMString & );
DOMString name() const;
void setName( const DOMString & );
DOMString scheme() const;
void setScheme( const DOMString & );
};
// --------------------------------------------------------------------------
class HTMLScriptElementImpl;
class KHTML_EXPORT HTMLScriptElement : public HTMLElement
{
public:
HTMLScriptElement();
HTMLScriptElement(const HTMLScriptElement &other);
HTMLScriptElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLScriptElement(HTMLScriptElementImpl *impl);
public:
HTMLScriptElement & operator = (const HTMLScriptElement &other);
HTMLScriptElement & operator = (const Node &other);
~HTMLScriptElement();
DOMString text() const;
void setText( const DOMString & );
DOMString htmlFor() const;
void setHtmlFor( const DOMString & );
DOMString event() const;
void setEvent( const DOMString & );
DOMString charset() const;
void setCharset( const DOMString & );
bool defer() const;
void setDefer( bool );
DOMString src() const;
void setSrc( const DOMString & );
DOMString type() const;
void setType( const DOMString & );
};
// --------------------------------------------------------------------------
class HTMLStyleElementImpl;
class KHTML_EXPORT HTMLStyleElement : public HTMLElement
{
public:
HTMLStyleElement();
HTMLStyleElement(const HTMLStyleElement &other);
HTMLStyleElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLStyleElement(HTMLStyleElementImpl *impl);
public:
HTMLStyleElement & operator = (const HTMLStyleElement &other);
HTMLStyleElement & operator = (const Node &other);
~HTMLStyleElement();
bool disabled() const;
void setDisabled( bool );
DOMString media() const;
void setMedia( const DOMString & );
DOMString type() const;
void setType( const DOMString & );
StyleSheet sheet() const;
};
// --------------------------------------------------------------------------
class HTMLTitleElementImpl;
class KHTML_EXPORT HTMLTitleElement : public HTMLElement
{
public:
HTMLTitleElement();
HTMLTitleElement(const HTMLTitleElement &other);
HTMLTitleElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLTitleElement(HTMLTitleElementImpl *impl);
public:
HTMLTitleElement & operator = (const HTMLTitleElement &other);
HTMLTitleElement & operator = (const Node &other);
~HTMLTitleElement();
DOMString text() const;
void setText( const DOMString & );
};
} //namespace
#endif
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:274
DOM::HTMLTitleElement
The document title.
Definition: html_head.h:522
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::HTMLStyleElement
Style information.
Definition: html_head.h:449
DOM::StyleSheet
The StyleSheet interface is the abstract base interface for any type of style sheet.
Definition: css_stylesheet.h:58
DOM::HTMLScriptElement
Script statements.
Definition: html_head.h:335
DOM::HTMLLinkElement
The LINK element specifies a link to an external resource, and defines this document's relationship t...
Definition: html_head.h:101
DOM::HTMLMetaElement
This contains generic meta-information about the document.
Definition: html_head.h:256
DOM::HTMLBaseElement
Document base URI.
Definition: html_head.h:46
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:69

KDE Home | KDE Accessibility Home | Description of Access Keys