[Libreoffice-commits] .: src/xlsrecord.py src/xlsstream.py
Kohei Yoshida
kohei at kemper.freedesktop.org
Fri Dec 14 13:57:16 PST 2012
src/xlsrecord.py | 13 +++++++++++++
src/xlsstream.py | 3 ++-
2 files changed, 15 insertions(+), 1 deletion(-)
New commits:
commit 0218de6091fa1baa6b007a745d113335766c6230
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Fri Dec 14 16:58:45 2012 -0500
Handler for SxFormat record.
diff --git a/src/xlsrecord.py b/src/xlsrecord.py
index 5261d36..40d808d 100644
--- a/src/xlsrecord.py
+++ b/src/xlsrecord.py
@@ -3170,6 +3170,19 @@ class SXFDB(BaseRecordHandler):
self.appendLineString("field name", self.stFieldName)
+class SxFormat(BaseRecordHandler):
+
+ def __parseBytes (self):
+ flag = self.readUnsignedInt(2)
+ self.rlType = (flag & 0x000F) != 0
+ self.cbData = self.readUnsignedInt(2)
+
+ def parseBytes (self):
+ self.__parseBytes()
+ self.appendLineBoolean("formatting applied", self.rlType)
+ self.appendLineInt("number of byts in next SxDXF", self.cbData)
+
+
class SXLI(BaseRecordHandler):
itemTypes = {
diff --git a/src/xlsstream.py b/src/xlsstream.py
index 0f1a013..bb9d2c0 100644
--- a/src/xlsstream.py
+++ b/src/xlsstream.py
@@ -171,11 +171,12 @@ recData = {
0x00F0: ["SXRULE", "PivotTable Rule Data"],
0x00F1: ["SXEX", "PivotTable View Extended Information", xlsrecord.SXEx],
0x00F2: ["SXFILT", "PivotTable Rule Filter"],
+ 0x00F4: ["SxDXF", "PivotTable Differential Formatting"],
0x00F6: ["SXNAME", "PivotTable Name"],
0x00F7: ["SXSELECT", "PivotTable Selection Information"],
0x00F8: ["SXPAIR", "PivotTable Name Pair"],
0x00F9: ["SXFMLA", "PivotTable Parsed Expression"],
- 0x00FB: ["SXFORMAT", "PivotTable Format Record"],
+ 0x00FB: ["SXFORMAT", "PivotTable Format Record", xlsrecord.SxFormat],
0x00FC: ["SST", "Shared String Table", xlsrecord.SST],
0x00FD: ["LABELSST", "Cell Value", xlsrecord.LabelSST],
0x00FF: ["EXTSST", "Extended Shared String Table"],
More information about the Libreoffice-commits
mailing list