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);