24#include "dom/html_list.h"
25#include "html/html_listimpl.h"
26#include "misc/htmlhashes.h"
38HTMLDListElement::HTMLDListElement(HTMLDListElementImpl *impl) :
HTMLElement(impl)
44 assignOther( other, ID_DL );
50 HTMLElement::operator = (other);
54HTMLDListElement::~HTMLDListElement()
61 return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
71 ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
77HTMLDirectoryElement::HTMLDirectoryElement() :
HTMLElement()
85HTMLDirectoryElement::HTMLDirectoryElement(HTMLDirectoryElementImpl *impl) :
HTMLElement(impl)
91 assignOther( other, ID_DIR );
97 HTMLElement::operator = (other);
101HTMLDirectoryElement::~HTMLDirectoryElement()
108 return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
118 ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
132HTMLLIElement::HTMLLIElement(HTMLLIElementImpl *impl) :
HTMLElement(impl)
138 assignOther( other, ID_LI );
144 HTMLElement::operator = (other);
148HTMLLIElement::~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);
187HTMLMenuElement::HTMLMenuElement(HTMLMenuElementImpl *impl) :
HTMLElement(impl)
193 assignOther( other, ID_MENU );
199 HTMLElement::operator = (other);
203HTMLMenuElement::~HTMLMenuElement()
210 return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
220 ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
226HTMLOListElement::HTMLOListElement() :
HTMLElement()
234HTMLOListElement::HTMLOListElement(HTMLOListElementImpl *impl) :
HTMLElement(impl)
240 assignOther( other, ID_OL );
246 HTMLElement::operator = (other);
250HTMLOListElement::~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);
299HTMLUListElement::HTMLUListElement() :
HTMLElement()
307HTMLUListElement::HTMLUListElement(HTMLUListElementImpl *impl) :
HTMLElement(impl)
313 assignOther( other, ID_UL );
319 HTMLElement::operator = (other);
323HTMLUListElement::~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);
This class implements the basic string we use in the DOM.
void setCompact(bool)
see compact
bool compact() const
Reduce spacing between list items.
void setCompact(bool)
see compact
bool compact() const
Reduce spacing between list items.
All HTML element interfaces derive from this class.
long value() const
Reset sequence number when used in OL See the value attribute definition in HTML 4....
void setType(const DOMString &)
see type
DOMString type() const
List item bullet style.
void setValue(long)
see value
DOMString type() const
Numbering style.
void setStart(long)
see start
void setType(const DOMString &)
see type
bool compact() const
Reduce spacing between list items.
void setCompact(bool)
see compact
long start() const
Starting sequence number.
DOMString type() const
Bullet style.
void setType(const DOMString &)
see type
void setCompact(bool)
see compact
bool compact() const
Reduce spacing between list items.
The Node interface is the primary datatype for the entire Document Object Model.
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...