[Libreoffice-commits] mso-dumper.git: src/msodraw.py
Miklos Vajna
vmiklos at kemper.freedesktop.org
Fri Aug 9 03:14:35 PDT 2013
src/msodraw.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit eab00bfa71459a82d054f3a7b41b18f0c037fc58
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Fri Aug 9 12:13:02 2013 +0200
msodraw: dump MSOSPT
diff --git a/src/msodraw.py b/src/msodraw.py
index 8126ab9..6b196e0 100644
--- a/src/msodraw.py
+++ b/src/msodraw.py
@@ -27,6 +27,7 @@
import globals, xlsmodel
import sys
+from pptrecord import shapeTypes
def indent (level):
return ' '*level
@@ -130,7 +131,11 @@ class RecordHeader:
def dumpXml(self, recHdl):
recHdl.appendLine('<rh type="OfficeArtRecordHeader">')
recHdl.appendLine('<recVer value="0x%1.1X"/>' % self.recVer)
- recHdl.appendLine('<recInstance value="0x%1.1X"/>' % self.recInstance)
+ shapeType = ""
+ if self.recType == RecordHeader.Type.FSP:
+ # In this case recInstance is from the MSOSPT enumeration
+ shapeType = ' msospt="%s"' % shapeTypes[self.recInstance][0]
+ recHdl.appendLine('<recInstance value="0x%1.1X"%s/>' % (self.recInstance, shapeType))
recHdl.appendLine('<recType value="0x%1.1X"/>' % self.recType)
recHdl.appendLine('<recLen value="0x%1.1X"/>' % self.recLen)
recHdl.appendLine('</rh>')
More information about the Libreoffice-commits
mailing list