25 #include "html_inline.h"
28 #include <html/html_inlineimpl.h>
29 #include <html/html_baseimpl.h>
30 #include <xml/dom_docimpl.h>
34 HTMLAnchorElement::HTMLAnchorElement() :
HTMLElement()
42 HTMLAnchorElement::HTMLAnchorElement(HTMLAnchorElementImpl *impl) :
HTMLElement(impl)
48 assignOther(other, ID_A);
54 HTMLElement::operator = (other);
58 HTMLAnchorElement::~HTMLAnchorElement()
67 return ((ElementImpl *)impl)->getAttribute(ATTR_ACCESSKEY);
73 ((ElementImpl *)impl)->setAttribute(ATTR_ACCESSKEY, value);
82 return ((ElementImpl *)impl)->getAttribute(ATTR_CHARSET);
88 ((ElementImpl *)impl)->setAttribute(ATTR_CHARSET, value);
97 return ((ElementImpl *)impl)->getAttribute(ATTR_COORDS);
103 ((ElementImpl *)impl)->setAttribute(ATTR_COORDS, value);
113 return !
href.isNull() ? impl->document()->completeURL(
href.string()) :
href;
119 ((ElementImpl *)impl)->setAttribute(ATTR_HREF, value);
128 return ((ElementImpl *)impl)->getAttribute(ATTR_HREFLANG);
134 ((ElementImpl *)impl)->setAttribute(ATTR_HREFLANG, value);
143 return ((ElementImpl *)impl)->getAttribute(ATTR_NAME);
149 ((ElementImpl *)impl)->setAttribute(ATTR_NAME, value);
158 return ((ElementImpl *)impl)->getAttribute(ATTR_REL);
164 ((ElementImpl *)impl)->setAttribute(ATTR_REL, value);
173 return ((ElementImpl *)impl)->getAttribute(ATTR_REV);
179 ((ElementImpl *)impl)->setAttribute(ATTR_REV, value);
188 return ((ElementImpl *)impl)->getAttribute(ATTR_SHAPE);
194 ((ElementImpl *)impl)->setAttribute(ATTR_SHAPE, value);
203 return ((ElementImpl *)impl)->getAttribute(ATTR_TABINDEX).toInt();
210 ((ElementImpl *)impl)->setAttribute(ATTR_TABINDEX, value);
219 return ((ElementImpl *)impl)->getAttribute(ATTR_TARGET);
225 ((ElementImpl *)impl)->setAttribute(ATTR_TARGET, value);
234 return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
240 ((ElementImpl *)impl)->setAttribute(ATTR_TYPE, value);
247 ((HTMLAnchorElementImpl *)impl)->blur();
254 ((HTMLAnchorElementImpl *)impl)->focus();
268 HTMLBRElement::HTMLBRElement(HTMLBRElementImpl *impl) :
HTMLElement(impl)
274 assignOther(other, ID_BR);
280 HTMLElement::operator = (other);
284 HTMLBRElement::~HTMLBRElement()
293 return ((ElementImpl *)impl)->getAttribute(ATTR_CLEAR);
299 ((ElementImpl *)impl)->setAttribute(ATTR_CLEAR, value);
313 HTMLFontElement::HTMLFontElement(HTMLFontElementImpl *impl) :
HTMLElement(impl)
319 assignOther(other, ID_FONT);
325 HTMLElement::operator = (other);
329 HTMLFontElement::~HTMLFontElement()
338 return ((ElementImpl *)impl)->getAttribute(ATTR_COLOR);
344 ((ElementImpl *)impl)->setAttribute(ATTR_COLOR, value);
353 return ((ElementImpl *)impl)->getAttribute(ATTR_FACE);
359 ((ElementImpl *)impl)->setAttribute(ATTR_FACE, value);
368 return ((ElementImpl *)impl)->getAttribute(ATTR_SIZE);
374 ((ElementImpl *)impl)->setAttribute(ATTR_SIZE, value);
388 HTMLModElement::HTMLModElement(HTMLElementImpl *_impl)
391 if (_impl && (_impl->id() == ID_INS || _impl->id() == ID_DEL)) {
411 Node::operator = (other);
419 HTMLElement::operator = (other);
423 HTMLModElement::~HTMLModElement()
432 return ((ElementImpl *)impl)->getAttribute(ATTR_CITE);
438 ((ElementImpl *)impl)->setAttribute(ATTR_CITE, value);
447 return ((ElementImpl *)impl)->getAttribute(ATTR_DATETIME);
453 ((ElementImpl *)impl)->setAttribute(ATTR_DATETIME, value);
459 HTMLQuoteElement::HTMLQuoteElement() :
HTMLElement()
467 HTMLQuoteElement::HTMLQuoteElement(HTMLGenericElementImpl *_impl)
470 if (_impl && _impl->id() == ID_Q) {
482 assignOther(other, ID_Q);
488 HTMLElement::operator = (other);
492 HTMLQuoteElement::~HTMLQuoteElement()
501 return ((ElementImpl *)impl)->getAttribute(ATTR_CITE);
507 ((ElementImpl *)impl)->setAttribute(ATTR_CITE, value);