23 #include "html_base.h"
25 #include <xml/dom_docimpl.h>
26 #include <html/html_baseimpl.h>
38 HTMLBodyElement::HTMLBodyElement(HTMLBodyElementImpl *impl) :
HTMLElement(impl)
44 assignOther(other, ID_BODY);
50 HTMLElement::operator = (other);
54 HTMLBodyElement::~HTMLBodyElement()
60 return impl ? ((HTMLBodyElementImpl *)impl)->aLink() :
DOMString();
66 ((HTMLBodyElementImpl *)impl)->setALink(value);
72 return impl ? ((ElementImpl *)impl)->getAttribute(ATTR_BACKGROUND) :
DOMString();
78 ((ElementImpl *)impl)->setAttribute(ATTR_BACKGROUND, value);
84 return impl ? ((HTMLBodyElementImpl *)impl)->bgColor() :
DOMString();
90 ((HTMLBodyElementImpl *)impl)->setBgColor(value);
96 return impl ? ((HTMLBodyElementImpl *)impl)->link() :
DOMString();
102 ((HTMLBodyElementImpl *)impl)->setLink(value);
108 return impl ? ((HTMLBodyElementImpl *)impl)->text() :
DOMString();
114 ((HTMLBodyElementImpl *)impl)->setText(value);
120 return impl ? ((HTMLBodyElementImpl *)impl)->vLink() :
DOMString();
126 ((HTMLBodyElementImpl *)impl)->setVLink(value);
132 HTMLFrameElement::HTMLFrameElement() :
HTMLElement()
140 HTMLFrameElement::HTMLFrameElement(HTMLFrameElementImpl *impl) :
HTMLElement(impl)
146 assignOther(other, ID_FRAME);
152 HTMLElement::operator = (other);
156 HTMLFrameElement::~HTMLFrameElement()
165 return ((ElementImpl *)impl)->getAttribute(ATTR_FRAMEBORDER);
171 ((ElementImpl *)impl)->setAttribute(ATTR_FRAMEBORDER, value);
180 return ((ElementImpl *)impl)->getAttribute(ATTR_LONGDESC);
186 ((ElementImpl *)impl)->setAttribute(ATTR_LONGDESC, value);
195 return ((ElementImpl *)impl)->getAttribute(ATTR_MARGINHEIGHT);
201 ((ElementImpl *)impl)->setAttribute(ATTR_MARGINHEIGHT, value);
210 return ((ElementImpl *)impl)->getAttribute(ATTR_MARGINWIDTH);
216 ((ElementImpl *)impl)->setAttribute(ATTR_MARGINWIDTH, value);
225 return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
231 ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
240 return !((ElementImpl *)impl)->getAttribute(ATTR_NORESIZE).isNull();
250 ((ElementImpl *)impl)->setAttribute(ATTR_NORESIZE, str);
259 return ((ElementImpl *)impl)->getAttribute(ATTR_SCROLLING);
265 ((ElementImpl *)impl)->setAttribute(ATTR_SCROLLING, value);
275 return !s.isNull() ? impl->document()->completeURL(s.string()) : s;
281 ((ElementImpl *)impl)->setAttribute(ATTR_SRC, value);
295 HTMLIFrameElement::HTMLIFrameElement() :
HTMLElement()
303 HTMLIFrameElement::HTMLIFrameElement(HTMLIFrameElementImpl *impl) :
HTMLElement(impl)
309 assignOther(other, ID_IFRAME);
315 HTMLElement::operator = (other);
319 HTMLIFrameElement::~HTMLIFrameElement()
328 return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
334 ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
343 return ((ElementImpl *)impl)->getAttribute(ATTR_FRAMEBORDER);
349 ((ElementImpl *)impl)->setAttribute(ATTR_FRAMEBORDER, value);
358 return ((ElementImpl *)impl)->getAttribute(ATTR_HEIGHT);
364 ((ElementImpl *)impl)->setAttribute(ATTR_HEIGHT, value);
373 return ((ElementImpl *)impl)->getAttribute(ATTR_LONGDESC);
379 ((ElementImpl *)impl)->setAttribute(ATTR_LONGDESC, value);
388 return ((ElementImpl *)impl)->getAttribute(ATTR_MARGINHEIGHT);
394 ((ElementImpl *)impl)->setAttribute(ATTR_MARGINHEIGHT, value);
403 return ((ElementImpl *)impl)->getAttribute(ATTR_MARGINWIDTH);
409 ((ElementImpl *)impl)->setAttribute(ATTR_MARGINWIDTH, value);
418 return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
424 ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
433 return ((ElementImpl *)impl)->getAttribute(ATTR_SCROLLING);
439 ((ElementImpl *)impl)->setAttribute(ATTR_SCROLLING, value);
449 return !s.isNull() ? impl->document()->completeURL(s.string()) : s;
455 ((ElementImpl *)impl)->setAttribute(ATTR_SRC, value);
464 return ((ElementImpl *)impl)->getAttribute(ATTR_WIDTH);
470 ((ElementImpl *)impl)->setAttribute(ATTR_WIDTH, value);
484 HTMLFrameSetElement::HTMLFrameSetElement() :
HTMLElement()
492 HTMLFrameSetElement::HTMLFrameSetElement(HTMLFrameSetElementImpl *impl) :
HTMLElement(impl)
498 assignOther(other, ID_FRAMESET);
504 HTMLElement::operator = (other);
508 HTMLFrameSetElement::~HTMLFrameSetElement()
517 return ((ElementImpl *)impl)->getAttribute(ATTR_COLS);
523 ((ElementImpl *)impl)->setAttribute(ATTR_COLS, value);
532 return ((ElementImpl *)impl)->getAttribute(ATTR_ROWS);
538 ((ElementImpl *)impl)->setAttribute(ATTR_ROWS, value);
552 HTMLHeadElement::HTMLHeadElement(HTMLHeadElementImpl *impl) :
HTMLElement(impl)
558 assignOther(other, ID_HEAD);
564 HTMLElement::operator = (other);
568 HTMLHeadElement::~HTMLHeadElement()
577 return ((ElementImpl *)impl)->getAttribute(ATTR_PROFILE);
583 ((ElementImpl *)impl)->setAttribute(ATTR_PROFILE, value);
597 HTMLHtmlElement::HTMLHtmlElement(HTMLHtmlElementImpl *impl) :
HTMLElement(impl)
603 assignOther(other, ID_HTML);
609 HTMLElement::operator = (other);
613 HTMLHtmlElement::~HTMLHtmlElement()
622 return ((ElementImpl *)impl)->getAttribute(ATTR_VERSION);
628 ((ElementImpl *)impl)->setAttribute(ATTR_VERSION, value);