summaryrefslogtreecommitdiffstats
path: root/src/xmlgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-08-04 20:55:47 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-08-04 20:55:47 (GMT)
commitfd9cdfaba64f942f4eb481ac9feb1564115f9f92 (patch)
tree8e54169bc0b7214246ec4c1dfe3f58228ef12928 /src/xmlgen.cpp
parent9c8ea2e90bb38ba21675799fe364fc7a546b020c (diff)
downloadDoxygen-fd9cdfaba64f942f4eb481ac9feb1564115f9f92.zip
Doxygen-fd9cdfaba64f942f4eb481ac9feb1564115f9f92.tar.gz
Doxygen-fd9cdfaba64f942f4eb481ac9feb1564115f9f92.tar.bz2
Release-1.2.17-20020804
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r--src/xmlgen.cpp28
1 files changed, 24 insertions, 4 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index 8d8f78f..0eb94d2 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -544,21 +544,33 @@ class XMLGenerator : public OutputDocInterface
docify(url);
m_t << "</email>";
}
- void startSection(const char *id,const char *,bool subsection)
+ void startSection(const char *id,const char *,SectionInfo::SectionType type)
{
XML_DB(("(startSection)\n"));
endParMode();
m_t << "<sect";
- if (subsection) m_t << "2"; else m_t << "1";
+ switch(type)
+ {
+ case SectionInfo::Page: m_t << "1"; break;
+ case SectionInfo::Section: m_t << "2"; break;
+ case SectionInfo::Subsection: m_t << "3"; break;
+ default: ASSERT(0); break;
+ }
m_t << " id=\"" << id << "\">";
startNestedPar();
m_inParStack.top() = TRUE;
}
- void endSection(const char *,bool subsection)
+ void endSection(const char *,SectionInfo::SectionType type)
{
XML_DB(("(endSection)\n"));
m_t << "</sect";
- if (subsection) m_t << "2"; else m_t << "1";
+ switch(type)
+ {
+ case SectionInfo::Page: m_t << "1"; break;
+ case SectionInfo::Section: m_t << "2"; break;
+ case SectionInfo::Subsection: m_t << "3"; break;
+ default: ASSERT(0); break;
+ }
m_t << ">";
m_inParStack.top() = FALSE;
endNestedPar();
@@ -875,6 +887,14 @@ class XMLGenerator : public OutputDocInterface
XML_DB(("(endLatexOnly)\n"));
m_t << "</latexonly>" << endl;
}
+ void startSectionRefList()
+ {
+ XML_DB(("(startSectionRefList)\n"));
+ }
+ void endSectionRefList()
+ {
+ XML_DB(("(endSectionRefList)\n"));
+ }
// Generator specific functions