• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KHTML

html_image.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_IMAGE_H
00030 #define HTML_IMAGE_H
00031 
00032 #include <dom/html_element.h>
00033 
00034 #include <kdemacros.h>
00035 
00036 namespace DOM {
00037 
00038 class HTMLAreaElementImpl;
00039 class DOMString;
00040 
00047 class KHTML_EXPORT HTMLAreaElement : public HTMLElement
00048 {
00049 public:
00050     HTMLAreaElement();
00051     HTMLAreaElement(const HTMLAreaElement &other);
00052     HTMLAreaElement(const Node &other) : HTMLElement()
00053          {(*this)=other;}
00054 protected:
00055     HTMLAreaElement(HTMLAreaElementImpl *impl);
00056 public:
00057 
00058     HTMLAreaElement & operator = (const HTMLAreaElement &other);
00059     HTMLAreaElement & operator = (const Node &other);
00060 
00061     ~HTMLAreaElement();
00062 
00070     DOMString accessKey() const;
00071 
00075     void setAccessKey( const DOMString & );
00076 
00084     DOMString alt() const;
00085 
00089     void setAlt( const DOMString & );
00090 
00099     DOMString coords() const;
00100 
00104     void setCoords( const DOMString & );
00105 
00112     DOMString href() const;
00113 
00117     void setHref( const DOMString & );
00118 
00126     bool noHref() const;
00127 
00131     void setNoHref( bool );
00132 
00140     DOMString shape() const;
00141 
00145     void setShape( const DOMString & );
00146 
00154     long tabIndex() const;
00155 
00159     void setTabIndex( long );
00160 
00167     DOMString target() const;
00168 
00172     void setTarget( const DOMString & );
00173 };
00174 
00175 // --------------------------------------------------------------------------
00176 
00177 class HTMLImageElementImpl;
00178 
00185 class KHTML_EXPORT HTMLImageElement : public HTMLElement
00186 {
00187 public:
00188     HTMLImageElement();
00189     HTMLImageElement(const HTMLImageElement &other);
00190     HTMLImageElement(const Node &other) : HTMLElement()
00191          {(*this)=other;}
00192 protected:
00193     HTMLImageElement(HTMLImageElementImpl *impl);
00194 public:
00195 
00196     HTMLImageElement & operator = (const HTMLImageElement &other);
00197     HTMLImageElement & operator = (const Node &other);
00198 
00199     ~HTMLImageElement();
00200 
00205     DOMString name() const;
00206 
00210     void setName( const DOMString & );
00211 
00220     DOMString align() const;
00221 
00225     void setAlign( const DOMString & );
00226 
00234     DOMString alt() const;
00235 
00239     void setAlt( const DOMString & );
00240 
00248     DOMString getBorder() const;
00249 
00253     void setBorder( const DOMString& );
00254 
00255 
00259     long border() const KDE_DEPRECATED;
00260 
00264     void setBorder( long ) KDE_DEPRECATED;
00265 
00272     long height() const;
00273 
00277     void setHeight( long );
00278 
00287     long hspace() const;
00288 
00292     void setHspace( long );
00293 
00300     bool isMap() const;
00301 
00305     void setIsMap( bool );
00306 
00314     DOMString longDesc() const;
00315 
00319     void setLongDesc( const DOMString & );
00320 
00327     DOMString src() const;
00328 
00332     void setSrc( const DOMString & );
00333 
00340     DOMString useMap() const;
00341 
00345     void setUseMap( const DOMString & );
00346 
00354     long vspace() const;
00355 
00359     void setVspace( long );
00360 
00367     long width() const;
00368 
00372     void setWidth( long );
00373 
00377     long x() const;
00378     long y() const;
00379 };
00380 
00381 // --------------------------------------------------------------------------
00382 
00383 class HTMLMapElementImpl;
00384 class HTMLCollection;
00385 class DOMString;
00386 
00393 class KHTML_EXPORT HTMLMapElement : public HTMLElement
00394 {
00395 public:
00396     HTMLMapElement();
00397     HTMLMapElement(const HTMLMapElement &other);
00398     HTMLMapElement(const Node &other) : HTMLElement()
00399          {(*this)=other;}
00400 protected:
00401     HTMLMapElement(HTMLMapElementImpl *impl);
00402 public:
00403 
00404     HTMLMapElement & operator = (const HTMLMapElement &other);
00405     HTMLMapElement & operator = (const Node &other);
00406 
00407     ~HTMLMapElement();
00408 
00413     HTMLCollection areas() const;
00414 
00421     DOMString name() const;
00422 
00426     void setName( const DOMString & );
00427 };
00428 
00429 } //namespace
00430 
00431 #endif

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal