25 #include "dom/html_block.h"
26 #include "dom/html_misc.h"
27 #include "html/html_blockimpl.h"
28 #include "html/html_miscimpl.h"
32 HTMLBlockquoteElement::HTMLBlockquoteElement()
42 HTMLBlockquoteElement::HTMLBlockquoteElement(HTMLElementImpl *impl)
49 assignOther(other, ID_BLOCKQUOTE);
55 HTMLElement::operator = (other);
59 HTMLBlockquoteElement::~HTMLBlockquoteElement()
68 return ((ElementImpl *)impl)->getAttribute(ATTR_CITE);
74 ((ElementImpl *)impl)->setAttribute(ATTR_CITE, value);
80 HTMLDivElement::HTMLDivElement()
90 HTMLDivElement::HTMLDivElement(HTMLDivElementImpl *impl)
97 assignOther(other, ID_DIV);
103 HTMLElement::operator = (other);
107 HTMLDivElement::~HTMLDivElement()
116 return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
122 ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
128 HTMLHRElement::HTMLHRElement()
138 HTMLHRElement::HTMLHRElement(HTMLHRElementImpl *impl)
145 assignOther(other, ID_HR);
151 HTMLElement::operator = (other);
155 HTMLHRElement::~HTMLHRElement()
164 return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
170 ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
179 return !((ElementImpl *)impl)->getAttribute(ATTR_NOSHADE).isNull();
189 ((ElementImpl *)impl)->setAttribute(ATTR_NOSHADE, str);
198 return ((ElementImpl *)impl)->getAttribute(ATTR_SIZE);
204 ((ElementImpl *)impl)->setAttribute(ATTR_SIZE, value);
213 return ((ElementImpl *)impl)->getAttribute(ATTR_WIDTH);
219 ((ElementImpl *)impl)->setAttribute(ATTR_WIDTH, value);
225 HTMLHeadingElement::HTMLHeadingElement()
235 HTMLHeadingElement::HTMLHeadingElement(HTMLElementImpl *impl)
253 Node::operator = (other);
260 HTMLElement::operator = (other);
264 HTMLHeadingElement::~HTMLHeadingElement()
273 return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
279 ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
285 HTMLParagraphElement::HTMLParagraphElement() :
HTMLElement()
294 HTMLParagraphElement::HTMLParagraphElement(HTMLElementImpl *impl)
301 assignOther(other, ID_P);
307 HTMLElement::operator = (other);
311 HTMLParagraphElement::~HTMLParagraphElement()
320 return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);
326 ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);
341 HTMLPreElement::HTMLPreElement(HTMLPreElementImpl *impl)
348 assignOther(other, (impl ? impl->id() : ID_PRE));
354 HTMLElement::operator = (other);
358 HTMLPreElement::~HTMLPreElement()
367 DOMString w = ((ElementImpl *)impl)->getAttribute(ATTR_WIDTH);
380 ((ElementImpl *)impl)->setAttribute(ATTR_WIDTH, value);
385 HTMLLayerElement::HTMLLayerElement() :
HTMLElement()
394 HTMLLayerElement::HTMLLayerElement(HTMLLayerElementImpl *impl)
401 assignOther(other, ID_LAYER);
407 HTMLElement::operator = (other);
411 HTMLLayerElement::~HTMLLayerElement()
420 DOMString t = ((ElementImpl *)impl)->getAttribute(ATTR_TOP);
433 ((ElementImpl *)impl)->setAttribute(ATTR_TOP, value);
441 DOMString l = ((ElementImpl *)impl)->getAttribute(ATTR_LEFT);
454 ((ElementImpl *)impl)->setAttribute(ATTR_LEFT, value);
462 return ((ElementImpl *)impl)->getAttribute(ATTR_VISIBILITY);
468 ((ElementImpl *)impl)->setAttribute(ATTR_VISIBILITY, value);
477 return ((ElementImpl *)impl)->getAttribute(ATTR_BGCOLOR);
483 ((ElementImpl *)impl)->setAttribute(ATTR_BGCOLOR, value);