diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-06-03 09:24:48 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-06-03 09:24:48 (GMT) |
commit | 6d2875bda7b5416f2e8c72ec8677b7164de86187 (patch) | |
tree | 060dc6ccdb347682a1d4b73ab3098d95599532f2 /src/util.cpp | |
parent | 0fb3f32dfd7ac31a2677d76647700cd3fb730ef6 (diff) | |
download | Doxygen-6d2875bda7b5416f2e8c72ec8677b7164de86187.zip Doxygen-6d2875bda7b5416f2e8c72ec8677b7164de86187.tar.gz Doxygen-6d2875bda7b5416f2e8c72ec8677b7164de86187.tar.bz2 |
Release-1.6.3-20100603
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 86e825e..2a288e4 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -463,7 +463,7 @@ NamespaceDef *getResolvedNamespace(const char *name) } if (count==10) { - warn_cont("Warning: possible recursive namespace alias detected for %s!\n",name); + err("Warning: possible recursive namespace alias detected for %s!\n",name); } return Doxygen::namespaceSDict->find(subst->data()); } @@ -6996,5 +6996,35 @@ void writeSummaryLink(OutputList &ol,const char *label,const char *title, ol.writeString("</a>"); } +QCString externalLinkTarget() +{ + static bool extLinksInWindow = Config_getBool("EXT_LINKS_IN_WINDOW"); + if (extLinksInWindow) return "target=\"_blank\" "; else return ""; +} +QCString externalRef(const QCString &relPath,const QCString &ref,bool href) +{ + QCString result; + if (!ref.isEmpty()) + { + QCString *dest = Doxygen::tagDestinationDict[ref]; + if (dest) + { + result = *dest; + int l = result.length(); + if (!relPath.isEmpty() && l>0 && result.at(0)=='.') + { // relative path -> prepend relPath. + result.prepend(relPath); + } + if (!href) result.prepend("doxygen=\""+ref+":"); + if (l>0 && !result.at(l-1)!='/') result+='/'; + if (!href) result.append("\" "); + } + } + else + { + result = relPath; + } + return result; +} |