diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-02-10 18:17:19 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-02-10 18:17:19 (GMT) |
commit | d1e917df5d2bb4125a22eba3c984640c099a7096 (patch) | |
tree | d1468ce96ea2cb67fa7825027a3f93a67bf4d9a6 /src/xmlgen.cpp | |
parent | 88c84f0affadf69d1813d1a971692a5097f8870a (diff) | |
download | Doxygen-d1e917df5d2bb4125a22eba3c984640c099a7096.zip Doxygen-d1e917df5d2bb4125a22eba3c984640c099a7096.tar.gz Doxygen-d1e917df5d2bb4125a22eba3c984640c099a7096.tar.bz2 |
Release-1.2.13-20020210
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r-- | src/xmlgen.cpp | 45 |
1 files changed, 42 insertions, 3 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp index ac9b230..5a4a9d3 100644 --- a/src/xmlgen.cpp +++ b/src/xmlgen.cpp @@ -182,13 +182,13 @@ class XMLGenerator : public OutputDocInterface if (!m_inParStack.isEmpty() && !m_inParStack.top()) { m_inParStack.top() = TRUE; - m_t << "<para>" << endl; + m_t << "<para>"; XML_DB(("start par at level=%d\n",m_inParStack.count())); } else if (m_inParStack.isEmpty()) { m_inParStack.push(TRUE); - m_t << "<para>" << endl; + m_t << "<para>"; XML_DB(("start par at level=%d\n",m_inParStack.count())); } } @@ -1271,11 +1271,49 @@ static void generateXMLSection(Definition *d,QTextStream &ti,QTextStream &t, t << " </sectiondef>" << endl; } +static void writeTemplateLists(Definition *d,QTextStream &t) +{ + if (d->definitionType()==Definition::TypeClass) + { + if (d->getOuterScope()) writeTemplateLists(d->getOuterScope(),t); + ClassDef *cd = (ClassDef *)d; + ArgumentList *al = cd->templateArguments(); + if (al) + { + t << " <templateparamlist>" << endl; + ArgumentListIterator ali(*al); + Argument *a; + for (ali.toFirst();(a=ali.current());++ali) + { + t << " <param>" << endl; + if (!a->type.isEmpty()) + { + t << " <type>"; + linkifyText(TextGeneratorXMLImpl(t),d->name(),0,a->type); + t << "</type>" << endl; + } + if (!a->name.isEmpty()) + { + t << " <name>" << a->name << "</name>" << endl; + } + if (!a->defval.isEmpty()) + { + t << " <defval>"; + linkifyText(TextGeneratorXMLImpl(t),d->name(),0,a->defval); + t << "</defval>" << endl; + } + t << " </param>" << endl; + } + t << " </templateparamlist>" << endl; + } + } +} + static void generateXMLForClass(ClassDef *cd,QTextStream &ti) { // + brief description // + detailed description - // - template arguments + // + template argument list(s) // - include file // + member groups // + inheritance diagram @@ -1376,6 +1414,7 @@ static void generateXMLForClass(ClassDef *cd,QTextStream &ti) << "\">" << convertToXML(cd->name()) << "</innerclass>" << endl; } } + writeTemplateLists(cd,t); MemberGroupSDict::Iterator mgli(*cd->memberGroupSDict); MemberGroup *mg; for (;(mg=mgli.current());++mgli) |