• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdehtml
 

tdehtml

  • tdehtml
  • dom
html_image.h
1/*
2 * This file is part of the DOM implementation for KDE.
3 *
4 * (C) 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 <tdemacros.h>
35
36namespace DOM {
37
38class HTMLAreaElementImpl;
39class DOMString;
40
47class TDEHTML_EXPORT HTMLAreaElement : public HTMLElement
48{
49public:
50 HTMLAreaElement();
51 HTMLAreaElement(const HTMLAreaElement &other);
52 HTMLAreaElement(const Node &other) : HTMLElement()
53 {(*this)=other;}
54protected:
55 HTMLAreaElement(HTMLAreaElementImpl *impl);
56public:
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
177class HTMLImageElementImpl;
178
185class TDEHTML_EXPORT HTMLImageElement : public HTMLElement
186{
187public:
188 HTMLImageElement();
189 HTMLImageElement(const HTMLImageElement &other);
190 HTMLImageElement(const Node &other) : HTMLElement()
191 {(*this)=other;}
192protected:
193 HTMLImageElement(HTMLImageElementImpl *impl);
194public:
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 long border() const TDE_DEPRECATED;
260
264 void setBorder( long ) TDE_DEPRECATED;
265
272 long height() const;
273
277 void setHeight( long );
278
287 long hspace() const;
288
292 void setHspace( long );
293
300 bool isMap() const;
301
305 void setIsMap( bool );
306
314 DOMString longDesc() const;
315
319 void setLongDesc( const DOMString & );
320
327 DOMString src() const;
328
332 void setSrc( const DOMString & );
333
340 DOMString useMap() const;
341
345 void setUseMap( const DOMString & );
346
354 long vspace() const;
355
359 void setVspace( long );
360
367 long width() const;
368
372 void setWidth( long );
373
377 long x() const;
378 long y() const;
379};
380
381// --------------------------------------------------------------------------
382
383class HTMLMapElementImpl;
384class HTMLCollection;
385class DOMString;
386
393class TDEHTML_EXPORT HTMLMapElement : public HTMLElement
394{
395public:
396 HTMLMapElement();
397 HTMLMapElement(const HTMLMapElement &other);
398 HTMLMapElement(const Node &other) : HTMLElement()
399 {(*this)=other;}
400protected:
401 HTMLMapElement(HTMLMapElementImpl *impl);
402public:
403
404 HTMLMapElement & operator = (const HTMLMapElement &other);
405 HTMLMapElement & operator = (const Node &other);
406
407 ~HTMLMapElement();
408
413 HTMLCollection areas() const;
414
421 DOMString name() const;
422
426 void setName( const DOMString & );
427};
428
429} //namespace
430
431#endif
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition dom_string.h:44
DOM::HTMLAreaElement::setHref
void setHref(const DOMString &)
see href
Definition html_image.cpp:103
DOM::HTMLAreaElement::tabIndex
long tabIndex() const
Index that represents the element's position in the tabbing order.
Definition html_image.cpp:136
DOM::HTMLAreaElement::coords
DOMString coords() const
Comma-separated list of lengths, defining an active region geometry.
Definition html_image.cpp:85
DOM::HTMLAreaElement::alt
DOMString alt() const
Alternate text for user agents not rendering the normal content of this element.
Definition html_image.cpp:74
DOM::HTMLAreaElement::noHref
bool noHref() const
Specifies that this area is inactive, i.e., has no associated action.
Definition html_image.cpp:108
DOM::HTMLAreaElement::href
DOMString href() const
The URI of the linked resource.
Definition html_image.cpp:96
DOM::HTMLAreaElement::setAlt
void setAlt(const DOMString &)
see alt
Definition html_image.cpp:80
DOM::HTMLAreaElement::shape
DOMString shape() const
The shape of the active area.
Definition html_image.cpp:125
DOM::HTMLAreaElement::setNoHref
void setNoHref(bool)
see noHref
Definition html_image.cpp:114
DOM::HTMLAreaElement::target
DOMString target() const
Frame to render the resource in.
Definition html_image.cpp:150
DOM::HTMLAreaElement::setAccessKey
void setAccessKey(const DOMString &)
see accessKey
Definition html_image.cpp:69
DOM::HTMLAreaElement::setShape
void setShape(const DOMString &)
see shape
Definition html_image.cpp:131
DOM::HTMLAreaElement::setTabIndex
void setTabIndex(long)
see tabIndex
Definition html_image.cpp:142
DOM::HTMLAreaElement::setTarget
void setTarget(const DOMString &)
see target
Definition html_image.cpp:156
DOM::HTMLAreaElement::accessKey
DOMString accessKey() const
A single character access key to give access to the form control.
Definition html_image.cpp:63
DOM::HTMLAreaElement::setCoords
void setCoords(const DOMString &)
see coords
Definition html_image.cpp:91
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition html_misc.h:127
DOM::HTMLImageElement::setName
void setName(const DOMString &)
see name
Definition html_image.cpp:197
DOM::HTMLImageElement::vspace
long vspace() const
Vertical space above and below this image.
Definition html_image.cpp:322
DOM::HTMLImageElement::getBorder
DOMString getBorder() const
Width of border around image.
Definition html_image.cpp:236
DOM::HTMLImageElement::setWidth
void setWidth(long)
see width
Definition html_image.cpp:340
DOM::HTMLImageElement::useMap
DOMString useMap() const
Use client-side image map.
Definition html_image.cpp:311
DOM::HTMLImageElement::setHeight
void setHeight(long)
see height
Definition html_image.cpp:254
DOM::HTMLImageElement::width
long width() const
Override width.
Definition html_image.cpp:334
DOM::HTMLImageElement::setAlign
void setAlign(const DOMString &)
see align
Definition html_image.cpp:208
DOM::HTMLImageElement::align
DOMString align() const
Aligns this object (vertically or horizontally) with respect to its surrounding text.
Definition html_image.cpp:202
DOM::HTMLImageElement::setLongDesc
void setLongDesc(const DOMString &)
see longDesc
Definition html_image.cpp:294
DOM::HTMLImageElement::setHspace
void setHspace(long)
see hspace
Definition html_image.cpp:266
DOM::HTMLImageElement::setSrc
void setSrc(const DOMString &)
see src
Definition html_image.cpp:306
DOM::HTMLImageElement::setBorder
void setBorder(const DOMString &)
see border
Definition html_image.cpp:242
DOM::HTMLImageElement::hspace
long hspace() const
Horizontal space to the left and right of this image.
Definition html_image.cpp:259
DOM::HTMLImageElement::alt
DOMString alt() const
Alternate text for user agents not rendering the normal content of this element.
Definition html_image.cpp:213
DOM::HTMLImageElement::longDesc
DOMString longDesc() const
URI designating a long description of this image or frame.
Definition html_image.cpp:288
DOM::HTMLImageElement::setIsMap
void setIsMap(bool)
see isMap
Definition html_image.cpp:277
DOM::HTMLImageElement::setVspace
void setVspace(long)
see vspace
Definition html_image.cpp:329
DOM::HTMLImageElement::setAlt
void setAlt(const DOMString &)
see alt
Definition html_image.cpp:219
DOM::HTMLImageElement::isMap
bool isMap() const
Use server-side image map.
Definition html_image.cpp:271
DOM::HTMLImageElement::name
DOMString name() const
The name of the element (for backwards compatibility).
Definition html_image.cpp:191
DOM::HTMLImageElement::setUseMap
void setUseMap(const DOMString &)
see useMap
Definition html_image.cpp:317
DOM::HTMLImageElement::src
DOMString src() const
URI designating the source of this image.
Definition html_image.cpp:299
DOM::HTMLImageElement::height
long height() const
Override height.
Definition html_image.cpp:248
DOM::HTMLImageElement::border
long border() const TDE_DEPRECATED
Definition html_image.cpp:224
DOM::HTMLImageElement::x
long x() const
Nonstandard extension to DOM::ImgElement.
Definition html_image.cpp:345
DOM::HTMLMapElement::name
DOMString name() const
Names the map (for use with usemap ).
Definition html_image.cpp:403
DOM::HTMLMapElement::areas
HTMLCollection areas() const
The list of areas defined for the image map.
Definition html_image.cpp:397
DOM::HTMLMapElement::setName
void setName(const DOMString &)
see name
Definition html_image.cpp:409
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition dom_node.h:275
DOM
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...
Definition design.h:57

tdehtml

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

tdehtml

Skip menu "tdehtml"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdehtml by doxygen 1.15.0
This website is maintained by Timothy Pearson.