KHTML
html_head.h
Go to the documentation of this file.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., 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_HEAD_H 00030 #define HTML_HEAD_H 00031 00032 #include <dom/html_element.h> 00033 #include <dom/css_stylesheet.h> 00034 00035 namespace DOM { 00036 00037 class HTMLBaseElementImpl; 00038 class DOMString; 00039 00046 class KHTML_EXPORT HTMLBaseElement : public HTMLElement 00047 { 00048 public: 00049 HTMLBaseElement(); 00050 HTMLBaseElement(const HTMLBaseElement &other); 00051 HTMLBaseElement(const Node &other) : HTMLElement() 00052 {(*this)=other;} 00053 protected: 00054 HTMLBaseElement(HTMLBaseElementImpl *impl); 00055 public: 00056 00057 HTMLBaseElement & operator = (const HTMLBaseElement &other); 00058 HTMLBaseElement & operator = (const Node &other); 00059 00060 ~HTMLBaseElement(); 00061 00068 DOMString href() const; 00069 00073 void setHref( const DOMString & ); 00074 00081 DOMString target() const; 00082 00086 void setTarget( const DOMString & ); 00087 }; 00088 00089 // -------------------------------------------------------------------------- 00090 00091 class HTMLLinkElementImpl; 00092 00101 class KHTML_EXPORT HTMLLinkElement : public HTMLElement 00102 { 00103 public: 00104 HTMLLinkElement(); 00105 HTMLLinkElement(const HTMLLinkElement &other); 00106 HTMLLinkElement(const Node &other) : HTMLElement() 00107 {(*this)=other;} 00108 protected: 00109 HTMLLinkElement(HTMLLinkElementImpl *impl); 00110 public: 00111 00112 HTMLLinkElement & operator = (const HTMLLinkElement &other); 00113 HTMLLinkElement & operator = (const Node &other); 00114 00115 ~HTMLLinkElement(); 00116 00123 bool disabled() const; 00124 00128 void setDisabled( bool ); 00129 00137 DOMString charset() const; 00138 00142 void setCharset( const DOMString & ); 00143 00150 DOMString href() const; 00151 00155 void setHref( const DOMString & ); 00156 00163 DOMString hreflang() const; 00164 00168 void setHreflang( const DOMString & ); 00169 00176 DOMString media() const; 00177 00181 void setMedia( const DOMString & ); 00182 00189 DOMString rel() const; 00190 00194 void setRel( const DOMString & ); 00195 00202 DOMString rev() const; 00203 00207 void setRev( const DOMString & ); 00208 00215 DOMString target() const; 00216 00220 void setTarget( const DOMString & ); 00221 00228 DOMString type() const; 00229 00233 void setType( const DOMString & ); 00234 00241 StyleSheet sheet() const; 00242 00243 }; 00244 00245 // -------------------------------------------------------------------------- 00246 00247 class HTMLMetaElementImpl; 00248 00256 class KHTML_EXPORT HTMLMetaElement : public HTMLElement 00257 { 00258 public: 00259 HTMLMetaElement(); 00260 HTMLMetaElement(const HTMLMetaElement &other); 00261 HTMLMetaElement(const Node &other) : HTMLElement() 00262 {(*this)=other;} 00263 protected: 00264 HTMLMetaElement(HTMLMetaElementImpl *impl); 00265 public: 00266 00267 HTMLMetaElement & operator = (const HTMLMetaElement &other); 00268 HTMLMetaElement & operator = (const Node &other); 00269 00270 ~HTMLMetaElement(); 00271 00278 DOMString content() const; 00279 00283 void setContent( const DOMString & ); 00284 00291 DOMString httpEquiv() const; 00292 00296 void setHttpEquiv( const DOMString & ); 00297 00304 DOMString name() const; 00305 00309 void setName( const DOMString & ); 00310 00317 DOMString scheme() const; 00318 00322 void setScheme( const DOMString & ); 00323 }; 00324 00325 // -------------------------------------------------------------------------- 00326 00327 class HTMLScriptElementImpl; 00328 00335 class KHTML_EXPORT HTMLScriptElement : public HTMLElement 00336 { 00337 public: 00338 HTMLScriptElement(); 00339 HTMLScriptElement(const HTMLScriptElement &other); 00340 HTMLScriptElement(const Node &other) : HTMLElement() 00341 {(*this)=other;} 00342 protected: 00343 HTMLScriptElement(HTMLScriptElementImpl *impl); 00344 public: 00345 00346 HTMLScriptElement & operator = (const HTMLScriptElement &other); 00347 HTMLScriptElement & operator = (const Node &other); 00348 00349 ~HTMLScriptElement(); 00350 00355 DOMString text() const; 00356 00360 void setText( const DOMString & ); 00361 00366 DOMString htmlFor() const; 00367 00371 void setHtmlFor( const DOMString & ); 00372 00377 DOMString event() const; 00378 00382 void setEvent( const DOMString & ); 00383 00390 DOMString charset() const; 00391 00395 void setCharset( const DOMString & ); 00396 00404 bool defer() const; 00405 00409 void setDefer( bool ); 00410 00417 DOMString src() const; 00418 00422 void setSrc( const DOMString & ); 00423 00430 DOMString type() const; 00431 00435 void setType( const DOMString & ); 00436 }; 00437 00438 // -------------------------------------------------------------------------- 00439 00440 class HTMLStyleElementImpl; 00441 00449 class KHTML_EXPORT HTMLStyleElement : public HTMLElement 00450 { 00451 public: 00452 HTMLStyleElement(); 00453 HTMLStyleElement(const HTMLStyleElement &other); 00454 HTMLStyleElement(const Node &other) : HTMLElement() 00455 {(*this)=other;} 00456 protected: 00457 HTMLStyleElement(HTMLStyleElementImpl *impl); 00458 public: 00459 00460 HTMLStyleElement & operator = (const HTMLStyleElement &other); 00461 HTMLStyleElement & operator = (const Node &other); 00462 00463 ~HTMLStyleElement(); 00464 00469 bool disabled() const; 00470 00474 void setDisabled( bool ); 00475 00482 DOMString media() const; 00483 00487 void setMedia( const DOMString & ); 00488 00495 DOMString type() const; 00496 00500 void setType( const DOMString & ); 00501 00508 StyleSheet sheet() const; 00509 00510 }; 00511 00512 // -------------------------------------------------------------------------- 00513 00514 class HTMLTitleElementImpl; 00515 00522 class KHTML_EXPORT HTMLTitleElement : public HTMLElement 00523 { 00524 public: 00525 HTMLTitleElement(); 00526 HTMLTitleElement(const HTMLTitleElement &other); 00527 HTMLTitleElement(const Node &other) : HTMLElement() 00528 {(*this)=other;} 00529 protected: 00530 HTMLTitleElement(HTMLTitleElementImpl *impl); 00531 public: 00532 00533 HTMLTitleElement & operator = (const HTMLTitleElement &other); 00534 HTMLTitleElement & operator = (const Node &other); 00535 00536 ~HTMLTitleElement(); 00537 00542 DOMString text() const; 00543 00547 void setText( const DOMString & ); 00548 }; 00549 00550 } //namespace 00551 00552 #endif