KHTML
html_inline.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_INLINE_H 00030 #define HTML_INLINE_H 00031 00032 #include <khtml_export.h> 00033 #include <dom/html_element.h> 00034 00035 namespace DOM { 00036 class HTMLGenericElementImpl; 00037 class HTMLAnchorElementImpl; 00038 class DOMString; 00039 00046 class KHTML_EXPORT HTMLAnchorElement : public HTMLElement 00047 { 00048 public: 00049 HTMLAnchorElement(); 00050 HTMLAnchorElement(const HTMLAnchorElement &other); 00051 HTMLAnchorElement(const Node &other) : HTMLElement() 00052 {(*this)=other;} 00053 protected: 00054 HTMLAnchorElement(HTMLAnchorElementImpl *impl); 00055 public: 00056 00057 HTMLAnchorElement & operator = (const HTMLAnchorElement &other); 00058 HTMLAnchorElement & operator = (const Node &other); 00059 00060 ~HTMLAnchorElement(); 00061 00069 DOMString accessKey() const; 00070 00074 void setAccessKey( const DOMString & ); 00075 00082 DOMString charset() const; 00083 00087 void setCharset( const DOMString & ); 00088 00097 DOMString coords() const; 00098 00102 void setCoords( const DOMString & ); 00103 00110 DOMString href() const; 00111 00115 void setHref( const DOMString & ); 00116 00123 DOMString hreflang() const; 00124 00128 void setHreflang( const DOMString & ); 00129 00136 DOMString name() const; 00137 00141 void setName( const DOMString & ); 00142 00149 DOMString rel() const; 00150 00154 void setRel( const DOMString & ); 00155 00162 DOMString rev() const; 00163 00167 void setRev( const DOMString & ); 00168 00176 DOMString shape() const; 00177 00181 void setShape( const DOMString & ); 00182 00190 long tabIndex() const; 00191 00195 void setTabIndex( long ); 00196 00203 DOMString target() const; 00204 00208 void setTarget( const DOMString & ); 00209 00216 DOMString type() const; 00217 00221 void setType( const DOMString & ); 00222 00229 void blur ( ); 00230 00237 void focus ( ); 00238 }; 00239 00240 // -------------------------------------------------------------------------- 00241 00242 class HTMLBRElementImpl; 00243 00250 class KHTML_EXPORT HTMLBRElement : public HTMLElement 00251 { 00252 public: 00253 HTMLBRElement(); 00254 HTMLBRElement(const HTMLBRElement &other); 00255 HTMLBRElement(const Node &other) : HTMLElement() 00256 {(*this)=other;} 00257 protected: 00258 HTMLBRElement(HTMLBRElementImpl *impl); 00259 public: 00260 00261 HTMLBRElement & operator = (const HTMLBRElement &other); 00262 HTMLBRElement & operator = (const Node &other); 00263 00264 ~HTMLBRElement(); 00265 00273 DOMString clear() const; 00274 00278 void setClear( const DOMString & ); 00279 }; 00280 00281 // -------------------------------------------------------------------------- 00282 00283 class HTMLFontElementImpl; 00284 class DOMString; 00285 00293 class KHTML_EXPORT HTMLFontElement : public HTMLElement 00294 { 00295 public: 00296 HTMLFontElement(); 00297 HTMLFontElement(const HTMLFontElement &other); 00298 HTMLFontElement(const Node &other) : HTMLElement() 00299 {(*this)=other;} 00300 protected: 00301 HTMLFontElement(HTMLFontElementImpl *impl); 00302 public: 00303 00304 HTMLFontElement & operator = (const HTMLFontElement &other); 00305 HTMLFontElement & operator = (const Node &other); 00306 00307 ~HTMLFontElement(); 00308 00316 DOMString color() const; 00317 00321 void setColor( const DOMString & ); 00322 00330 DOMString face() const; 00331 00335 void setFace( const DOMString & ); 00336 00344 DOMString size() const; 00345 00349 void setSize( const DOMString & ); 00350 }; 00351 00352 class DOMString; 00353 00362 class KHTML_EXPORT HTMLModElement : public HTMLElement 00363 { 00364 public: 00365 HTMLModElement(); 00366 HTMLModElement(const HTMLModElement &other); 00367 HTMLModElement(const Node &other) : HTMLElement() 00368 {(*this)=other;} 00369 protected: 00370 HTMLModElement(HTMLElementImpl *impl); 00371 public: 00372 00373 HTMLModElement & operator = (const HTMLModElement &other); 00374 HTMLModElement & operator = (const Node &other); 00375 00376 ~HTMLModElement(); 00377 00384 DOMString cite() const; 00385 00389 void setCite( const DOMString & ); 00390 00397 DOMString dateTime() const; 00398 00402 void setDateTime( const DOMString & ); 00403 }; 00404 00405 // -------------------------------------------------------------------------- 00406 00407 00419 class KHTML_EXPORT HTMLQuoteElement : public HTMLElement 00420 { 00421 public: 00422 HTMLQuoteElement(); 00423 HTMLQuoteElement(const HTMLQuoteElement &other); 00424 HTMLQuoteElement(const Node &other) : HTMLElement() 00425 {(*this)=other;} 00426 protected: 00427 HTMLQuoteElement(HTMLGenericElementImpl *impl); 00428 public: 00429 00430 HTMLQuoteElement & operator = (const HTMLQuoteElement &other); 00431 HTMLQuoteElement & operator = (const Node &other); 00432 00433 ~HTMLQuoteElement(); 00434 00442 DOMString cite() const; 00443 00447 void setCite( const DOMString & ); 00448 }; 00449 00450 } //namespace 00451 00452 #endif