• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • 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  * 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_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 #ifndef KDE_NO_DEPRECATED
00260     KDE_DEPRECATED long border() const;
00261 #endif
00262 
00266 #ifndef KDE_NO_DEPRECATED
00267     KDE_DEPRECATED void setBorder( long );
00268 #endif
00269 
00276     long height() const;
00277 
00281     void setHeight( long );
00282 
00291     long hspace() const;
00292 
00296     void setHspace( long );
00297 
00304     bool isMap() const;
00305 
00309     void setIsMap( bool );
00310 
00318     DOMString longDesc() const;
00319 
00323     void setLongDesc( const DOMString & );
00324 
00331     DOMString src() const;
00332 
00336     void setSrc( const DOMString & );
00337 
00344     DOMString useMap() const;
00345 
00349     void setUseMap( const DOMString & );
00350 
00358     long vspace() const;
00359 
00363     void setVspace( long );
00364 
00371     long width() const;
00372 
00376     void setWidth( long );
00377 
00381     long x() const;
00382     long y() const;
00383 };
00384 
00385 // --------------------------------------------------------------------------
00386 
00387 class HTMLMapElementImpl;
00388 class HTMLCollection;
00389 class DOMString;
00390 
00397 class KHTML_EXPORT HTMLMapElement : public HTMLElement
00398 {
00399 public:
00400     HTMLMapElement();
00401     HTMLMapElement(const HTMLMapElement &other);
00402     HTMLMapElement(const Node &other) : HTMLElement()
00403          {(*this)=other;}
00404 protected:
00405     HTMLMapElement(HTMLMapElementImpl *impl);
00406 public:
00407 
00408     HTMLMapElement & operator = (const HTMLMapElement &other);
00409     HTMLMapElement & operator = (const Node &other);
00410 
00411     ~HTMLMapElement();
00412 
00417     HTMLCollection areas() const;
00418 
00425     DOMString name() const;
00426 
00430     void setName( const DOMString & );
00431 };
00432 
00433 } //namespace
00434 
00435 #endif

KHTML

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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