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);
DOMString object() const
Serialized applet file.
DOMString archive() const
Comma-separated archive list.
DOMString width() const
Override width.
void setBorder(const DOMString &)
see border
DOMString name() const
The name of a run-time parameter.
long getHspace() const
Horizontal space, in pixels, to the left and right of this image, applet, or object.
HTMLFormElement form() const
Returns the FORM element containing this control.
DOMString hspace() const KDE_DEPRECATED
void setCode(const DOMString &)
see code
void setHspace(long)
see hspace
void setName(const DOMString &)
see name
long getVspace() const
Vertical space, in pixels, above and below this image, applet, or object.
bool declare() const
Declare (for future reference), but do not instantiate, this object.
void setHspace(long)
see hspace
void setArchive(const DOMString &)
see archive
DOMString valueType() const
Information about the meaning of the value attribute value.
void setType(const DOMString &)
see type
void setCode(const DOMString &)
see code
void setAlign(const DOMString &)
see align
DOMString value() const
The value of a run-time parameter.
void setVspace(long)
see vspace
void setHeight(const DOMString &)
see height
Document contentDocument() const
Introduced in DOM Level 2.
DOMString border() const
Width of border around the object.
void setDeclare(bool)
see declare
DOMString code() const
Applet class file.
DOMString archive() const
Space-separated list of archives.
DOMString codeBase() const
Base URI for classid , data , and archive attributes.
void setValue(const DOMString &)
see value
void setData(const DOMString &)
see data
long getHspace() const
Horizontal space, in pixels, to the left and right of this image, applet, or object.
void setCodeType(const DOMString &)
see codeType
DOMString vspace() const KDE_DEPRECATED
long tabIndex() const
Index that represents the element's position in the tabbing order.
DOMString align() const
Aligns this object (vertically or horizontally) with respect to its surrounding text.
void setArchive(const DOMString &)
see archive
HTMLAppletElement()
This file is part of the DOM implementation for KDE.
This class implements the basic string we use in the DOM.
The Document interface represents the entire HTML or XML document.
DOMString name() const
Form control or object name when submitted with a form.
DOMString type() const
Content type for data downloaded via data attribute.
DOMString hspace() const KDE_DEPRECATED
void setUseMap(const DOMString &)
see useMap
DOMString data() const
A URI specifying the location of the object's data.
DOMString height() const
Override height.
DOMString type() const
Content type for the value attribute when valuetype has the value "ref".
void setVspace(long)
see vspace
void setName(const DOMString &)
see name
void setWidth(const DOMString &)
see width
void setType(const DOMString &)
see type
DOMString codeBase() const
Optional base URI for applet.
void setObject(const DOMString &)
see object
DOMString name() const
The name of the applet.
DOMString code() const
Applet class file.
void setAlign(const DOMString &)
see align
void setValueType(const DOMString &)
see valueType
Element form() const
TDEHTML extension to DOM This method returns the associated form element.
void setTabIndex(long)
see tabIndex
void setAlt(const DOMString &)
see alt
void setHeight(const DOMString &)
see height
DOMString align() const
Aligns this object (vertically or horizontally) with respect to its surrounding text.
void setStandby(const DOMString &)
see standby
DOMString vspace() const KDE_DEPRECATED
DOMString codeType() const
Content type for data downloaded via classid attribute.
long getVspace() const
Vertical space, in pixels, above and below this image, applet, or object.
DOMString standby() const
Message to render while loading the object.
void setCodeBase(const DOMString &)
see codeBase
DOMString height() const
Override height.
DOMString width() const
Override width.
void setWidth(const DOMString &)
see width
DOMString useMap() const
Use client-side image map.
void setName(const DOMString &)
see name
All HTML element interfaces derive from this class.
void setCodeBase(const DOMString &value)
see codeBase
DOMString alt() const
Alternate text for user agents not rendering the normal content of this element.