diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-06-15 18:25:48 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-06-15 18:25:48 (GMT) |
commit | 80108293f1f4808c02d28d2d1620563437433a56 (patch) | |
tree | 567da63962a903f646bb092a950026c75a8369d8 /src/docparser.cpp | |
parent | dae59054d3387840f0f4b4bf8f237fee0591a5b1 (diff) | |
download | Doxygen-80108293f1f4808c02d28d2d1620563437433a56.zip Doxygen-80108293f1f4808c02d28d2d1620563437433a56.tar.gz Doxygen-80108293f1f4808c02d28d2d1620563437433a56.tar.bz2 |
Release-1.3.2
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r-- | src/docparser.cpp | 43 |
1 files changed, 13 insertions, 30 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index f69a0c9..7d26e04 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -3435,6 +3435,13 @@ void DocPara::handleSection(const QString &cmdName) doctokenizerYYsetStatePara(); } +int DocPara::handleHtmlHeader(const HtmlAttribList &tagHtmlAttribs,int level) +{ + DocHtmlHeader *header = new DocHtmlHeader(this,tagHtmlAttribs,level); + m_children.append(header); + int retval = header->parse(); + return (retval==RetVal_OK) ? TK_NEWPARA : retval; +} int DocPara::handleCommand(const QString &cmdName) { @@ -3930,46 +3937,22 @@ int DocPara::handleHtmlStartTag(const QString &tagName,const HtmlAttribList &tag } break; case HTML_H1: - { - DocHtmlHeader *header = new DocHtmlHeader(this,tagHtmlAttribs,1); - m_children.append(header); - retval = header->parse(); - } + retval=handleHtmlHeader(tagHtmlAttribs,1); break; case HTML_H2: - { - DocHtmlHeader *header = new DocHtmlHeader(this,tagHtmlAttribs,2); - m_children.append(header); - retval = header->parse(); - } + retval=handleHtmlHeader(tagHtmlAttribs,2); break; case HTML_H3: - { - DocHtmlHeader *header = new DocHtmlHeader(this,tagHtmlAttribs,3); - m_children.append(header); - retval = header->parse(); - } + retval=handleHtmlHeader(tagHtmlAttribs,3); break; case HTML_H4: - { - DocHtmlHeader *header = new DocHtmlHeader(this,tagHtmlAttribs,4); - m_children.append(header); - retval = header->parse(); - } + retval=handleHtmlHeader(tagHtmlAttribs,4); break; case HTML_H5: - { - DocHtmlHeader *header = new DocHtmlHeader(this,tagHtmlAttribs,5); - m_children.append(header); - retval = header->parse(); - } + retval=handleHtmlHeader(tagHtmlAttribs,5); break; case HTML_H6: - { - DocHtmlHeader *header = new DocHtmlHeader(this,tagHtmlAttribs,6); - m_children.append(header); - retval = header->parse(); - } + retval=handleHtmlHeader(tagHtmlAttribs,6); break; case HTML_IMG: { |