KHTML
Go to the documentation of this file.
28 #include <html/html_imageimpl.h>
29 #include <html/html_miscimpl.h>
30 #include <xml/dom_docimpl.h>
65 return ((ElementImpl *)
impl)->getAttribute(ATTR_ACCESSKEY);
70 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ACCESSKEY, value);
76 return ((ElementImpl *)
impl)->getAttribute(ATTR_ALT);
81 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ALT, value);
87 return ((ElementImpl *)
impl)->getAttribute(ATTR_COORDS);
92 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_COORDS, value);
104 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_HREF, value);
110 return !((ElementImpl *)
impl)->getAttribute(ATTR_NOHREF).isNull();
120 ((ElementImpl *)
impl)->setAttribute(ATTR_NOHREF, str);
127 return ((ElementImpl *)
impl)->getAttribute(ATTR_SHAPE);
132 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_SHAPE, value);
138 return ((ElementImpl *)
impl)->getAttribute(ATTR_TABINDEX).toInt();
144 DOMString value(QString::number(_tabIndex));
145 ((ElementImpl *)
impl)->setAttribute(ATTR_TABINDEX,value);
152 return ((ElementImpl *)
impl)->getAttribute(ATTR_TARGET);
157 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_TARGET, value);
193 return ((ElementImpl *)
impl)->getAttribute(ATTR_NAME);
198 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_NAME, value);
204 return ((ElementImpl *)
impl)->getAttribute(ATTR_ALIGN);
209 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ALIGN, value);
215 return ((ElementImpl *)
impl)->getAttribute(ATTR_ALT);
220 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ALT, value);
223 #ifndef KDE_NO_DEPRECATED
232 #ifndef KDE_NO_DEPRECATED
235 if (
impl)
static_cast<HTMLImageElementImpl*
>(
impl)->
setAttribute(ATTR_BORDER, QString::number(value));
254 return static_cast<HTMLImageElementImpl*
>(
impl)->
height();
259 if(
impl) ((HTMLImageElementImpl *)
impl)->setHeight(value);
266 return ((ElementImpl *)
impl)->getAttribute(ATTR_HSPACE).toInt();
271 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_HSPACE, QString::number(value));
277 return !((ElementImpl *)
impl)->getAttribute(ATTR_ISMAP).isNull();
287 ((ElementImpl *)
impl)->setAttribute(ATTR_ISMAP, str);
294 return ((ElementImpl *)
impl)->getAttribute(ATTR_LONGDESC);
299 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_LONGDESC, value);
311 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_SRC, value);
317 return ((ElementImpl *)
impl)->getAttribute(ATTR_USEMAP);
322 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_USEMAP, value);
329 return ((ElementImpl *)
impl)->getAttribute(ATTR_VSPACE).toInt();
340 return static_cast<HTMLImageElementImpl*
>(
impl)->
width();
345 if(
impl) ((HTMLImageElementImpl *)
impl)->setWidth(value);
350 if (
impl)
return static_cast<const HTMLImageElementImpl*
>(
impl)->
x();
356 if (
impl)
return static_cast<const HTMLImageElementImpl*
>(
impl)->
y();
399 return ((ElementImpl *)
impl)->getAttribute(ATTR_NAME);
404 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_NAME, value);
HTMLMapElement & operator=(const HTMLMapElement &other)
void setLongDesc(const DOMString &)
see longDesc
All HTML element interfaces derive from this class.
long vspace() const
Vertical space above and below this image.
void setBorder(const DOMString &)
see border
Client-side image map area definition.
void setCoords(const DOMString &)
see coords
void setWidth(long)
see width
void setAccessKey(const DOMString &)
see accessKey
DOMString src() const
URI designating the source of this image.
void setHeight(long)
see height
void setHref(const DOMString &)
see href
This library provides a full-featured HTML parser and widget.
DOMString getAttribute(const DOMString &name)
Retrieves an attribute value by name.
long hspace() const
Horizontal space to the left and right of this image.
An HTMLCollection is a list of nodes.
DOMString alt() const
Alternate text for user agents not rendering the normal content of this element.
long x() const
Nonstandard extension to DOM::ImgElement.
HTMLElement & operator=(const HTMLElement &other)
void setAlt(const DOMString &)
see alt
DOMString useMap() const
Use client-side image map.
DOMString coords() const
Comma-separated list of lengths, defining an active region geometry.
void setSrc(const DOMString &)
see src
DOMString longDesc() const
URI designating a long description of this image or frame.
DOMString shape() const
The shape of the active area.
HTMLAreaElement & operator=(const HTMLAreaElement &other)
HTMLCollection areas() const
The list of areas defined for the image map.
void setTabIndex(long)
see tabIndex
long height() const
Override height.
DOMString name() const
Names the map (for use with usemap ).
DOMString getBorder() const
Width of border around image.
void assignOther(const Node &other, int elementId)
bool isMap() const
Use server-side image map.
DOMString target() const
Frame to render the resource in.
void setShape(const DOMString &)
see shape
void setVspace(long)
see vspace
This class implements the basic string we use in the DOM.
void setUseMap(const DOMString &)
see useMap
HTMLImageElement & operator=(const HTMLImageElement &other)
DOMString parsedUrl() const
Return a parsed url.
void setName(const DOMString &)
see name
long width() const
Override width.
DOMString accessKey() const
A single character access key to give access to the form control.
DOMString align() const
Aligns this object (vertically or horizontally) with respect to its surrounding text.
DOMString name() const
The name of the element (for backwards compatibility).
void setTarget(const DOMString &)
see target
void setAlign(const DOMString &)
see align
void setHspace(long)
see hspace
long tabIndex() const
Index that represents the element's position in the tabbing order.
void setNoHref(bool)
see noHref
void setIsMap(bool)
see isMap
The Node interface is the primary datatype for the entire Document Object Model.
DOMString href() const
The URI of the linked resource.
void setAttribute(const DOMString &name, const DOMString &value)
Adds a new attribute.
bool noHref() const
Specifies that this area is inactive, i.e., has no associated action.
void setName(const DOMString &)
see name
void setAlt(const DOMString &)
see alt
DOMString alt() const
Alternate text for user agents not rendering the normal content of this element.
friend class HTMLCollection
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.