KHtml
24 #include "dom/html_misc.h"
25 #include "html/html_miscimpl.h"
29 HTMLBaseFontElement::HTMLBaseFontElement() :
HTMLElement()
37 HTMLBaseFontElement::HTMLBaseFontElement(HTMLBaseFontElementImpl *impl) :
HTMLElement(impl)
43 assignOther(other, ID_BASEFONT);
49 HTMLElement::operator = (other);
53 HTMLBaseFontElement::~HTMLBaseFontElement()
62 return ((ElementImpl *)impl)->getAttribute(ATTR_COLOR);
68 ((ElementImpl *)impl)->setAttribute(ATTR_COLOR, value);
77 return ((ElementImpl *)impl)->getAttribute(ATTR_FACE);
83 ((ElementImpl *)impl)->setAttribute(ATTR_FACE, value);
87 #ifndef KHTML_NO_DEPRECATED
93 return ((ElementImpl *)impl)->getAttribute(ATTR_SIZE);
97 #ifndef KHTML_NO_DEPRECATED
101 ((ElementImpl *)impl)->setAttribute(ATTR_SIZE, value);
111 return ((ElementImpl *)impl)->getAttribute(ATTR_SIZE).toInt();
118 ((ElementImpl *)impl)->setAttribute(ATTR_SIZE, value);
124 HTMLCollection::HTMLCollection()
129 HTMLCollection::HTMLCollection(HTMLCollectionImpl *_impl): impl(_impl)
144 HTMLCollection::HTMLCollection(NodeImpl *base,
int type)
146 impl =
new HTMLCollectionImpl(
base, type);
152 if (impl != other.impl) {
164 HTMLCollection::~HTMLCollection()
176 return ((HTMLCollectionImpl *)impl)->length();
184 return ((HTMLCollectionImpl *)impl)->item(index);
192 return ((HTMLCollectionImpl *)impl)->namedItem(name);
201 return static_cast<HTMLCollectionImpl *
>(impl)->m_refNode;
204 Node HTMLCollection::firstItem()
const
209 return static_cast<HTMLCollectionImpl *
>(impl)->firstItem();
212 Node HTMLCollection::nextItem()
const
217 return static_cast<HTMLCollectionImpl *
>(impl)->nextItem();
220 Node HTMLCollection::nextNamedItem(
const DOMString &name)
const
225 return static_cast<HTMLCollectionImpl *
>(impl)->nextNamedItem(name);
228 HTMLCollectionImpl *HTMLCollection::handle()
const
233 bool HTMLCollection::isNull()
const
235 return (impl ==
nullptr);
240 HTMLFormCollection::HTMLFormCollection(NodeImpl *base)
243 impl =
new HTMLFormCollectionImpl(
base);
QString number(int n, int base)
DOMString color() const
Font color.
All HTML element interfaces derive from this class.
This library provides a full-featured HTML parser and widget.
An HTMLCollection is a list of nodes.
void setSize(long)
see size
void setColor(const DOMString &)
see color
Node namedItem(const DOMString &name) const
This method retrieves a Node using a name.
This class implements the basic string we use in the DOM.
DOMString face() const
Font face identifier.
unsigned long length() const
This attribute specifies the length or size of the list.
The Node interface is the primary datatype for the entire Document Object Model.
KHTML_DEPRECATED DOMString size() const
Node item(unsigned long index) const
This method retrieves a node specified by ordinal index.
void setFace(const DOMString &)
see face
long getSize() const
Computed Font size.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:55:32 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.