summaryrefslogtreecommitdiff
path: root/src/lib/VSD5Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/VSD5Parser.cpp')
-rw-r--r--src/lib/VSD5Parser.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/VSD5Parser.cpp b/src/lib/VSD5Parser.cpp
index c8a28dc..55351b1 100644
--- a/src/lib/VSD5Parser.cpp
+++ b/src/lib/VSD5Parser.cpp
@@ -406,6 +406,22 @@ void libvisio::VSD5Parser::readTextBlock(WPXInputStream *input)
verticalAlign, isBgFilled, c, 0.0, (unsigned char)0));
}
+void libvisio::VSD5Parser::readTextField(WPXInputStream *input)
+{
+ input->seek(3, WPX_SEEK_CUR);
+ if (0xe8 == readU8(input))
+ {
+ int nameId = readS16(input);
+ m_shape.m_fields.addTextField(m_header.id, m_header.level, nameId, 0xffff);
+ }
+ else
+ {
+ double numericValue = readDouble(input);
+ m_shape.m_fields.addNumericField(m_header.id, m_header.level, 0xffff, numericValue, 0xffff);
+ }
+}
+
+
unsigned libvisio::VSD5Parser::getUInt(WPXInputStream *input)
{
int value = readS16(input);