[Libreoffice-commits] libvisio.git: src/lib
Fridrich Štrba
fridrich.strba at bluewin.ch
Mon Dec 21 00:37:47 PST 2015
src/lib/VSD5Parser.cpp | 28 ----------------------------
1 file changed, 28 deletions(-)
New commits:
commit d75f197aec002592b3923550f90c25a1d1c6be20
Author: Fridrich Štrba <fridrich.strba at bluewin.ch>
Date: Mon Dec 21 09:37:23 2015 +0100
At least Visio 1 and Visio 2 do not support bullets
Change-Id: Ic1206d889247f27d7b81e6815af7caeae258d5e7
diff --git a/src/lib/VSD5Parser.cpp b/src/lib/VSD5Parser.cpp
index 601313d..4a3393f 100644
--- a/src/lib/VSD5Parser.cpp
+++ b/src/lib/VSD5Parser.cpp
@@ -220,7 +220,6 @@ void libvisio::VSD5Parser::readLine(librevenge::RVNGInputStream *input)
void libvisio::VSD5Parser::readParaIX(librevenge::RVNGInputStream *input)
{
- // long startPosition = input->tell();
unsigned charCount = readU16(input);
input->seek(1, librevenge::RVNG_SEEK_CUR);
double indFirst = readDouble(input);
@@ -242,34 +241,7 @@ void libvisio::VSD5Parser::readParaIX(librevenge::RVNGInputStream *input)
VSDName bulletStr;
double textPosAfterTab(0.0);
unsigned flags(0);
- /*
- long remainingData = m_header.dataLength - input->tell() + startPosition;
- unsigned blockLength = 0;
- while (remainingData >= 2 && (blockLength = readU16(input)))
- {
- long blockEnd = blockLength-2 + input->tell();
- unsigned char blockType = readU8(input);
- unsigned char blockIdx = readU8(input);
- if (blockType == 2 && blockIdx == 8)
- {
- input->seek(1, librevenge::RVNG_SEEK_CUR);
- unsigned long numBytes = readU8(input);
- unsigned long numBytesRead = 0;
- const unsigned char *tmpBuffer = input->read(numBytes, numBytesRead);
- if (tmpBuffer && numBytesRead)
- {
- librevenge::RVNGBinaryData tmpBulletString(tmpBuffer, numBytesRead);
- bulletStr = VSDName(tmpBulletString, libvisio::VSD_TEXT_ANSI);
- }
- }
- else if (blockType == 2 && blockIdx == 3)
- {
- };
- input->seek(blockEnd, librevenge::RVNG_SEEK_SET);
- remainingData -= blockLength;
- }
- */
if (m_isInStyles)
m_collector->collectParaIXStyle(m_header.id, m_header.level, charCount, indFirst, indLeft, indRight,
spLine, spBefore, spAfter, align, bullet, bulletStr, textPosAfterTab, flags);
More information about the Libreoffice-commits
mailing list