24 #include "dom/html_misc.h"
25 #include "html/html_miscimpl.h"
26 #include "misc/htmlhashes.h"
30 HTMLBaseFontElement::HTMLBaseFontElement() :
HTMLElement()
38 HTMLBaseFontElement::HTMLBaseFontElement(HTMLBaseFontElementImpl *impl) :
HTMLElement(impl)
44 assignOther( other, ID_BASEFONT );
50 HTMLElement::operator = (other);
54 HTMLBaseFontElement::~HTMLBaseFontElement()
61 return ((ElementImpl *)impl)->getAttribute(ATTR_COLOR);
66 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_COLOR, value);
72 return ((ElementImpl *)impl)->getAttribute(ATTR_FACE);
77 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_FACE, value);
83 return ((ElementImpl *)impl)->getAttribute(ATTR_SIZE);
88 if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_SIZE, value);
94 return ((ElementImpl *)impl)->getAttribute(ATTR_SIZE).toInt();
101 DOMString value( TQString::number( _value ) );
102 ((ElementImpl *)impl)->setAttribute(ATTR_SIZE, value);
109 HTMLCollection::HTMLCollection()
117 if(impl) impl->ref();
120 HTMLCollection::HTMLCollection(NodeImpl *base,
int type)
122 impl =
new HTMLCollectionImpl(base, type);
128 if(impl != other.impl) {
129 if(impl) impl->deref();
131 if(impl) impl->ref();
136 HTMLCollection::~HTMLCollection()
138 if(impl) impl->deref();
144 return ((HTMLCollectionImpl *)impl)->length();
150 return ((HTMLCollectionImpl *)impl)->item( index );
156 return ((HTMLCollectionImpl *)impl)->namedItem( name );
159 Node HTMLCollection::base()
const
164 return static_cast<HTMLCollectionImpl*
>( impl )->m_refNode;
167 Node HTMLCollection::firstItem()
const
171 return static_cast<HTMLCollectionImpl*
>( impl )->firstItem();
174 Node HTMLCollection::nextItem()
const
178 return static_cast<HTMLCollectionImpl*
>( impl )->nextItem();
181 Node HTMLCollection::nextNamedItem(
const DOMString &name )
const
185 return static_cast<HTMLCollectionImpl*
>( impl )->nextNamedItem( name );
188 HTMLCollectionImpl *HTMLCollection::handle()
const
193 bool HTMLCollection::isNull()
const
201 HTMLFormCollection::HTMLFormCollection(NodeImpl *base)
204 impl =
new HTMLFormCollectionImpl(base);
210 HTMLMappedNameCollection::HTMLMappedNameCollection(NodeImpl *base,
int type,
const DOMString &name )
212 impl =
new HTMLMappedNameCollectionImpl(base, type, name);