[Libreoffice-commits] .: 2 commits - src/docrecord.py src/msodraw.py
Miklos Vajna
vmiklos at kemper.freedesktop.org
Mon May 6 10:00:45 PDT 2013
src/docrecord.py | 4 ++++
src/msodraw.py | 8 ++++++++
2 files changed, 12 insertions(+)
New commits:
commit 84207b43af4f6035baeaeca1ea9d7b869af7daab
Author: Miklos Vajna <vmiklos at 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 <vmiklos at 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],
More information about the Libreoffice-commits
mailing list