From 721c81593b2fb698b00d556e5509f570f692c765 Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Sun, 21 Apr 2013 17:33:50 +0200 Subject: HideText for xml parsers too --- src/lib/VSDXMLParserBase.cpp | 3 +++ src/lib/VSDXParser.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/lib/VSDXMLParserBase.cpp b/src/lib/VSDXMLParserBase.cpp index 287df0a..da7a22e 100644 --- a/src/lib/VSDXMLParserBase.cpp +++ b/src/lib/VSDXMLParserBase.cpp @@ -1010,6 +1010,7 @@ void libvisio::VSDXMLParserBase::readShape(xmlTextReaderPtr reader) m_shape.m_charList = tmpShape->m_charList; m_shape.m_paraList = tmpShape->m_paraList; m_shape.m_text = tmpShape->m_text; + m_shape.m_misc = tmpShape->m_misc; } } @@ -1715,6 +1716,8 @@ void libvisio::VSDXMLParserBase::_flushShape() m_collector->collectXFormData(m_currentShapeLevel+2, m_shape.m_xform); + m_collector->collectMisc(m_currentShapeLevel+2, m_shape.m_misc); + if (m_shape.m_txtxform) m_collector->collectTxtXForm(m_currentShapeLevel+2, *(m_shape.m_txtxform)); diff --git a/src/lib/VSDXParser.cpp b/src/lib/VSDXParser.cpp index a6aa3ad..d067d21 100644 --- a/src/lib/VSDXParser.cpp +++ b/src/lib/VSDXParser.cpp @@ -1180,6 +1180,10 @@ void libvisio::VSDXParser::readShapeProperties(xmlTextReaderPtr reader) if (XML_READER_TYPE_ELEMENT == tokenType) readText(reader); break; + case XML_HIDETEXT: + if (XML_READER_TYPE_ELEMENT == tokenType) + ret = readBoolData(m_shape.m_misc.m_hideText, reader); + break; case XML_RESIZEMODE: break; default: -- cgit v1.2.3