diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-05-08 21:32:24 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-05-08 21:32:24 (GMT) |
commit | 23885c2f2db71f003578f0d1b44555c067bfd7a5 (patch) | |
tree | c4bbe961812e7008b9e85fd820596290c043c0f6 /src/definition.cpp | |
parent | 5d31b7ab211586100301d6838be82f066f8f9af4 (diff) | |
download | Doxygen-23885c2f2db71f003578f0d1b44555c067bfd7a5.zip Doxygen-23885c2f2db71f003578f0d1b44555c067bfd7a5.tar.gz Doxygen-23885c2f2db71f003578f0d1b44555c067bfd7a5.tar.bz2 |
Release-1.4.2-20050508
Diffstat (limited to 'src/definition.cpp')
-rw-r--r-- | src/definition.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index ad35e26..635302d 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -31,6 +31,7 @@ #include "groupdef.h" #include "pagedef.h" #include "section.h" +#include "htags.h" #if defined(_MSC_VER) || defined(__BORLANDC__) #define popen _popen @@ -368,7 +369,7 @@ void Definition::writeSourceDef(OutputList &ol,const char *) { QCString lineStr,anchorStr; lineStr.sprintf("%d",m_startBodyLine); - anchorStr.sprintf("l%05d",m_startBodyLine); + anchorStr.sprintf(Htags::useHtags ? "%d" : "l%05d",m_startBodyLine); ol.newParagraph(); if (lineMarkerPos<fileMarkerPos) // line marker before file marker { @@ -584,9 +585,11 @@ void Definition::writeSourceRefs(OutputList &ol,const char *scopeName) bool Definition::hasDocumentation() const { static bool extractAll = Config_getBool("EXTRACT_ALL"); + static bool sourceBrowser = Config_getBool("SOURCE_BROWSER"); return !m_doc.isEmpty() || // has detailed docs !m_brief.isEmpty() || // has brief description - extractAll; // extract everything + extractAll || // extract everything + (sourceBrowser && m_startBodyLine!=-1 && m_bodyDef); // link to definition } void Definition::addSourceReferencedBy(MemberDef *md) @@ -783,7 +786,7 @@ void Definition::writePathFragment(OutputList &ol) const else { ol.writeString(" "); - ol.writeString("/"); + ol.writeString("»"); ol.writeString(" "); } } |