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);
void setFace(const DOMString &)
see face
long getSize() const
Computed Font size.
The Node interface is the primary datatype for the entire Document Object Model.
void setColor(const DOMString &)
see color
DOMString size() const TDE_DEPRECATED
void setSize(long)
see size
An HTMLCollection is a list of nodes.
This class implements the basic string we use in the DOM.
DOMString face() const
Font face identifier.
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...
DOMString type() const
Bullet style.
Node item(unsigned long index) const
This method retrieves a node specified by ordinal index.
Node namedItem(const DOMString &name) const
This method retrieves a Node using a name.
All HTML element interfaces derive from this class.
unsigned long length() const
This attribute specifies the length or size of the list.
DOMString color() const
Font color.