diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-05-12 17:38:45 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-05-12 17:38:45 (GMT) |
commit | 697375aff0beddb756025e867289213dc46ca45f (patch) | |
tree | 2f87712e9d2e8da7138ca908bf03c9937ba71bdb /src/groupdef.cpp | |
parent | 62d3c6501af58ceb48ce8e56327d07ad69e79374 (diff) | |
download | Doxygen-697375aff0beddb756025e867289213dc46ca45f.zip Doxygen-697375aff0beddb756025e867289213dc46ca45f.tar.gz Doxygen-697375aff0beddb756025e867289213dc46ca45f.tar.bz2 |
Release-1.2.15-20020512
Diffstat (limited to 'src/groupdef.cpp')
-rw-r--r-- | src/groupdef.cpp | 77 |
1 files changed, 43 insertions, 34 deletions
diff --git a/src/groupdef.cpp b/src/groupdef.cpp index fdb12b0..e1b27da 100644 --- a/src/groupdef.cpp +++ b/src/groupdef.cpp @@ -336,6 +336,40 @@ void GroupDef::computeAnchors() setAnchors(0,'a',allMemberList); } +void GroupDef::writeDetailedDocumentation(OutputList &ol) +{ + if (!briefDescription().isEmpty() || !documentation().isEmpty()) + { + + if (pageDict->count()!=countMembers()) // classical layout + { + ol.writeRuler(); + ol.pushGeneratorState(); + ol.disable(OutputGenerator::Latex); + ol.disable(OutputGenerator::RTF); + ol.writeAnchor(0,"_details"); + ol.popGeneratorState(); + ol.startGroupHeader(); + parseText(ol,theTranslator->trDetailedDescription()); + ol.endGroupHeader(); + + // repeat brief description + if (!briefDescription().isEmpty() && Config_getBool("REPEAT_BRIEF")) + { + parseDoc(ol,m_defFileName,m_defLine,name(),0,briefDescription()); + ol.newParagraph(); + } + } + + // write documentation + if (!documentation().isEmpty()) + { + parseDoc(ol,m_defFileName,m_defLine,name(),0,documentation()+"\n"); + } + } +} + + void GroupDef::writeDocumentation(OutputList &ol) { ol.pushGeneratorState(); @@ -346,13 +380,13 @@ void GroupDef::writeDocumentation(OutputList &ol) addGroupListToTitle(ol,this); endTitle(ol,getOutputFileBase(),title); - //brief=brief.stripWhiteSpace(); - //int bl=brief.length(); - OutputList briefOutput(&ol); - if (!briefDescription().isEmpty()) + if (Config_getBool("DETAILS_AT_TOP")) + { + writeDetailedDocumentation(ol); + } + else if (!briefDescription().isEmpty()) { - parseDoc(briefOutput,m_defFileName,m_defLine,name(),0,briefDescription()); - ol+=briefOutput; + parseDoc(ol,m_defFileName,m_defLine,name(),0,briefDescription()); ol.writeString(" \n"); ol.pushGeneratorState(); ol.disable(OutputGenerator::Latex); @@ -490,36 +524,11 @@ void GroupDef::writeDocumentation(OutputList &ol) } ol.endMemberSections(); - - if (!briefDescription().isEmpty() || !documentation().isEmpty()) + if (!Config_getBool("DETAILS_AT_TOP")) { - - if (pageDict->count()!=countMembers()) // classical layout - { - ol.writeRuler(); - ol.pushGeneratorState(); - ol.disable(OutputGenerator::Latex); - ol.disable(OutputGenerator::RTF); - ol.writeAnchor(0,"_details"); - ol.popGeneratorState(); - ol.startGroupHeader(); - parseText(ol,theTranslator->trDetailedDescription()); - ol.endGroupHeader(); - - // repeat brief description - if (!briefDescription().isEmpty() && Config_getBool("REPEAT_BRIEF")) - { - ol+=briefOutput; - ol.newParagraph(); - } - } - - // write documentation - if (!documentation().isEmpty()) - { - parseDoc(ol,m_defFileName,m_defLine,name(),0,documentation()+"\n"); - } + writeDetailedDocumentation(ol); } + PageInfo *pi=0; PageSDict::Iterator pdi(*pageDict); for (pdi.toFirst();(pi=pdi.current());++pdi) |