24 #include "dom/html_list.h"
25 #include "html/html_listimpl.h"
26 #include "misc/htmlhashes.h"
30 HTMLDListElement::HTMLDListElement() :
HTMLElement()
38 HTMLDListElement::HTMLDListElement(HTMLDListElementImpl *impl) :
HTMLElement(impl)
44 assignOther( other, ID_DL );
50 HTMLElement::operator = (other);
54 HTMLDListElement::~HTMLDListElement()
61 return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
71 ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
77 HTMLDirectoryElement::HTMLDirectoryElement() :
HTMLElement()
85 HTMLDirectoryElement::HTMLDirectoryElement(HTMLDirectoryElementImpl *impl) :
HTMLElement(impl)
91 assignOther( other, ID_DIR );
97 HTMLElement::operator = (other);
101 HTMLDirectoryElement::~HTMLDirectoryElement()
108 return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
118 ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
132 HTMLLIElement::HTMLLIElement(HTMLLIElementImpl *impl) :
HTMLElement(impl)
138 assignOther( other, ID_LI );
144 HTMLElement::operator = (other);
148 HTMLLIElement::~HTMLLIElement()
155 return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
160 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_TYPE,
value);
166 return ((ElementImpl *)impl)->getAttribute(ATTR_VALUE).toInt();
173 ((ElementImpl *)impl)->setAttribute(ATTR_VALUE,
value);
187 HTMLMenuElement::HTMLMenuElement(HTMLMenuElementImpl *impl) :
HTMLElement(impl)
193 assignOther( other, ID_MENU );
199 HTMLElement::operator = (other);
203 HTMLMenuElement::~HTMLMenuElement()
210 return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
220 ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
226 HTMLOListElement::HTMLOListElement() :
HTMLElement()
234 HTMLOListElement::HTMLOListElement(HTMLOListElementImpl *impl) :
HTMLElement(impl)
240 assignOther( other, ID_OL );
246 HTMLElement::operator = (other);
250 HTMLOListElement::~HTMLOListElement()
257 return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
267 ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
274 return ((ElementImpl *)impl)->getAttribute(ATTR_START).toInt();
281 DOMString value(TQString::number(_start));
282 ((ElementImpl *)impl)->setAttribute(ATTR_START,value);
289 return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
294 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_TYPE, value);
299 HTMLUListElement::HTMLUListElement() :
HTMLElement()
307 HTMLUListElement::HTMLUListElement(HTMLUListElementImpl *impl) :
HTMLElement(impl)
313 assignOther( other, ID_UL );
319 HTMLElement::operator = (other);
323 HTMLUListElement::~HTMLUListElement()
330 return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
340 ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
347 return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
352 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_TYPE, value);