diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-03-24 20:06:51 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-03-24 20:06:51 (GMT) |
commit | 21587da40824d8609575284f0ee0fac90c972f27 (patch) | |
tree | 797740a23dd652f609fa100db4f0c862df4692ed /src/namespacedef.cpp | |
parent | ca3fb0a6df32b732c6b390b937f3ada001cb1e7a (diff) | |
download | Doxygen-21587da40824d8609575284f0ee0fac90c972f27.zip Doxygen-21587da40824d8609575284f0ee0fac90c972f27.tar.gz Doxygen-21587da40824d8609575284f0ee0fac90c972f27.tar.bz2 |
Release-1.2.14-20020324
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r-- | src/namespacedef.cpp | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp index 96affc7..3a98438 100644 --- a/src/namespacedef.cpp +++ b/src/namespacedef.cpp @@ -176,9 +176,16 @@ void NamespaceDef::writeDocumentation(OutputList &ol) startFile(ol,getOutputFileBase(),name(),pageTitle); startTitle(ol,getOutputFileBase()); //ol.docify(pageTitle); - parseText(ol,theTranslator->trNamespaceReference(name())); + if (Config_getBool("OPTIMIZE_OUTPUT_JAVA")) + { + parseText(ol,theTranslator->trPackage(displayName())); + } + else + { + parseText(ol,theTranslator->trNamespaceReference(displayName())); + } addGroupListToTitle(ol,this); - endTitle(ol,getOutputFileBase(),name()); + endTitle(ol,getOutputFileBase(),displayName()); if (!Config_getString("GENERATE_TAGFILE").isEmpty()) { @@ -327,10 +334,10 @@ QCString NamespaceDef::getOutputFileBase() const return convertNameToFile(fileName); } -Definition *NamespaceDef::findInnerCompound(const char *name) +Definition *NamespaceDef::findInnerCompound(const char *n) { - if (name==0) return 0; - return m_innerCompounds->find(name); + if (n==0) return 0; + return m_innerCompounds->find(n); } void NamespaceDef::addInnerCompound(Definition *d) @@ -358,3 +365,13 @@ void NamespaceDef::addListReferences() docVarMembers.addListReferences(this); } +QCString NamespaceDef::displayName() const +{ + QCString result=name(); + if (Config_getBool("OPTIMIZE_OUTPUT_JAVA")) + { + result = substitute(result,"::","."); + } + return result; +} + |