Mercurial > dillo_port1.3
annotate src/doctree.hh @ 562:145b8a4d65b3
tag -> element
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> |
---|---|
date | Wed, 12 Nov 2008 16:17:35 +0100 |
parents | be6295157b10 |
children | df8153796f48 |
rev | line source |
---|---|
501 | 1 #ifndef __DOCTREE_HH__ |
2 #define __DOCTREE_HH__ | |
3 | |
4 class DoctreeNode { | |
5 public: | |
503
00b31843839b
implement various apply() methods
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
501
diff
changeset
|
6 int depth; |
562 | 7 int element; |
501 | 8 const char *klass; |
558
be6295157b10
adjust pseudo class handling
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
536
diff
changeset
|
9 const char *pseudo; |
501 | 10 const char *id; |
11 }; | |
12 | |
13 class Doctree { | |
14 public: | |
503
00b31843839b
implement various apply() methods
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
501
diff
changeset
|
15 virtual ~Doctree () {}; |
501 | 16 virtual const DoctreeNode *top () = 0; |
17 virtual const DoctreeNode *parent (const DoctreeNode *node) = 0; | |
18 }; | |
19 | |
20 #endif |