diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-11-11 19:20:29 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-11-11 19:20:29 (GMT) |
commit | 613b33d7ce00236865f41d77e4e39b37dcbef17b (patch) | |
tree | 7d80c173dcecb625806ece76ccd2210dca925e13 /addon/xmlparse/compoundhandler.cpp | |
parent | a29cfb7d102b893c56c1342fc738b788fc4885cf (diff) | |
download | Doxygen-613b33d7ce00236865f41d77e4e39b37dcbef17b.zip Doxygen-613b33d7ce00236865f41d77e4e39b37dcbef17b.tar.gz Doxygen-613b33d7ce00236865f41d77e4e39b37dcbef17b.tar.bz2 |
Release-1.2.11-20011111
Diffstat (limited to 'addon/xmlparse/compoundhandler.cpp')
-rw-r--r-- | addon/xmlparse/compoundhandler.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/addon/xmlparse/compoundhandler.cpp b/addon/xmlparse/compoundhandler.cpp index 9763e9d..0b22ef2 100644 --- a/addon/xmlparse/compoundhandler.cpp +++ b/addon/xmlparse/compoundhandler.cpp @@ -18,7 +18,7 @@ #include "dochandler.h" CompoundHandler::CompoundHandler(IBaseHandler *parent) - : m_parent(parent), m_brief(0), m_detailed(0) + : m_parent(parent), m_brief(0), m_detailed(0), m_programListing(0) { m_superClasses.setAutoDelete(TRUE); m_subClasses.setAutoDelete(TRUE); @@ -43,12 +43,15 @@ CompoundHandler::CompoundHandler(IBaseHandler *parent) addStartHandler("location",this,&CompoundHandler::startLocation); addEndHandler("location"); + + addStartHandler("programlisting",this,&CompoundHandler::startProgramListing); } CompoundHandler::~CompoundHandler() { delete m_brief; delete m_detailed; + delete m_programListing; } void CompoundHandler::startSection(const QXmlAttributes& attrib) @@ -72,6 +75,13 @@ void CompoundHandler::startDetailedDesc(const QXmlAttributes& attrib) m_detailed = docHandler; } +void CompoundHandler::startProgramListing(const QXmlAttributes& attrib) +{ + ProgramListingHandler *plHandler = new ProgramListingHandler(this); + plHandler->startProgramListing(attrib); + m_programListing = plHandler; +} + void CompoundHandler::startCompound(const QXmlAttributes& attrib) { m_parent->setDelegate(this); |