summaryrefslogtreecommitdiff
path: root/src/lib/VSD11Parser.cpp
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-11-07 17:11:55 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-11-07 17:11:55 +0100
commitdc0a1982f5d02404b51e2f28f5ea6417c48b7455 (patch)
tree9a06cdcea4fd131f8e941a9661902767ce92760d /src/lib/VSD11Parser.cpp
parentefa4a2a530699a5b7bd330ee7e1fb4df764358c9 (diff)
Parse and store NameList
Diffstat (limited to 'src/lib/VSD11Parser.cpp')
-rw-r--r--src/lib/VSD11Parser.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/VSD11Parser.cpp b/src/lib/VSD11Parser.cpp
index ddff148..42ad474 100644
--- a/src/lib/VSD11Parser.cpp
+++ b/src/lib/VSD11Parser.cpp
@@ -225,4 +225,22 @@ void libvisio::VSD11Parser::readFillAndShadow(WPXInputStream *input)
fillFGTransparency, fillBGTransparency, shadowPattern, shfgc,
shadowOffsetX, shadowOffsetY);
}
+
+void libvisio::VSD11Parser::readName(WPXInputStream *input)
+{
+ input->seek(8, WPX_SEEK_CUR);
+ ::WPXBinaryData name;
+
+ for (unsigned bytesRead = 8; bytesRead < m_header.dataLength; bytesRead++)
+ name.append(readU8(input));
+
+ if (m_isStencilStarted)
+ {
+ m_stencilShape.m_names.push_back(name);
+ m_stencilShape.m_textFormat = libvisio::VSD_TEXT_UTF16;
+ }
+ else
+ m_collector->collectName(m_header.id, m_header.level, name, libvisio::VSD_TEXT_UTF16);
+}
+
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */