summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-11-29 19:11:02 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-11-29 19:11:02 (GMT)
commit4a50fc78170244f82c376bbecd28be43cc849da3 (patch)
treeae4f833eab5f7b63e139145daee905c412ebd229 /src/definition.cpp
parent0625007cb86815b2e30138183d4fe9d2e7850df9 (diff)
downloadDoxygen-4a50fc78170244f82c376bbecd28be43cc849da3.zip
Doxygen-4a50fc78170244f82c376bbecd28be43cc849da3.tar.gz
Doxygen-4a50fc78170244f82c376bbecd28be43cc849da3.tar.bz2
Release-1.3.9.1-20041129
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index 4470bf2..bdc6af0 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -753,3 +753,42 @@ QCString Definition::convertNameToFile(const char *name,bool allowDots) const
}
}
+void Definition::writePathFragment(OutputList &ol) const
+{
+ if (m_outerScope && m_outerScope!=Doxygen::globalScope)
+ {
+ m_outerScope->writePathFragment(ol);
+ ol.writeString("&nbsp;");
+ if (m_outerScope->definitionType()==Definition::TypeClass ||
+ m_outerScope->definitionType()==Definition::TypeNamespace)
+ {
+ if (Config_getBool("OPTIMIZE_OUTPUT_JAVA"))
+ {
+ ol.writeString(".");
+ }
+ else
+ {
+ ol.writeString("::");
+ }
+ }
+ else
+ {
+ ol.writeString("/");
+ }
+ ol.writeString("&nbsp;");
+ }
+ ol.writeObjectLink(getReference(),getOutputFileBase(),0,m_localName);
+}
+
+void Definition::writeNavigationPath(OutputList &ol) const
+{
+ ol.pushGeneratorState();
+ ol.disableAllBut(OutputGenerator::Html);
+
+ ol.writeString("<div class=\"nav\">\n");
+ writePathFragment(ol);
+ ol.writeString("</div>\n");
+
+ ol.popGeneratorState();
+}
+