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