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 * (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_INLINE_H 00030 #define HTML_INLINE_H 00031 00032 #include <dom/html_element.h> 00033 00034 #include <kdelibs_export.h> 00035 00036 namespace DOM { 00037 class HTMLGenericElementImpl; 00038 class HTMLAnchorElementImpl; 00039 class DOMString; 00040 00047 class KHTML_EXPORT HTMLAnchorElement : public HTMLElement 00048 { 00049 public: 00050 HTMLAnchorElement(); 00051 HTMLAnchorElement(const HTMLAnchorElement &other); 00052 HTMLAnchorElement(const Node &other) : HTMLElement() 00053 {(*this)=other;} 00054 protected: 00055 HTMLAnchorElement(HTMLAnchorElementImpl *impl); 00056 public: 00057 00058 HTMLAnchorElement & operator = (const HTMLAnchorElement &other); 00059 HTMLAnchorElement & operator = (const Node &other); 00060 00061 ~HTMLAnchorElement(); 00062 00070 DOMString accessKey() const; 00071 00075 void setAccessKey( const DOMString & ); 00076 00083 DOMString charset() const; 00084 00088 void setCharset( const DOMString & ); 00089 00098 DOMString coords() const; 00099 00103 void setCoords( const DOMString & ); 00104 00111 DOMString href() const; 00112 00116 void setHref( const DOMString & ); 00117 00124 DOMString hreflang() const; 00125 00129 void setHreflang( const DOMString & ); 00130 00137 DOMString name() const; 00138 00142 void setName( const DOMString & ); 00143 00150 DOMString rel() const; 00151 00155 void setRel( const DOMString & ); 00156 00163 DOMString rev() const; 00164 00168 void setRev( const DOMString & ); 00169 00177 DOMString shape() const; 00178 00182 void setShape( const DOMString & ); 00183 00191 long tabIndex() const; 00192 00196 void setTabIndex( long ); 00197 00204 DOMString target() const; 00205 00209 void setTarget( const DOMString & ); 00210 00217 DOMString type() const; 00218 00222 void setType( const DOMString & ); 00223 00230 void blur ( ); 00231 00238 void focus ( ); 00239 00245 void click ( ); 00246 00247 }; 00248 00249 // -------------------------------------------------------------------------- 00250 00251 class HTMLBRElementImpl; 00252 00259 class KHTML_EXPORT HTMLBRElement : public HTMLElement 00260 { 00261 public: 00262 HTMLBRElement(); 00263 HTMLBRElement(const HTMLBRElement &other); 00264 HTMLBRElement(const Node &other) : HTMLElement() 00265 {(*this)=other;} 00266 protected: 00267 HTMLBRElement(HTMLBRElementImpl *impl); 00268 public: 00269 00270 HTMLBRElement & operator = (const HTMLBRElement &other); 00271 HTMLBRElement & operator = (const Node &other); 00272 00273 ~HTMLBRElement(); 00274 00282 DOMString clear() const; 00283 00287 void setClear( const DOMString & ); 00288 }; 00289 00290 // -------------------------------------------------------------------------- 00291 00292 class HTMLFontElementImpl; 00293 class DOMString; 00294 00302 class KHTML_EXPORT HTMLFontElement : public HTMLElement 00303 { 00304 public: 00305 HTMLFontElement(); 00306 HTMLFontElement(const HTMLFontElement &other); 00307 HTMLFontElement(const Node &other) : HTMLElement() 00308 {(*this)=other;} 00309 protected: 00310 HTMLFontElement(HTMLFontElementImpl *impl); 00311 public: 00312 00313 HTMLFontElement & operator = (const HTMLFontElement &other); 00314 HTMLFontElement & operator = (const Node &other); 00315 00316 ~HTMLFontElement(); 00317 00325 DOMString color() const; 00326 00330 void setColor( const DOMString & ); 00331 00339 DOMString face() const; 00340 00344 void setFace( const DOMString & ); 00345 00353 DOMString size() const; 00354 00358 void setSize( const DOMString & ); 00359 }; 00360 00361 class HTMLModElementImpl; 00362 class DOMString; 00363 00372 class KHTML_EXPORT HTMLModElement : public HTMLElement 00373 { 00374 public: 00375 HTMLModElement(); 00376 HTMLModElement(const HTMLModElement &other); 00377 HTMLModElement(const Node &other) : HTMLElement() 00378 {(*this)=other;} 00379 protected: 00380 HTMLModElement(HTMLElementImpl *impl); 00381 public: 00382 00383 HTMLModElement & operator = (const HTMLModElement &other); 00384 HTMLModElement & operator = (const Node &other); 00385 00386 ~HTMLModElement(); 00387 00394 DOMString cite() const; 00395 00399 void setCite( const DOMString & ); 00400 00407 DOMString dateTime() const; 00408 00412 void setDateTime( const DOMString & ); 00413 }; 00414 00415 // -------------------------------------------------------------------------- 00416 00417 class HTMLQuoteElementImpl; 00418 00430 class KHTML_EXPORT HTMLQuoteElement : public HTMLElement 00431 { 00432 public: 00433 HTMLQuoteElement(); 00434 HTMLQuoteElement(const HTMLQuoteElement &other); 00435 HTMLQuoteElement(const Node &other) : HTMLElement() 00436 {(*this)=other;} 00437 protected: 00438 HTMLQuoteElement(HTMLGenericElementImpl *impl); 00439 public: 00440 00441 HTMLQuoteElement & operator = (const HTMLQuoteElement &other); 00442 HTMLQuoteElement & operator = (const Node &other); 00443 00444 ~HTMLQuoteElement(); 00445 00453 DOMString cite() const; 00454 00458 void setCite( const DOMString & ); 00459 }; 00460 00461 } //namespace 00462 00463 #endif