summaryrefslogtreecommitdiffstats
path: root/src/memberdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-11-29 19:49:28 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-11-29 19:49:28 (GMT)
commitd3de023dd3ece65ce932584b0000770449463359 (patch)
treedd11c8b2790e0a8873120fa0c71ff68b06a68204 /src/memberdef.cpp
parent00b7d393215f6b7e08d6b931c6da32e4103c5a36 (diff)
parent006dd531b693473fb948aa2648c3bc840d66f9fa (diff)
downloadDoxygen-d3de023dd3ece65ce932584b0000770449463359.zip
Doxygen-d3de023dd3ece65ce932584b0000770449463359.tar.gz
Doxygen-d3de023dd3ece65ce932584b0000770449463359.tar.bz2
Merge branch 'master' into template
Conflicts: src/memberdef.cpp src/memberdef.h
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r--src/memberdef.cpp43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp
index 2f47e9d..2059341 100644
--- a/src/memberdef.cpp
+++ b/src/memberdef.cpp
@@ -2447,6 +2447,47 @@ QCString MemberDef::displayDefinition() const
return substitute(ldef,"::",sep);
}
+void MemberDef::_writeGroupInclude(OutputList &ol,bool inGroup)
+{
+ // only write out the include file if this is not part of a class or file
+ // definition
+ static bool showGroupedMembInc = Config_getBool("SHOW_GROUPED_MEMB_INC");
+ FileDef *fd = getFileDef();
+ QCString nm;
+ if (fd) nm = getFileDef()->docName();
+ if (inGroup && fd && showGroupedMembInc && !nm.isEmpty())
+ {
+ ol.startParagraph();
+ ol.startTypewriter();
+ SrcLangExt lang = getLanguage();
+ bool isIDLorJava = lang==SrcLangExt_IDL || lang==SrcLangExt_Java;
+ if (isIDLorJava)
+ {
+ ol.docify("import ");
+ }
+ else
+ {
+ ol.docify("#include ");
+ }
+
+ if (isIDLorJava) ol.docify("\""); else ol.docify("<");
+
+ if (fd && fd->isLinkable())
+ {
+ ol.writeObjectLink(fd->getReference(),fd->getOutputFileBase(),fd->anchor(),nm);
+ }
+ else
+ {
+ ol.docify(nm);
+ }
+
+ if (isIDLorJava) ol.docify("\""); else ol.docify(">");
+
+ ol.endTypewriter();
+ ol.endParagraph();
+ }
+}
+
/*! Writes the "detailed documentation" section of this member to
* all active output formats.
*/
@@ -2775,6 +2816,8 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
ol.endDoxyAnchor(cfname,memAnchor);
ol.startIndent();
+ _writeGroupInclude(ol,inGroup);
+
/* write multi-line initializer (if any) */
if (hasMultiLineInitializer()
//initLines>0 && ((initLines<maxInitLines && userInitLines==-1) // implicitly enabled