summaryrefslogtreecommitdiffstats
path: root/src/memberdef.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-07-08 20:06:16 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-07-08 20:06:16 (GMT)
commitaca0b88941aefecfbef3186e63049cc7fba0a11c (patch)
tree0ff0fae4a5be0021848d96eb18ee8505ff6b9b5d /src/memberdef.cpp
parent509496da5e5b38aecbd91a5e20b3d695cbbef775 (diff)
downloadDoxygen-aca0b88941aefecfbef3186e63049cc7fba0a11c.zip
Doxygen-aca0b88941aefecfbef3186e63049cc7fba0a11c.tar.gz
Doxygen-aca0b88941aefecfbef3186e63049cc7fba0a11c.tar.bz2
Release-1.3.2-20030708
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r--src/memberdef.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp
index 019943b..5c67c03 100644
--- a/src/memberdef.cpp
+++ b/src/memberdef.cpp
@@ -499,7 +499,19 @@ void MemberDef::writeLink(OutputList &ol,ClassDef *cd,NamespaceDef *nd,
}
else // local link
{
- ol.writeObjectLink(d->getReference(),d->getOutputFileBase(),anchor(),name());
+ QCString sep = Config_getBool("OPTIMIZE_OUTPUT_JAVA") ? "." : "::";
+ if (cd)
+ {
+ ol.writeObjectLink(d->getReference(),d->getOutputFileBase(),anchor(),cd->name()+sep+name());
+ }
+ else if (nd)
+ {
+ ol.writeObjectLink(d->getReference(),d->getOutputFileBase(),anchor(),nd->name()+sep+name());
+ }
+ else
+ {
+ ol.writeObjectLink(d->getReference(),d->getOutputFileBase(),anchor(),name());
+ }
}
}
@@ -2017,3 +2029,11 @@ void MemberDef::enableCallGraph(bool e)
if (e) Doxygen::parseSourcesNeeded = TRUE;
}
+bool MemberDef::protectionVisible() const
+{
+ return prot==Public ||
+ (prot==Private && Config_getBool("EXTRACT_PRIVATE")) ||
+ (prot==Protected && Config_getBool("EXTRACT_PROTECTED")) ||
+ (prot==Package && Config_getBool("EXTRACT_PACKAGE"));
+}
+