diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-04-21 17:27:45 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-04-21 17:27:45 (GMT) |
commit | 210582f8060fb41f6ad34d8315c9dd27b1bb6834 (patch) | |
tree | 4859bfed167f695f5ce9e9c0f2f6f02313de2ed3 /addon/doxmlparser/src/dochandler.cpp | |
parent | 481a46c5ec227eaf82bfef99b742b793a727b8ec (diff) | |
download | Doxygen-210582f8060fb41f6ad34d8315c9dd27b1bb6834.zip Doxygen-210582f8060fb41f6ad34d8315c9dd27b1bb6834.tar.gz Doxygen-210582f8060fb41f6ad34d8315c9dd27b1bb6834.tar.bz2 |
Release-1.2.15-20020421
Diffstat (limited to 'addon/doxmlparser/src/dochandler.cpp')
-rw-r--r-- | addon/doxmlparser/src/dochandler.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/addon/doxmlparser/src/dochandler.cpp b/addon/doxmlparser/src/dochandler.cpp index 4c91ba5..f21c90f 100644 --- a/addon/doxmlparser/src/dochandler.cpp +++ b/addon/doxmlparser/src/dochandler.cpp @@ -117,6 +117,9 @@ MarkupHandler::MarkupHandler(QList<DocImpl> &children,QString &curString) addStartHandler("superscript",this,&MarkupHandler::startSuperscript); addEndHandler("superscript",this,&MarkupHandler::endSuperscript); + + addStartHandler("preformatted",this,&MarkupHandler::startPreformatted); + addEndHandler("preformatted",this,&MarkupHandler::endPreformatted); } MarkupHandler::~MarkupHandler() @@ -231,6 +234,20 @@ void MarkupHandler::endSuperscript() m_curMarkup &= ~IDocMarkup::Superscript; } +void MarkupHandler::startPreformatted(const QXmlAttributes & /*attrib*/) +{ + addTextNode(); + m_children.append(new MarkupModifierNode(IDocMarkup::Preformatted,TRUE)); + m_curMarkup |= IDocMarkup::Preformatted; +} + +void MarkupHandler::endPreformatted() +{ + addTextNode(); + m_children.append(new MarkupModifierNode(IDocMarkup::Preformatted,FALSE)); + m_curMarkup &= ~IDocMarkup::Preformatted; +} + //---------------------------------------------------------------------- // ListItemHandler //---------------------------------------------------------------------- |