diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2011-12-03 18:14:19 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2011-12-03 18:14:19 (GMT) |
commit | e48f695c385ccc356e124ac3a851a6228f4f5b84 (patch) | |
tree | 018e8f5de990aedc2ea2b98065d07bc92253a8f1 /src/docparser.h | |
parent | 645cc7c6f75bdad11ceb129d135b5b01f34c3212 (diff) | |
download | Doxygen-e48f695c385ccc356e124ac3a851a6228f4f5b84.zip Doxygen-e48f695c385ccc356e124ac3a851a6228f4f5b84.tar.gz Doxygen-e48f695c385ccc356e124ac3a851a6228f4f5b84.tar.bz2 |
Release-1.7.6
Diffstat (limited to 'src/docparser.h')
-rw-r--r-- | src/docparser.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/docparser.h b/src/docparser.h index f679bfb..7c0c6a9 100644 --- a/src/docparser.h +++ b/src/docparser.h @@ -590,14 +590,16 @@ class DocImage : public CompAccept<DocImage>, public DocNode { public: enum Type { Html, Latex, Rtf }; - DocImage(DocNode *parent,const HtmlAttribList &attribs,const QCString &name,Type t); - Kind kind() const { return Kind_Image; } - Type type() const { return m_type; } + DocImage(DocNode *parent,const HtmlAttribList &attribs, + const QCString &name,Type t,const QCString &url=QCString()); + Kind kind() const { return Kind_Image; } + Type type() const { return m_type; } QCString name() const { return m_name; } - bool hasCaption() const { return !m_children.isEmpty(); } + bool hasCaption() const { return !m_children.isEmpty(); } QCString width() const { return m_width; } QCString height() const { return m_height; } QCString relPath() const { return m_relPath; } + QCString url() const { return m_url; } const HtmlAttribList &attribs() const { return m_attribs; } void accept(DocVisitor *v) { CompAccept<DocImage>::accept(this,v); } void parse(); @@ -609,6 +611,7 @@ class DocImage : public CompAccept<DocImage>, public DocNode QCString m_width; QCString m_height; QCString m_relPath; + QCString m_url; }; /*! @brief Node representing a dot file */ @@ -747,17 +750,20 @@ class DocInternalRef : public CompAccept<DocInternalRef>, public DocNode class DocHRef : public CompAccept<DocHRef>, public DocNode { public: - DocHRef(DocNode *parent,const HtmlAttribList &attribs,const QCString &url) : - m_attribs(attribs), m_url(url) { m_parent = parent; } + DocHRef(DocNode *parent,const HtmlAttribList &attribs,const QCString &url, + const QCString &relPath) : + m_attribs(attribs), m_url(url), m_relPath(relPath) { m_parent = parent; } int parse(); QCString url() const { return m_url; } - Kind kind() const { return Kind_HRef; } - void accept(DocVisitor *v) { CompAccept<DocHRef>::accept(this,v); } + QCString relPath() const { return m_relPath; } + Kind kind() const { return Kind_HRef; } + void accept(DocVisitor *v) { CompAccept<DocHRef>::accept(this,v); } const HtmlAttribList &attribs() const { return m_attribs; } private: HtmlAttribList m_attribs; QCString m_url; + QCString m_relPath; }; /*! @brief Node Html heading */ |