src/docrecord.py | 4 ++++ src/msodraw.py | 8 ++++++++ 2 files changed, 12 insertions(+)
New commits: commit 84207b43af4f6035baeaeca1ea9d7b869af7daab Author: Miklos Vajna <vmik...@suse.cz> Date: Mon May 6 19:00:33 2013 +0200 doc: dump header drawings diff --git a/src/docrecord.py b/src/docrecord.py index 34e66cb..7cdd245 100644 --- a/src/docrecord.py +++ b/src/docrecord.py @@ -1836,6 +1836,10 @@ class OfficeArtContent(DOCDirStream): print '<Drawings type="main" offset="%d">' % self.pos OfficeArtWordDrawing(self).dump() print '</Drawings>' + if self.pos < self.mainStream.fcDggInfo + self.size: + print '<Drawings type="header" offset="%d">' % self.pos + OfficeArtWordDrawing(self).dump() + print '</Drawings>' assert self.pos == self.mainStream.fcDggInfo + self.size print '</officeArtContent>' commit e8e75bf4d8a7e3988030ac048a8d2a237fc0618b Author: Miklos Vajna <vmik...@suse.cz> Date: Mon May 6 17:47:44 2013 +0200 GroupShape: implement dumpXml() diff --git a/src/msodraw.py b/src/msodraw.py index cf07303..082f0a3 100644 --- a/src/msodraw.py +++ b/src/msodraw.py @@ -476,6 +476,14 @@ class FOPT: recHdl.appendLine(indent(level)+"%s: %s"%(FOPT.GroupShape.flagNames[i], recHdl.getTrueFalse(bval))) flag /= 2 + def dumpXml(self, recHdl, prop): + flag = prop.value + flagCount = len(FOPT.GroupShape.flagNames) + for i in xrange(0, flagCount): + bval = (flag & 0x00000001) + recHdl.appendLine('<%s value="%s"/>' % (FOPT.GroupShape.flagNames[i], bval)) + flag /= 2 + propTable = { 0x00BF: ['Text Boolean Properties', TextBoolean], 0x0181: ['Fill Color', FillColor], _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits