diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-04-21 17:33:50 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-04-21 17:33:50 +0200 |
commit | 721c81593b2fb698b00d556e5509f570f692c765 (patch) | |
tree | dfdaf7dd86cacb1e262b2ef7faf9062e677406cd | |
parent | 5213878fe1e0f99a1ad1f82341e832bbbd35f5f0 (diff) |
HideText for xml parsers too
-rw-r--r-- | src/lib/VSDXMLParserBase.cpp | 3 | ||||
-rw-r--r-- | src/lib/VSDXParser.cpp | 4 |
2 files changed, 7 insertions, 0 deletions
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: |