[ooo-build-commit] .: scratch/mso-dumper
Radek DoulÃk
rodo at kemper.freedesktop.org
Tue May 11 07:52:44 PDT 2010
scratch/mso-dumper/src/pptrecord.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit e63f951c3a9849f1207f3a073a42a6e26be827f5
Author: Radek Doulik <rodo at novell.com>
Date: Tue May 11 16:52:16 2010 +0200
fixed reading tab stops in text ruler atom
* scratch/mso-dumper/src/pptrecord.py:
diff --git a/scratch/mso-dumper/src/pptrecord.py b/scratch/mso-dumper/src/pptrecord.py
index 420583f..c1db88b 100644
--- a/scratch/mso-dumper/src/pptrecord.py
+++ b/scratch/mso-dumper/src/pptrecord.py
@@ -645,8 +645,11 @@ class TextRulerAtom(BaseRecordHandler):
self.appendLine("default tab size %d"%tabSize)
if rulerMask & 0x0004:
- self.appendLine("reading tabStops, not sure that this will work")
- self.readRecord(self)
+ numTabStops = self.readUnsignedInt(2)
+ for i in xrange(0, numTabStops):
+ tabDistance = self.readUnsignedInt(2)
+ tabAlignment = self.readUnsignedInt(2)
+ self.appendParaProp("para tab stop %d: distance %d, align %4.4Xh"%(i, tabDistance, tabAlignment))
if rulerMask & 0x0008:
leftMargin = self.readUnsignedInt(2)
More information about the ooo-build-commit
mailing list