37#include <tdelibs_export.h>
50class NamedNodeMapImpl;
66class TDEHTML_EXPORT NamedNodeMap
70 NamedNodeMap(
const NamedNodeMap &other);
72 NamedNodeMap & operator = (
const NamedNodeMap &other);
81 unsigned long length()
const;
158 Node
item (
unsigned long index )
const;
233 NamedNodeMapImpl *handle()
const {
return impl; }
234 bool isNull()
const {
return !impl; }
237 NamedNodeMap( NamedNodeMapImpl *i);
238 NamedNodeMapImpl *impl;
241 friend class DocumentType;
242 friend class NodeImpl;
274class TDEHTML_EXPORT Node
276 friend class NamedNodeMap;
277 friend class NodeList;
278 friend class HTMLCollection;
279 friend class StyleSheet;
283 Node(
const Node &other);
288 Node( NodeImpl *_impl);
290 Node & operator = (
const Node &other);
292 bool operator == (
const Node &other)
const;
294 bool operator != (
const Node &other)
const;
389 CDATA_SECTION_NODE = 4,
390 ENTITY_REFERENCE_NODE = 5,
392 PROCESSING_INSTRUCTION_NODE = 7,
395 DOCUMENT_TYPE_NODE = 10,
396 DOCUMENT_FRAGMENT_NODE = 11,
432 unsigned short nodeType()
const;
442 Node parentNode()
const;
464 Node firstChild()
const;
471 Node lastChild()
const;
478 Node previousSibling()
const;
485 Node nextSibling()
const;
538 Node insertBefore (
const Node &newChild,
const Node &refChild );
568 Node replaceChild (
const Node &newChild,
const Node &oldChild );
585 Node removeChild (
const Node &oldChild );
613 Node appendChild (
const Node &newChild );
623 bool hasChildNodes ( );
645 Node cloneNode (
bool deep );
683 bool isSupported(
const DOMString &feature,
738 void setPrefix(
const DOMString &prefix );
755 bool hasAttributes ( );
783 void setTextContent(
const DOMString &content)
const;
813 void addEventListener(
const DOMString &type,
815 const bool useCapture);
842 void removeEventListener(
const DOMString &type,
869 bool dispatchEvent(
const Event &evt);
878 TQ_UINT32 elementId()
const;
897 NodeImpl *handle()
const {
return impl; }
902 unsigned long index()
const;
903 TQString toHTML() TDE_DEPRECATED;
908 void getCursor(
int offset,
int &_x,
int &_y,
int &height) TDE_DEPRECATED;
931class TDEHTML_EXPORT NodeList
933 friend class Element;
935 friend class Document;
936 friend class HTMLDocument;
937 friend class KJS::HTMLDocument;
938 friend class KJS::Window;
942 NodeList(
const NodeList &other);
944 NodeList & operator = (
const NodeList &other);
953 unsigned long length()
const;
967 Node
item (
unsigned long index )
const;
973 NodeListImpl *handle()
const {
return impl; }
974 bool isNull()
const {
return !impl; }
977 NodeList(
const NodeListImpl *i);
This class implements the basic string we use in the DOM.
The Document interface represents the entire HTML or XML document.
Introduced in DOM Level 2.
Introduced in DOM Level 2.
Objects implementing the NamedNodeMap interface are used to represent collections of nodes that can b...
Node setNamedItem(const Node &arg)
Adds a node using its nodeName attribute.
Node getNamedItem(const DOMString &name) const
Retrieves a node specified by name.
unsigned long length() const
The number of nodes in the map.
Node getNamedItemNS(const DOMString &namespaceURI, const DOMString &localName) const
Introduced in DOM Level 2.
Node setNamedItemNS(const Node &arg)
Introduced in DOM Level 2.
Node removeNamedItemNS(const DOMString &namespaceURI, const DOMString &localName)
Introduced in DOM Level 2.
Node item(unsigned long index) const
Returns the index th item in the map.
Node removeNamedItem(const DOMString &name)
Removes a node specified by name.
The NodeList interface provides the abstraction of an ordered collection of nodes,...
unsigned long length() const
The number of nodes in the list.
Node item(unsigned long index) const
Returns the index th item in the collection.
The Node interface is the primary datatype for the entire Document Object Model.
NodeType
An integer indicating which type of node this is.
bool isNull() const
tests if this Node is 0.
The StyleSheet interface is the abstract base interface for any type of style sheet.
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...
unsigned long long DOMTimeStamp
A DOMTimeStamp represents a number of milliseconds.