23 #include "dom/dom_doc.h"
24 #include "dom/html_object.h"
25 #include "html/html_objectimpl.h"
26 #include "misc/htmlhashes.h"
42 HTMLAppletElement &HTMLAppletElement::operator = (
const Node &other)
44 assignOther( other, ID_APPLET );
48 HTMLAppletElement &HTMLAppletElement::operator = (
const HTMLAppletElement &other)
50 HTMLElement::operator = (other);
54 HTMLAppletElement::~HTMLAppletElement()
61 return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
66 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
72 return ((ElementImpl *)impl)->getAttribute(ATTR_ALT);
77 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALT, value);
83 return ((ElementImpl *)impl)->getAttribute(ATTR_ARCHIVE);
88 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ARCHIVE, value);
94 return ((ElementImpl *)impl)->getAttribute(ATTR_CODE);
99 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODE, value);
105 return ((ElementImpl *)impl)->getAttribute(ATTR_CODEBASE);
110 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODEBASE, value);
116 return ((ElementImpl *)impl)->getAttribute(ATTR_HEIGHT);
121 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HEIGHT, value);
127 return ((ElementImpl *)impl)->getAttribute(ATTR_HSPACE);
132 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HSPACE, value);
138 return ((ElementImpl *)impl)->getAttribute(ATTR_HSPACE).toInt();
143 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HSPACE, TQString::number(value));
149 return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
154 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
160 return ((ElementImpl *)impl)->getAttribute(ATTR_OBJECT);
165 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_OBJECT, value);
171 return ((ElementImpl *)impl)->getAttribute(ATTR_VSPACE);
176 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VSPACE, value);
182 return ((ElementImpl *)impl)->getAttribute(ATTR_VSPACE).toInt();
187 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VSPACE, TQString::number(value));
194 return ((ElementImpl *)impl)->getAttribute(ATTR_WIDTH);
199 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_WIDTH, value);
204 HTMLObjectElement::HTMLObjectElement() :
HTMLElement()
208 HTMLObjectElement::HTMLObjectElement(
const HTMLObjectElement &other) : HTMLElement(other)
212 HTMLObjectElement::HTMLObjectElement(HTMLObjectElementImpl *impl) : HTMLElement(impl)
216 HTMLObjectElement &HTMLObjectElement::operator = (
const Node &other)
218 assignOther( other, ID_OBJECT );
222 HTMLObjectElement &HTMLObjectElement::operator = (
const HTMLObjectElement &other)
224 HTMLElement::operator = (other);
228 HTMLObjectElement::~HTMLObjectElement()
235 return ((HTMLObjectElementImpl *)impl)->
form();
241 return ((ElementImpl *)impl)->getAttribute(ATTR_CODE);
246 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODE, value);
252 return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
257 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
263 return ((ElementImpl *)impl)->getAttribute(ATTR_ARCHIVE);
268 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ARCHIVE, value);
274 return ((ElementImpl *)impl)->getAttribute(ATTR_BORDER);
279 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_BORDER, value);
285 return ((ElementImpl *)impl)->getAttribute(ATTR_CODEBASE);
290 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODEBASE, value);
296 return ((ElementImpl *)impl)->getAttribute(ATTR_CODETYPE);
301 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CODETYPE, value);
307 return ((ElementImpl *)impl)->getAttribute(ATTR_DATA);
312 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_DATA, value);
318 return !((ElementImpl *)impl)->getAttribute(ATTR_DECLARE).isNull();
328 ((ElementImpl *)impl)->setAttribute(ATTR_DECLARE, str);
335 return ((ElementImpl *)impl)->getAttribute(ATTR_HEIGHT);
340 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HEIGHT, value);
346 return ((ElementImpl *)impl)->getAttribute(ATTR_HSPACE);
351 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HSPACE, value);
357 return ((ElementImpl *)impl)->getAttribute(ATTR_HSPACE).toInt();
362 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_HSPACE, TQString::number(value));
368 return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
373 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
379 return ((ElementImpl *)impl)->getAttribute(ATTR_STANDBY);
384 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_STANDBY, value);
390 return ((ElementImpl *)impl)->getAttribute(ATTR_TABINDEX).toInt();
396 DOMString value(TQString::number(_tabIndex));
397 ((ElementImpl *)impl)->setAttribute(ATTR_TABINDEX,value);
404 return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
409 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_TYPE, value);
415 return ((ElementImpl *)impl)->getAttribute(ATTR_USEMAP);
420 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_USEMAP, value);
426 return ((ElementImpl *)impl)->getAttribute(ATTR_VSPACE);
431 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VSPACE, value);
437 return ((ElementImpl *)impl)->getAttribute(ATTR_VSPACE).toInt();
442 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VSPACE, TQString::number(value));
448 return ((ElementImpl *)impl)->getAttribute(ATTR_WIDTH);
453 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_WIDTH, value);
458 if (impl)
return static_cast<HTMLObjectElementImpl*
>(impl)->
contentDocument();
464 HTMLParamElement::HTMLParamElement() :
HTMLElement()
468 HTMLParamElement::HTMLParamElement(
const HTMLParamElement &other) : HTMLElement(other)
472 HTMLParamElement::HTMLParamElement(HTMLParamElementImpl *impl) : HTMLElement(impl)
476 HTMLParamElement &HTMLParamElement::operator = (
const Node &other)
478 assignOther( other, ID_PARAM );
482 HTMLParamElement &HTMLParamElement::operator = (
const HTMLParamElement &other)
484 HTMLElement::operator = (other);
488 HTMLParamElement::~HTMLParamElement()
495 return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
500 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_NAME,
value);
506 return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
511 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_TYPE,
value);
517 return ((ElementImpl *)impl)->getAttribute(ATTR_VALUE);
522 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VALUE,
value);
528 return ((ElementImpl *)impl)->getAttribute(ATTR_VALUETYPE);
533 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VALUETYPE,
value);
This class implements the basic string we use in the DOM.
The Document interface represents the entire HTML or XML document.
Element form() const
TDEHTML extension to DOM This method returns the associated form element.
DOMString object() const
Serialized applet file.
void setWidth(const DOMString &)
see width
long getVspace() const
Vertical space, in pixels, above and below this image, applet, or object.
DOMString width() const
Override width.
DOMString archive() const
Comma-separated archive list.
DOMString align() const
Aligns this object (vertically or horizontally) with respect to its surrounding text.
HTMLAppletElement()
This file is part of the DOM implementation for KDE.
void setObject(const DOMString &)
see object
DOMString alt() const
Alternate text for user agents not rendering the normal content of this element.
void setHspace(long)
see hspace
void setCodeBase(const DOMString &value)
see codeBase
void setHeight(const DOMString &)
see height
DOMString name() const
The name of the applet.
DOMString height() const
Override height.
void setCode(const DOMString &)
see code
long getHspace() const
Horizontal space, in pixels, to the left and right of this image, applet, or object.
DOMString hspace() const TDE_DEPRECATED
void setVspace(long)
see vspace
DOMString codeBase() const
Optional base URI for applet.
void setArchive(const DOMString &)
see archive
void setAlign(const DOMString &)
see align
void setAlt(const DOMString &)
see alt
DOMString vspace() const TDE_DEPRECATED
DOMString code() const
Applet class file.
void setName(const DOMString &)
see name
All HTML element interfaces derive from this class.
void setCodeBase(const DOMString &)
see codeBase
void setDeclare(bool)
see declare
long tabIndex() const
Index that represents the element's position in the tabbing order.
void setUseMap(const DOMString &)
see useMap
void setWidth(const DOMString &)
see width
DOMString codeType() const
Content type for data downloaded via classid attribute.
void setArchive(const DOMString &)
see archive
DOMString useMap() const
Use client-side image map.
void setType(const DOMString &)
see type
DOMString data() const
A URI specifying the location of the object's data.
void setName(const DOMString &)
see name
DOMString name() const
Form control or object name when submitted with a form.
DOMString hspace() const TDE_DEPRECATED
DOMString align() const
Aligns this object (vertically or horizontally) with respect to its surrounding text.
DOMString archive() const
Space-separated list of archives.
void setStandby(const DOMString &)
see standby
HTMLFormElement form() const
Returns the FORM element containing this control.
void setHspace(long)
see hspace
void setCodeType(const DOMString &)
see codeType
DOMString vspace() const TDE_DEPRECATED
long getHspace() const
Horizontal space, in pixels, to the left and right of this image, applet, or object.
DOMString codeBase() const
Base URI for classid , data , and archive attributes.
DOMString code() const
Applet class file.
void setData(const DOMString &)
see data
void setHeight(const DOMString &)
see height
void setBorder(const DOMString &)
see border
DOMString standby() const
Message to render while loading the object.
DOMString height() const
Override height.
void setVspace(long)
see vspace
void setTabIndex(long)
see tabIndex
DOMString border() const
Width of border around the object.
DOMString type() const
Content type for data downloaded via data attribute.
void setAlign(const DOMString &)
see align
void setCode(const DOMString &)
see code
Document contentDocument() const
Introduced in DOM Level 2.
bool declare() const
Declare (for future reference), but do not instantiate, this object.
long getVspace() const
Vertical space, in pixels, above and below this image, applet, or object.
DOMString width() const
Override width.
DOMString type() const
Content type for the value attribute when valuetype has the value "ref".
void setType(const DOMString &)
see type
void setValue(const DOMString &)
see value
DOMString name() const
The name of a run-time parameter.
DOMString valueType() const
Information about the meaning of the value attribute value.
void setValueType(const DOMString &)
see valueType
DOMString value() const
The value of a run-time parameter.
void setName(const DOMString &)
see name