[ooo-build-commit] .: scratch/mso-dumper
Kohei Yoshida
kohei at kemper.freedesktop.org
Thu Apr 15 15:03:52 PDT 2010
scratch/mso-dumper/src/xlsrecord.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
New commits:
commit a344adcf76d9a0c16a0e09d10af5c4a0c9def5af
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Thu Apr 15 18:03:33 2010 -0400
[xls-dump] Display ranges in DV record.
* scratch/mso-dumper/src/xlsrecord.py:
diff --git a/scratch/mso-dumper/src/xlsrecord.py b/scratch/mso-dumper/src/xlsrecord.py
index 72f2cce..9277f64 100644
--- a/scratch/mso-dumper/src/xlsrecord.py
+++ b/scratch/mso-dumper/src/xlsrecord.py
@@ -767,6 +767,16 @@ class Dv(BaseRecordHandler):
self.readUnsignedInt(2) # ignore 2 bytes.
self.formula2 = self.readBytes(formulaLen)
+ rangeCount = self.readUnsignedInt(2)
+ self.ranges = []
+ for i in xrange(0, rangeCount):
+ obj = formula.CellRange()
+ obj.firstRow = self.readUnsignedInt(2)
+ obj.lastRow = self.readUnsignedInt(2)
+ obj.firstCol = self.readUnsignedInt(2)
+ obj.lastCol = self.readUnsignedInt(2)
+ self.ranges.append(obj)
+
def parseBytes (self):
self.__parseBytes()
s = globals.getValueOrUnknown(Dv.valueTypes, self.valType)
@@ -799,6 +809,9 @@ class Dv(BaseRecordHandler):
s = parser.getText()
self.appendLine("formula 2 (displayed): %s"%s)
+ for rng in self.ranges:
+ self.appendLine("range: %s"%rng.getName())
+
def fillModel (self, model):
self.__parseBytes()
More information about the ooo-build-commit
mailing list