diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-01-05 10:26:10 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-01-05 10:26:10 (GMT) |
commit | 9d4d8095cd70a06a3536eea20c32ca7bbddd9f3a (patch) | |
tree | ee15d10d932fa1d21de3ebfcb445e2bd81b9f00b /addon/doxmlparser/src/linkedtexthandler.cpp | |
parent | ad53b7bebd3042598e5a11b1f3ef29468815138b (diff) | |
download | Doxygen-9d4d8095cd70a06a3536eea20c32ca7bbddd9f3a.zip Doxygen-9d4d8095cd70a06a3536eea20c32ca7bbddd9f3a.tar.gz Doxygen-9d4d8095cd70a06a3536eea20c32ca7bbddd9f3a.tar.bz2 |
Release-1.2.13.1
Diffstat (limited to 'addon/doxmlparser/src/linkedtexthandler.cpp')
-rw-r--r-- | addon/doxmlparser/src/linkedtexthandler.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/addon/doxmlparser/src/linkedtexthandler.cpp b/addon/doxmlparser/src/linkedtexthandler.cpp index b142188..fabd0c1 100644 --- a/addon/doxmlparser/src/linkedtexthandler.cpp +++ b/addon/doxmlparser/src/linkedtexthandler.cpp @@ -36,10 +36,12 @@ class LT_Ref : public ILT_Ref void setRefId(const QString &refId) { m_refId=refId; } void setText(const QString &text) { m_text=text; } void setExtId(const QString &extId) { m_extId=extId; } + void setTargetKind(TargetKind k) { m_targetKind=k; } // ILT_Ref virtual QString text() const { return m_text; } virtual QString id() const { return m_refId; } + virtual TargetKind targetKind() const { return m_targetKind; } virtual QString external() const { return m_extId; } virtual Kind kind() const { return Kind_Ref; } @@ -47,6 +49,7 @@ class LT_Ref : public ILT_Ref QString m_refId; QString m_extId; QString m_text; + TargetKind m_targetKind; }; LinkedTextHandler::LinkedTextHandler(IBaseHandler *parent, @@ -92,8 +95,10 @@ void LinkedTextHandler::startRef(const QXmlAttributes& attrib) } ASSERT(m_ref==0); m_ref = new LT_Ref; - m_ref->setRefId(attrib.value("idref")); + m_ref->setRefId(attrib.value("refid")); m_ref->setExtId(attrib.value("external")); + ASSERT(attrib.value("kindref")=="compound" || attrib.value("kindref")=="member"); + m_ref->setTargetKind(attrib.value("kindref")=="compound" ? Compound : Member); } void LinkedTextHandler::endRef() |