KHTML
html_block.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 * Copyright 2004 Allan Sandfeld Jensen (kde@carewolf.com) 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Library General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public License 00018 * along with this library; see the file COPYING.LIB. If not, write to 00019 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 * Boston, MA 02110-1301, USA. 00021 * 00022 * This file includes excerpts from the Document Object Model (DOM) 00023 * Level 1 Specification (Recommendation) 00024 * http://www.w3.org/TR/REC-DOM-Level-1/ 00025 * Copyright © World Wide Web Consortium , (Massachusetts Institute of 00026 * Technology , Institut National de Recherche en Informatique et en 00027 * Automatique , Keio University ). All Rights Reserved. 00028 * 00029 */ 00030 // -------------------------------------------------------------------------- 00031 00032 #ifndef HTML_BLOCK_H 00033 #define HTML_BLOCK_H 00034 00035 #include <khtml_export.h> 00036 #include <dom/html_element.h> 00037 00038 namespace DOM { 00039 00040 class HTMLElementImpl; 00041 class DOMString; 00042 00049 class KHTML_EXPORT HTMLBlockquoteElement : public HTMLElement 00050 { 00051 public: 00052 HTMLBlockquoteElement(); 00053 HTMLBlockquoteElement(const HTMLBlockquoteElement &other); 00054 HTMLBlockquoteElement(const Node &other) : HTMLElement() 00055 {(*this)=other;} 00056 protected: 00057 HTMLBlockquoteElement(HTMLElementImpl *impl); 00058 public: 00059 00060 HTMLBlockquoteElement & operator = (const HTMLBlockquoteElement &other); 00061 HTMLBlockquoteElement & operator = (const Node &other); 00062 00063 ~HTMLBlockquoteElement(); 00064 00071 DOMString cite() const; 00072 00076 void setCite( const DOMString & ); 00077 }; 00078 00079 // -------------------------------------------------------------------------- 00080 00081 class HTMLDivElementImpl; 00082 class DOMString; 00083 00090 class KHTML_EXPORT HTMLDivElement : public HTMLElement 00091 { 00092 public: 00093 HTMLDivElement(); 00094 HTMLDivElement(const HTMLDivElement &other); 00095 HTMLDivElement(const Node &other) : HTMLElement() 00096 {(*this)=other;} 00097 protected: 00098 HTMLDivElement(HTMLDivElementImpl *impl); 00099 public: 00100 00101 HTMLDivElement & operator = (const HTMLDivElement &other); 00102 HTMLDivElement & operator = (const Node &other); 00103 00104 ~HTMLDivElement(); 00105 00113 DOMString align() const; 00114 00118 void setAlign( const DOMString & ); 00119 }; 00120 00121 // -------------------------------------------------------------------------- 00122 00123 class HTMLHRElementImpl; 00124 class DOMString; 00125 00132 class KHTML_EXPORT HTMLHRElement : public HTMLElement 00133 { 00134 public: 00135 HTMLHRElement(); 00136 HTMLHRElement(const HTMLHRElement &other); 00137 HTMLHRElement(const Node &other) : HTMLElement() 00138 {(*this)=other;} 00139 protected: 00140 HTMLHRElement(HTMLHRElementImpl *impl); 00141 public: 00142 00143 HTMLHRElement & operator = (const HTMLHRElement &other); 00144 HTMLHRElement & operator = (const Node &other); 00145 00146 ~HTMLHRElement(); 00147 00155 DOMString align() const; 00156 00160 void setAlign( const DOMString & ); 00161 00170 bool noShade() const; 00171 00175 void setNoShade( bool ); 00176 00184 DOMString size() const; 00185 00189 void setSize( const DOMString & ); 00190 00198 DOMString width() const; 00199 00203 void setWidth( const DOMString & ); 00204 }; 00205 00206 // -------------------------------------------------------------------------- 00207 00208 class DOMString; 00209 00216 class KHTML_EXPORT HTMLHeadingElement : public HTMLElement 00217 { 00218 public: 00219 HTMLHeadingElement(); 00220 HTMLHeadingElement(const HTMLHeadingElement &other); 00221 HTMLHeadingElement(const Node &other) : HTMLElement() 00222 {(*this)=other;} 00223 protected: 00224 HTMLHeadingElement(HTMLElementImpl *impl); 00225 public: 00226 00227 HTMLHeadingElement & operator = (const HTMLHeadingElement &other); 00228 HTMLHeadingElement & operator = (const Node &other); 00229 00230 ~HTMLHeadingElement(); 00231 00239 DOMString align() const; 00240 00244 void setAlign( const DOMString & ); 00245 }; 00246 00247 // -------------------------------------------------------------------------- 00248 00249 class DOMString; 00250 00257 class KHTML_EXPORT HTMLParagraphElement : public HTMLElement 00258 { 00259 public: 00260 HTMLParagraphElement(); 00261 HTMLParagraphElement(const HTMLParagraphElement &other); 00262 HTMLParagraphElement(const Node &other) : HTMLElement() 00263 {(*this)=other;} 00264 protected: 00265 HTMLParagraphElement(HTMLElementImpl *impl); 00266 public: 00267 00268 HTMLParagraphElement & operator = (const HTMLParagraphElement &other); 00269 HTMLParagraphElement & operator = (const Node &other); 00270 00271 ~HTMLParagraphElement(); 00272 00280 DOMString align() const; 00281 00285 void setAlign( const DOMString & ); 00286 }; 00287 00288 // -------------------------------------------------------------------------- 00289 00290 class HTMLPreElementImpl; 00291 00298 class KHTML_EXPORT HTMLPreElement : public HTMLElement 00299 { 00300 public: 00301 HTMLPreElement(); 00302 HTMLPreElement(const HTMLPreElement &other); 00303 HTMLPreElement(const Node &other) : HTMLElement() 00304 {(*this)=other;} 00305 protected: 00306 HTMLPreElement(HTMLPreElementImpl *impl); 00307 public: 00308 00309 HTMLPreElement & operator = (const HTMLPreElement &other); 00310 HTMLPreElement & operator = (const Node &other); 00311 00312 ~HTMLPreElement(); 00313 00321 long width() const; 00322 00326 void setWidth( long ); 00327 }; 00328 00329 class HTMLLayerElementImpl; 00330 00336 class KHTML_EXPORT HTMLLayerElement : public HTMLElement 00337 { 00338 public: 00339 HTMLLayerElement(); 00340 HTMLLayerElement(const HTMLLayerElement &other); 00341 HTMLLayerElement(const Node &other) : HTMLElement() 00342 {(*this)=other;} 00343 protected: 00344 HTMLLayerElement(HTMLLayerElementImpl *impl); 00345 public: 00346 00347 HTMLLayerElement & operator = (const HTMLLayerElement &other); 00348 HTMLLayerElement & operator = (const Node &other); 00349 00350 ~HTMLLayerElement(); 00351 00356 long top() const; 00357 00361 void setTop( long ); 00362 00367 long left() const; 00368 00372 void setLeft( long ); 00373 00378 DOMString visibility() const; 00379 00383 void setVisibility( const DOMString & ); 00384 00389 DOMString bgColor() const; 00390 00394 void setBgColor( const DOMString & ); 00395 00400 HTMLCollection layers() const; 00401 }; 00402 00403 } //namespace 00404 00405 #endif