html_image.h
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., 59 Temple Place - Suite 330, 00019 * Boston, MA 02111-1307, 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 * $Id: html_image.h,v 1.10.4.1 2003/01/03 21:09:24 mueller Exp $ 00029 */ 00030 #ifndef HTML_IMAGE_H 00031 #define HTML_IMAGE_H 00032 00033 #include <dom/html_element.h> 00034 00035 namespace DOM { 00036 00037 class HTMLAreaElementImpl; 00038 class DOMString; 00039 00046 class HTMLAreaElement : public HTMLElement 00047 { 00048 public: 00049 HTMLAreaElement(); 00050 HTMLAreaElement(const HTMLAreaElement &other); 00051 HTMLAreaElement(const Node &other) : HTMLElement() 00052 {(*this)=other;} 00053 protected: 00054 HTMLAreaElement(HTMLAreaElementImpl *impl); 00055 public: 00056 00057 HTMLAreaElement & operator = (const HTMLAreaElement &other); 00058 HTMLAreaElement & operator = (const Node &other); 00059 00060 ~HTMLAreaElement(); 00061 00069 DOMString accessKey() const; 00070 00074 void setAccessKey( const DOMString & ); 00075 00083 DOMString alt() const; 00084 00088 void setAlt( 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 00125 bool noHref() const; 00126 00130 void setNoHref( bool ); 00131 00139 DOMString shape() const; 00140 00144 void setShape( const DOMString & ); 00145 00153 long tabIndex() const; 00154 00158 void setTabIndex( long ); 00159 00166 DOMString target() const; 00167 00171 void setTarget( const DOMString & ); 00172 }; 00173 00174 // -------------------------------------------------------------------------- 00175 00176 class HTMLImageElementImpl; 00177 00184 class HTMLImageElement : public HTMLElement 00185 { 00186 public: 00187 HTMLImageElement(); 00188 HTMLImageElement(const HTMLImageElement &other); 00189 HTMLImageElement(const Node &other) : HTMLElement() 00190 {(*this)=other;} 00191 protected: 00192 HTMLImageElement(HTMLImageElementImpl *impl); 00193 public: 00194 00195 HTMLImageElement & operator = (const HTMLImageElement &other); 00196 HTMLImageElement & operator = (const Node &other); 00197 00198 ~HTMLImageElement(); 00199 00204 DOMString name() const; 00205 00209 void setName( const DOMString & ); 00210 00219 DOMString align() const; 00220 00224 void setAlign( const DOMString & ); 00225 00233 DOMString alt() const; 00234 00238 void setAlt( const DOMString & ); 00239 00247 DOMString getBorder() const; 00248 00252 void setBorder( const DOMString& ); 00253 00254 00258 long border() const; 00259 00263 void setBorder( long ); 00264 00271 long height() const; 00272 00276 void setHeight( long ); 00277 00286 long hspace() const; 00287 00291 void setHspace( long ); 00292 00299 bool isMap() const; 00300 00304 void setIsMap( bool ); 00305 00313 DOMString longDesc() const; 00314 00318 void setLongDesc( const DOMString & ); 00319 00326 DOMString src() const; 00327 00331 void setSrc( const DOMString & ); 00332 00339 DOMString useMap() const; 00340 00344 void setUseMap( const DOMString & ); 00345 00353 long vspace() const; 00354 00358 void setVspace( long ); 00359 00366 long width() const; 00367 00371 void setWidth( long ); 00372 00373 }; 00374 00375 // -------------------------------------------------------------------------- 00376 00377 class HTMLMapElementImpl; 00378 class HTMLCollection; 00379 class DOMString; 00380 00387 class HTMLMapElement : public HTMLElement 00388 { 00389 public: 00390 HTMLMapElement(); 00391 HTMLMapElement(const HTMLMapElement &other); 00392 HTMLMapElement(const Node &other) : HTMLElement() 00393 {(*this)=other;} 00394 protected: 00395 HTMLMapElement(HTMLMapElementImpl *impl); 00396 public: 00397 00398 HTMLMapElement & operator = (const HTMLMapElement &other); 00399 HTMLMapElement & operator = (const Node &other); 00400 00401 ~HTMLMapElement(); 00402 00407 HTMLCollection areas() const; 00408 00415 DOMString name() const; 00416 00420 void setName( const DOMString & ); 00421 }; 00422 00423 }; //namespace 00424 00425 #endif