diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-12-16 20:08:24 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-12-16 20:08:24 (GMT) |
commit | 1a8ff6f0e75b0db2a4ff1f5eb63631c94085b01e (patch) | |
tree | 0de7715d3a2308f07d2c97970d88def415c52ae4 /addon/doxmlparser/src | |
parent | 6204682e5f23d154bade70d60f5989424f057ce6 (diff) | |
download | Doxygen-1a8ff6f0e75b0db2a4ff1f5eb63631c94085b01e.zip Doxygen-1a8ff6f0e75b0db2a4ff1f5eb63631c94085b01e.tar.gz Doxygen-1a8ff6f0e75b0db2a4ff1f5eb63631c94085b01e.tar.bz2 |
Release-1.3-rc2
Diffstat (limited to 'addon/doxmlparser/src')
-rw-r--r-- | addon/doxmlparser/src/dochandler.cpp | 11 | ||||
-rw-r--r-- | addon/doxmlparser/src/dochandler.h | 1 |
2 files changed, 11 insertions, 1 deletions
diff --git a/addon/doxmlparser/src/dochandler.cpp b/addon/doxmlparser/src/dochandler.cpp index 6bd2476..34079a9 100644 --- a/addon/doxmlparser/src/dochandler.cpp +++ b/addon/doxmlparser/src/dochandler.cpp @@ -1057,6 +1057,7 @@ HighlightHandler::HighlightHandler(IBaseHandler *parent) m_children.setAutoDelete(TRUE); addEndHandler("highlight",this,&HighlightHandler::endHighlight); addStartHandler("ref",this,&HighlightHandler::startRef); + addStartHandler("sp",this,&HighlightHandler::startSpace); m_hl = IDocHighlight::Invalid; } @@ -1070,12 +1071,13 @@ void HighlightHandler::startHighlight(const QXmlAttributes& attrib) m_hl = s_highlightMapper->stringToKind(m_hlString); m_curString=""; m_parent->setDelegate(this); + debug(2,"start highlight\n"); } void HighlightHandler::endHighlight() { addTextNode(); - debug(2,"highlight class=`%s'\n",m_hlString.data()); + debug(2,"end highlight class=`%s'\n",m_hlString.data()); m_parent->setDelegate(0); } @@ -1087,8 +1089,15 @@ void HighlightHandler::startRef(const QXmlAttributes& attrib) rh->startRef(attrib); } +void HighlightHandler::startSpace(const QXmlAttributes&) +{ + m_curString=" "; + addTextNode(); +} + void HighlightHandler::addTextNode() { + printf("m_curString=`%s'\n",m_curString.data()); if (!m_curString.isEmpty()) { m_children.append(new TextNode(m_curString,IDocMarkup::Normal,0)); diff --git a/addon/doxmlparser/src/dochandler.h b/addon/doxmlparser/src/dochandler.h index 7a0bda4..aa9d3f3 100644 --- a/addon/doxmlparser/src/dochandler.h +++ b/addon/doxmlparser/src/dochandler.h @@ -765,6 +765,7 @@ class HighlightHandler : public DocHighlightImpl, public BaseHandler<HighlightHa void startHighlight(const QXmlAttributes& attrib); void endHighlight(); virtual void startRef(const QXmlAttributes&); + virtual void startSpace(const QXmlAttributes&); // IDocHighlight virtual Kind kind() const { return DocImpl::Highlight; } |