summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2007-09-25 19:13:15 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2007-09-25 19:13:15 (GMT)
commitd3461a1c31f008345d784dc3e819047bc5265c30 (patch)
treebbe4c051e635c620ab57fcc7ca8279d0427777d8 /src/docparser.cpp
parent6bedd287437d2091820129533cb44f56609d0991 (diff)
downloadDoxygen-d3461a1c31f008345d784dc3e819047bc5265c30.zip
Doxygen-d3461a1c31f008345d784dc3e819047bc5265c30.tar.gz
Doxygen-d3461a1c31f008345d784dc3e819047bc5265c30.tar.bz2
Release-1.5.3-20070925
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 1ada917..b46aaed 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -1387,6 +1387,7 @@ DocSymbol::SymType DocSymbol::decodeSymbol(const QString &symName,char *letter)
DBG(("decodeSymbol(%s) l=%d\n",symName.data(),l));
if (symName=="&copy;") return DocSymbol::Copy;
else if (symName=="&trade;") return DocSymbol::Tm;
+ else if (symName=="&tm;") return DocSymbol::Tm; // alias for &trace;
else if (symName=="&reg;") return DocSymbol::Reg;
else if (symName=="&lt;") return DocSymbol::Less;
else if (symName=="&gt;") return DocSymbol::Greater;
@@ -2049,7 +2050,7 @@ void DocInternalRef::parse()
//---------------------------------------------------------------------------
-DocRef::DocRef(DocNode *parent,const QString &target) :
+DocRef::DocRef(DocNode *parent,const QString &target,const QString &context) :
m_parent(parent), m_refToSection(FALSE), m_refToAnchor(FALSE)
{
Definition *compound = 0;
@@ -2071,7 +2072,7 @@ DocRef::DocRef(DocNode *parent,const QString &target) :
// m_text.data(),m_ref.data(),m_file.data(),m_refToAnchor);
return;
}
- else if (resolveLink(g_context,target,TRUE,&compound,anchor))
+ else if (resolveLink(context,target,TRUE,&compound,anchor))
{
bool isFile = compound ?
(compound->definitionType()==Definition::TypeFile ? TRUE : FALSE) :
@@ -2318,8 +2319,8 @@ endlink:
//---------------------------------------------------------------------------
-DocDotFile::DocDotFile(DocNode *parent,const QString &name) :
- m_parent(parent), m_name(name), m_relPath(g_relPath)
+DocDotFile::DocDotFile(DocNode *parent,const QString &name,const QString &context) :
+ m_parent(parent), m_name(name), m_relPath(g_relPath), m_context(context)
{
}
@@ -3235,7 +3236,7 @@ int DocHtmlDescTitle::parse()
}
else
{
- DocRef *ref = new DocRef(this,g_token->name);
+ DocRef *ref = new DocRef(this,g_token->name,g_context);
m_children.append(ref);
ref->parse();
}
@@ -4247,7 +4248,7 @@ void DocPara::handleDotFile(const QString &cmdName)
return;
}
QString name = g_token->name;
- DocDotFile *df = new DocDotFile(this,name);
+ DocDotFile *df = new DocDotFile(this,name,g_context);
m_children.append(df);
df->parse();
}
@@ -4298,7 +4299,7 @@ void DocPara::handleRef(const QString &cmdName)
tokToString(tok),cmdName.data());
goto endref;
}
- ref = new DocRef(this,g_token->name);
+ ref = new DocRef(this,g_token->name,g_context);
m_children.append(ref);
ref->parse();
endref: