diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-10-30 20:57:53 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-10-30 20:57:53 (GMT) |
commit | afc47efd97b995277e5635107b00001fc025cdff (patch) | |
tree | dd06bd100b0bd88b6ee40c8464efac800a749c32 /addon/doxmlparser/src/dochandler.cpp | |
parent | dc404b516e366ca10ad325d399ef0bd47d065863 (diff) | |
download | Doxygen-afc47efd97b995277e5635107b00001fc025cdff.zip Doxygen-afc47efd97b995277e5635107b00001fc025cdff.tar.gz Doxygen-afc47efd97b995277e5635107b00001fc025cdff.tar.bz2 |
Release-1.2.18-20021030
Diffstat (limited to 'addon/doxmlparser/src/dochandler.cpp')
-rw-r--r-- | addon/doxmlparser/src/dochandler.cpp | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/addon/doxmlparser/src/dochandler.cpp b/addon/doxmlparser/src/dochandler.cpp index b822a90..e771761 100644 --- a/addon/doxmlparser/src/dochandler.cpp +++ b/addon/doxmlparser/src/dochandler.cpp @@ -1097,7 +1097,7 @@ void ImageHandler::endImage() DotFileHandler::DotFileHandler(IBaseHandler *parent) : m_parent(parent) { - addEndHandler("image",this,&DotFileHandler::endDotFile); + addEndHandler("dotfile",this,&DotFileHandler::endDotFile); } DotFileHandler::~DotFileHandler() @@ -1328,6 +1328,32 @@ IDocIterator *PreformattedHandler::contents() const } //---------------------------------------------------------------------- +// VerbatimHandler +//---------------------------------------------------------------------- + +VerbatimHandler::VerbatimHandler(IBaseHandler *parent) + : m_parent(parent) +{ + addEndHandler("verbatim",this,&VerbatimHandler::endVerbatim); +} + +VerbatimHandler::~VerbatimHandler() +{ +} + +void VerbatimHandler::startVerbatim(const QXmlAttributes&) +{ + m_parent->setDelegate(this); + m_curString=""; +} + +void VerbatimHandler::endVerbatim() +{ + m_text = m_curString; + m_parent->setDelegate(0); +} + +//---------------------------------------------------------------------- // SymbolHandler //---------------------------------------------------------------------- @@ -1393,6 +1419,7 @@ ParagraphHandler::ParagraphHandler(IBaseHandler *parent) addStartHandler("indexentry",this,&ParagraphHandler::startIndexEntry); addStartHandler("table",this,&ParagraphHandler::startTable); addStartHandler("preformatted",this,&ParagraphHandler::startPreformatted); + addStartHandler("verbatim",this,&ParagraphHandler::startVerbatim); addStartHandler("umlaut",this,&ParagraphHandler::startUmlaut); addStartHandler("acute",this,&ParagraphHandler::startAcute); addStartHandler("grave",this,&ParagraphHandler::startGrave); @@ -1567,6 +1594,14 @@ void ParagraphHandler::startPreformatted(const QXmlAttributes& attrib) m_children.append(ph); } +void ParagraphHandler::startVerbatim(const QXmlAttributes& attrib) +{ + addTextNode(); + VerbatimHandler *vh = new VerbatimHandler(this); + vh->startVerbatim(attrib); + m_children.append(vh); +} + void ParagraphHandler::startUmlaut(const QXmlAttributes& attrib) { addTextNode(); |