summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-08-04 20:55:47 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-08-04 20:55:47 (GMT)
commit2e2f09d60ce079a1fe283e47bcf023de01f051c5 (patch)
tree8e54169bc0b7214246ec4c1dfe3f58228ef12928 /src/htmlgen.cpp
parentadac91e9a353095c3bae4b580d27b7cfd8617493 (diff)
downloadDoxygen-2e2f09d60ce079a1fe283e47bcf023de01f051c5.zip
Doxygen-2e2f09d60ce079a1fe283e47bcf023de01f051c5.tar.gz
Doxygen-2e2f09d60ce079a1fe283e47bcf023de01f051c5.tar.bz2
Release-1.2.17-20020804
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r--src/htmlgen.cpp33
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;
+}