• 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
Client-side image map area definition.
Definition: html_image.h:48
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:127
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:70
DOM::HTMLImageElement
Embedded image.
Definition: html_image.h:186
DOM::HTMLMapElement
Client-side image map.
Definition: html_image.h:394
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.9.4
This website is maintained by Timothy Pearson.