diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-08-04 20:55:47 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-08-04 20:55:47 (GMT) |
commit | fd9cdfaba64f942f4eb481ac9feb1564115f9f92 (patch) | |
tree | 8e54169bc0b7214246ec4c1dfe3f58228ef12928 /src/htmlgen.cpp | |
parent | 9c8ea2e90bb38ba21675799fe364fc7a546b020c (diff) | |
download | Doxygen-fd9cdfaba64f942f4eb481ac9feb1564115f9f92.zip Doxygen-fd9cdfaba64f942f4eb481ac9feb1564115f9f92.tar.gz Doxygen-fd9cdfaba64f942f4eb481ac9feb1564115f9f92.tar.bz2 |
Release-1.2.17-20020804
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r-- | src/htmlgen.cpp | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index cdacaaa..a8291fc 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -517,16 +517,28 @@ void HtmlGenerator::endGroupHeader() t << "</h2>" << endl; } -void HtmlGenerator::startSection(const char *lab,const char *,bool sub) +void HtmlGenerator::startSection(const char *lab,const char *,SectionInfo::SectionType type) { - if (sub) t << "<h3>"; else t << "<h2>"; + switch(type) + { + case SectionInfo::Page: t << "<h1>"; break; + case SectionInfo::Section: t << "<h2>"; break; + case SectionInfo::Subsection: t << "<h3>"; break; + default: ASSERT(0); break; + } t << "<a name=\"" << lab << "\">"; } -void HtmlGenerator::endSection(const char *,bool sub) +void HtmlGenerator::endSection(const char *,SectionInfo::SectionType type) { t << "</a>" << endl; - if (sub) t << "</h3>"; else t << "</h2>"; + switch(type) + { + case SectionInfo::Page: t << "</h1>"; break; + case SectionInfo::Section: t << "</h2>"; break; + case SectionInfo::Subsection: t << "</h3>"; break; + default: ASSERT(0); break; + } } void HtmlGenerator::writeSectionRef(const char *ref,const char *name, @@ -558,7 +570,7 @@ void HtmlGenerator::writeSectionRefItem(const char *name,const char *lab, { QCString refName=name; if (refName.right(htmlFileExtensionLength)!=htmlFileExtension) refName+=htmlFileExtension; - t << "<a href=\"" << refName << "#" << lab << "\">"; + t << "<li><a href=\"" << refName << "#" << lab << "\">"; docify(title); t << "</a>"; } @@ -1205,4 +1217,15 @@ void HtmlGenerator::endParamList() t << "</dl>"; } +void HtmlGenerator::startSectionRefList() +{ + t << "<multicol cols=3>" << endl; + t << "<ul>" << endl; +} + +void HtmlGenerator::endSectionRefList() +{ + t << "</ul>" << endl; + t << "</multicol>" << endl; +} |