summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-11-29 19:11:02 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-11-29 19:11:02 (GMT)
commit02aa9b678dbeb1867c68278045b28d7bc1683f7c (patch)
treeae4f833eab5f7b63e139145daee905c412ebd229 /src/definition.cpp
parent05930245579c006f2b5bfca53e0a1976d682f9b8 (diff)
downloadDoxygen-02aa9b678dbeb1867c68278045b28d7bc1683f7c.zip
Doxygen-02aa9b678dbeb1867c68278045b28d7bc1683f7c.tar.gz
Doxygen-02aa9b678dbeb1867c68278045b28d7bc1683f7c.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();
+}
+