27 #ifndef _dom2_traversal_h_
28 #define _dom2_traversal_h_
29 #include <dom/dom_node.h>
30 #include <dom/dom_misc.h>
32 #include <tdelibs_export.h>
38 class NodeIteratorImpl;
41 class CustomNodeFilter;
42 class CustomNodeFilterImpl;
62 friend class NodeIteratorImpl;
84 unsigned long whatToShow();
107 bool expandEntityReferences();
152 NodeIteratorImpl *handle()
const;
156 NodeIteratorImpl *impl;
187 friend class NodeIteratorImpl;
189 friend class TreeWalkerImpl;
190 friend class NodeFilterImpl;
218 SHOW_ALL = 0xFFFFFFFF,
219 SHOW_ELEMENT = 0x00000001,
220 SHOW_ATTRIBUTE = 0x00000002,
221 SHOW_TEXT = 0x00000004,
222 SHOW_CDATA_SECTION = 0x00000008,
223 SHOW_ENTITY_REFERENCE = 0x00000010,
224 SHOW_ENTITY = 0x00000020,
225 SHOW_PROCESSING_INSTRUCTION = 0x00000040,
226 SHOW_COMMENT = 0x00000080,
227 SHOW_DOCUMENT = 0x00000100,
228 SHOW_DOCUMENT_TYPE = 0x00000200,
229 SHOW_DOCUMENT_FRAGMENT = 0x00000400,
230 SHOW_NOTATION = 0x00000800
247 virtual short acceptNode (
const Node &n);
253 virtual NodeFilterImpl *handle()
const;
254 virtual bool isNull()
const;
261 NodeFilterImpl *impl;
299 virtual short acceptNode (
const Node &n);
300 virtual bool isNull();
310 virtual DOMString customNodeFilterType();
317 CustomNodeFilterImpl *impl;
342 friend class TreeWalkerImpl;
364 unsigned long whatToShow();
385 bool expandEntityReferences();
405 void setCurrentNode(
const Node &_currentNode);
469 Node previousSibling();
523 TreeWalkerImpl *handle()
const;
528 TreeWalkerImpl *impl;