summaryrefslogtreecommitdiffstats
path: root/src/filedef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r--src/filedef.cpp25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index f7853a7..2d4e60d 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -50,7 +50,8 @@ FileDef::FileDef(const char *p,const char *nm,const char *ref)
namespaceDict = new NamespaceDict(7);
srcDefDict = 0;
srcAnchorDict = 0;
- usingList = 0;
+ usingDirList = 0;
+ usingDeclList = 0;
isSource = FALSE;
docname = nm;
if (Config::fullPathNameFlag)
@@ -72,7 +73,8 @@ FileDef::~FileDef()
delete namespaceDict;
delete srcDefDict;
delete srcAnchorDict;
- delete usingList;
+ delete usingDirList;
+ delete usingDeclList;
delete memberGroupList;
delete memberGroupDict;
}
@@ -189,7 +191,7 @@ void FileDef::writeDocumentation(OutputList &ol)
DotInclDepGraph incDepGraph(this);
if (!incDepGraph.isTrivial())
{
- ol.disableAllBut(OutputGenerator::Html);
+ ol.disable(OutputGenerator::Man);
ol.newParagraph();
ol.startInclDepGraph();
parseText(ol,theTranslator->trInclDepGraph(name()));
@@ -287,7 +289,7 @@ void FileDef::writeDocumentation(OutputList &ol)
//if (latexOn) ol.disable(OutputGenerator::Latex);
ol.disable(OutputGenerator::Latex);
ol.disable(OutputGenerator::RTF);
- ol.writeAnchor("_details");
+ ol.writeAnchor(0,"_details");
//if (latexOn) ol.enable(OutputGenerator::Latex);
ol.popGeneratorState();
ol.startGroupHeader();
@@ -533,11 +535,20 @@ QCString FileDef::getSourceAnchor(int lineNr)
void FileDef::addUsingDirective(NamespaceDef *nd)
{
- if (usingList==0)
+ if (usingDirList==0)
+ {
+ usingDirList = new NamespaceList;
+ }
+ usingDirList->append(nd);
+}
+
+void FileDef::addUsingDeclaration(ClassDef *cd)
+{
+ if (usingDeclList==0)
{
- usingList = new NamespaceList;
+ usingDeclList = new ClassList;
}
- usingList->append(nd);
+ usingDeclList->append(cd);
}
void FileDef::addIncludeDependency(FileDef *fd,const char *incName,bool local)