diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-09-15 19:55:15 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-09-15 19:55:15 (GMT) |
commit | 8d986f5d3a2a40e40d2c9f584f921ed4cc4dd105 (patch) | |
tree | 80bc5b8e1fe89bbf6bd2fbbf2c640eb73313f626 /src/docparser.h | |
parent | 0503d26ad7375502459a05a3bb6ff67f1223a77f (diff) | |
download | Doxygen-8d986f5d3a2a40e40d2c9f584f921ed4cc4dd105.zip Doxygen-8d986f5d3a2a40e40d2c9f584f921ed4cc4dd105.tar.gz Doxygen-8d986f5d3a2a40e40d2c9f584f921ed4cc4dd105.tar.bz2 |
Release-1.2.17-20020915
Diffstat (limited to 'src/docparser.h')
-rw-r--r-- | src/docparser.h | 63 |
1 files changed, 40 insertions, 23 deletions
diff --git a/src/docparser.h b/src/docparser.h index ccb06e5..e5a76f3 100644 --- a/src/docparser.h +++ b/src/docparser.h @@ -27,6 +27,7 @@ #include "doctokenizer.h" class DocNode; +class MemberDef; //--------------------------------------------------------------------------- @@ -40,7 +41,8 @@ class DocNode; * pointer is handed over to the caller. */ DocNode *validatingParseDoc(const char *fileName,int startLine, - const char *context, const char *input); + const char *context, MemberDef *md, + const char *input); //--------------------------------------------------------------------------- @@ -380,9 +382,10 @@ class DocFormula : public DocNode { public: DocFormula(DocNode *parent,int id); - Kind kind() const { return Kind_Formula; } - QCString name() const { return m_name; } - QCString text() const { return m_text; } + Kind kind() const { return Kind_Formula; } + QCString name() const { return m_name; } + QCString text() const { return m_text; } + int id() const { return m_id; } DocNode *parent() const { return m_parent; } void accept(DocVisitor *v) { v->visit(this); } @@ -390,39 +393,42 @@ class DocFormula : public DocNode DocNode *m_parent; QCString m_name; QCString m_text; + int m_id; }; -//----------------------------------------------------------------------- - -/*! @brief Node representing a entry in the index. */ -class DocCopy : public CompAccept<DocCopy>, public DocNode +/*! @brief Node representing an entry in the index. */ +class DocIndexEntry : public DocNode { public: - DocCopy(DocNode *parent,const QCString &link) - : m_parent(parent), m_link(link) { } + DocIndexEntry(DocNode *parent) : m_parent(parent) { } Kind kind() const { return Kind_IndexEntry; } - QCString link() const { return m_link; } - void parse(); + int parse(); DocNode *parent() const { return m_parent; } - void accept(DocVisitor *v) { CompAccept<DocCopy>::accept(this,v); } + void accept(DocVisitor *v) { v->visit(this); } + QCString entry() { return m_entry; } private: DocNode *m_parent; - QCString m_link; + QCString m_entry; }; +//----------------------------------------------------------------------- + /*! @brief Node representing a entry in the index. */ -class DocIndexEntry : public CompAccept<DocIndexEntry>, public DocNode +class DocCopy : public CompAccept<DocCopy>, public DocNode { public: - DocIndexEntry(DocNode *parent) : m_parent(parent) { } + DocCopy(DocNode *parent,const QCString &link) + : m_parent(parent), m_link(link) { } Kind kind() const { return Kind_IndexEntry; } - int parse(); + QCString link() const { return m_link; } + void parse(); DocNode *parent() const { return m_parent; } - void accept(DocVisitor *v) { CompAccept<DocIndexEntry>::accept(this,v); } + void accept(DocVisitor *v) { CompAccept<DocCopy>::accept(this,v); } private: DocNode *m_parent; + QCString m_link; }; /*! @brief Node representing an auto List */ @@ -866,7 +872,8 @@ class DocPara : public CompAccept<DocPara>, public DocNode class DocParamList : public DocNode { public: - DocParamList(DocNode *parent) : m_parent(parent) + DocParamList(DocNode *parent,DocParamSect::Type t) + : m_parent(parent) , m_type(t) { m_paragraph=new DocPara(this); } virtual ~DocParamList() { delete m_paragraph; } @@ -874,6 +881,7 @@ class DocParamList : public DocNode Kind kind() const { return Kind_ParamList; } DocNode *parent() const { return m_parent; } const QStrList ¶meters() { return m_params; } + DocParamSect::Type type() const { return m_type; } void accept(DocVisitor *v) { v->visitPre(this); @@ -882,9 +890,10 @@ class DocParamList : public DocNode } private: - DocNode *m_parent; - DocPara *m_paragraph; - QStrList m_params; + DocNode *m_parent; + DocPara *m_paragraph; + QStrList m_params; + DocParamSect::Type m_type; }; /*! @brief Node representing an item of a auto list */ @@ -1049,7 +1058,15 @@ class DocHtmlTable : public CompAccept<DocHtmlTable>, public DocNode } return cols; } - void accept(DocVisitor *v) { CompAccept<DocHtmlTable>::accept(this,v); } + void accept(DocVisitor *v) + { + v->visitPre(this); + QListIterator<DocNode> cli(m_children); + DocNode *n; + for (cli.toFirst();(n=cli.current());++cli) n->accept(v); + if (m_caption) m_caption->accept(v); + v->visitPost(this); + } private: DocNode * m_parent; |