• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • sources
  • kde-4.14
  • kdelibs
  • khtml
  • dom
html_image.h
Go to the documentation of this file.
1 /*
2  * This file is part of the DOM implementation for KDE.
3  *
4  * Copyright 1999 Lars Knoll (knoll@kde.org)
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * This file includes excerpts from the Document Object Model (DOM)
22  * Level 1 Specification (Recommendation)
23  * http://www.w3.org/TR/REC-DOM-Level-1/
24  * Copyright © World Wide Web Consortium , (Massachusetts Institute of
25  * Technology , Institut National de Recherche en Informatique et en
26  * Automatique , Keio University ). All Rights Reserved.
27  *
28  */
29 #ifndef HTML_IMAGE_H
30 #define HTML_IMAGE_H
31 
32 #include <dom/html_element.h>
33 
34 #include <kdemacros.h>
35 
36 namespace DOM {
37 
38 class HTMLAreaElementImpl;
39 class DOMString;
40 
47 class KHTML_EXPORT HTMLAreaElement : public HTMLElement
48 {
49 public:
50  HTMLAreaElement();
51  HTMLAreaElement(const HTMLAreaElement &other);
52  HTMLAreaElement(const Node &other) : HTMLElement()
53  {(*this)=other;}
54 protected:
55  HTMLAreaElement(HTMLAreaElementImpl *impl);
56 public:
57 
58  HTMLAreaElement & operator = (const HTMLAreaElement &other);
59  HTMLAreaElement & operator = (const Node &other);
60 
61  ~HTMLAreaElement();
62 
70  DOMString accessKey() const;
71 
75  void setAccessKey( const DOMString & );
76 
84  DOMString alt() const;
85 
89  void setAlt( const DOMString & );
90 
99  DOMString coords() const;
100 
104  void setCoords( const DOMString & );
105 
112  DOMString href() const;
113 
117  void setHref( const DOMString & );
118 
126  bool noHref() const;
127 
131  void setNoHref( bool );
132 
140  DOMString shape() const;
141 
145  void setShape( const DOMString & );
146 
154  long tabIndex() const;
155 
159  void setTabIndex( long );
160 
167  DOMString target() const;
168 
172  void setTarget( const DOMString & );
173 };
174 
175 // --------------------------------------------------------------------------
176 
177 class HTMLImageElementImpl;
178 
185 class KHTML_EXPORT HTMLImageElement : public HTMLElement
186 {
187 public:
188  HTMLImageElement();
189  HTMLImageElement(const HTMLImageElement &other);
190  HTMLImageElement(const Node &other) : HTMLElement()
191  {(*this)=other;}
192 protected:
193  HTMLImageElement(HTMLImageElementImpl *impl);
194 public:
195 
196  HTMLImageElement & operator = (const HTMLImageElement &other);
197  HTMLImageElement & operator = (const Node &other);
198 
199  ~HTMLImageElement();
200 
205  DOMString name() const;
206 
210  void setName( const DOMString & );
211 
220  DOMString align() const;
221 
225  void setAlign( const DOMString & );
226 
234  DOMString alt() const;
235 
239  void setAlt( const DOMString & );
240 
248  DOMString getBorder() const;
249 
253  void setBorder( const DOMString& );
254 
255 
259 #ifndef KDE_NO_DEPRECATED
260  KDE_DEPRECATED long border() const;
261 #endif
262 
266 #ifndef KDE_NO_DEPRECATED
267  KDE_DEPRECATED void setBorder( long );
268 #endif
269 
276  long height() const;
277 
281  void setHeight( long );
282 
291  long hspace() const;
292 
296  void setHspace( long );
297 
304  bool isMap() const;
305 
309  void setIsMap( bool );
310 
318  DOMString longDesc() const;
319 
323  void setLongDesc( const DOMString & );
324 
331  DOMString src() const;
332 
336  void setSrc( const DOMString & );
337 
344  DOMString useMap() const;
345 
349  void setUseMap( const DOMString & );
350 
358  long vspace() const;
359 
363  void setVspace( long );
364 
371  long width() const;
372 
376  void setWidth( long );
377 
381  long x() const;
382  long y() const;
383 };
384 
385 // --------------------------------------------------------------------------
386 
387 class HTMLMapElementImpl;
388 class HTMLCollection;
389 class DOMString;
390 
397 class KHTML_EXPORT HTMLMapElement : public HTMLElement
398 {
399 public:
400  HTMLMapElement();
401  HTMLMapElement(const HTMLMapElement &other);
402  HTMLMapElement(const Node &other) : HTMLElement()
403  {(*this)=other;}
404 protected:
405  HTMLMapElement(HTMLMapElementImpl *impl);
406 public:
407 
408  HTMLMapElement & operator = (const HTMLMapElement &other);
409  HTMLMapElement & operator = (const Node &other);
410 
411  ~HTMLMapElement();
412 
417  HTMLCollection areas() const;
418 
425  DOMString name() const;
426 
430  void setName( const DOMString & );
431 };
432 
433 } //namespace
434 
435 #endif
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:270
DOM::HTMLAreaElement
Client-side image map area definition.
Definition: html_image.h:47
name
const char * name(StandardAction id)
html_element.h
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:130
DOM::HTMLMapElement::HTMLMapElement
HTMLMapElement(const Node &other)
Definition: html_image.h:402
DOM::HTMLImageElement::HTMLImageElement
HTMLImageElement(const Node &other)
Definition: html_image.h:190
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::HTMLImageElement
Embedded image.
Definition: html_image.h:185
DOM::HTMLAreaElement::HTMLAreaElement
HTMLAreaElement(const Node &other)
Definition: html_image.h:52
DOM::HTMLMapElement
Client-side image map.
Definition: html_image.h:397
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:69
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal