summaryrefslogtreecommitdiffstats
path: root/addon/xmlparse/compoundhandler.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-10-03 19:57:09 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-10-03 19:57:09 (GMT)
commit9e4e94fbabe856b8de4041ff2a27524f923343dc (patch)
tree47b95a7c3d927d419d3628f528e311aa99356173 /addon/xmlparse/compoundhandler.cpp
parent00e00a1df00be67219a28aaa8d58e8a0991555eb (diff)
downloadDoxygen-9e4e94fbabe856b8de4041ff2a27524f923343dc.zip
Doxygen-9e4e94fbabe856b8de4041ff2a27524f923343dc.tar.gz
Doxygen-9e4e94fbabe856b8de4041ff2a27524f923343dc.tar.bz2
Release-1.2.11-20011003
Diffstat (limited to 'addon/xmlparse/compoundhandler.cpp')
-rw-r--r--addon/xmlparse/compoundhandler.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/addon/xmlparse/compoundhandler.cpp b/addon/xmlparse/compoundhandler.cpp
index dd81a2a..9763e9d 100644
--- a/addon/xmlparse/compoundhandler.cpp
+++ b/addon/xmlparse/compoundhandler.cpp
@@ -40,6 +40,9 @@ CompoundHandler::CompoundHandler(IBaseHandler *parent)
addStartHandler("detaileddescription",this,&CompoundHandler::startDetailedDesc);
addStartHandler("sectiondef",this,&CompoundHandler::startSection);
+
+ addStartHandler("location",this,&CompoundHandler::startLocation);
+ addEndHandler("location");
}
CompoundHandler::~CompoundHandler()
@@ -71,10 +74,16 @@ void CompoundHandler::startDetailedDesc(const QXmlAttributes& attrib)
void CompoundHandler::startCompound(const QXmlAttributes& attrib)
{
- m_parent->setDelegate(this);
- m_id = attrib.value("id");
- m_kind = attrib.value("kind");
- printf("startCompound(id=`%s' type=`%s')\n",m_id.data(),m_kind.data());
+ m_parent->setDelegate(this);
+ m_id = attrib.value("id");
+ m_kind = attrib.value("kind");
+ printf("startCompound(id=`%s' type=`%s')\n",m_id.data(),m_kind.data());
+}
+
+void CompoundHandler::startLocation(const QXmlAttributes& attrib)
+{
+ m_defFile = attrib.value("file");
+ m_defLine = attrib.value("line").toInt();
}
void CompoundHandler::endCompound()