[ooo-build-commit] scratch/mso-dumper

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Jan 4 19:46:52 PST 2010


 scratch/mso-dumper/src/xlsrecord.py |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 247f91ef664cf7bf1d482a006269c5c7e5b382ad
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Mon Jan 4 22:44:45 2010 -0500

    [xls-dump] Ignore 4 bytes in the FORMULA record.
    
    Those 4 bytes in the FORMULA record right before the formula token
    bytes are "used only for application-specific optimization" according
    to the spec.  Ignore them.
    
    * scratch/mso-dumper/src/xlsrecord.py:

diff --git a/scratch/mso-dumper/src/xlsrecord.py b/scratch/mso-dumper/src/xlsrecord.py
index 93d744e..aa9b1d3 100644
--- a/scratch/mso-dumper/src/xlsrecord.py
+++ b/scratch/mso-dumper/src/xlsrecord.py
@@ -514,6 +514,7 @@ class Formula(BaseRecordHandler):
         self.recalc         = (flags & 0x0001) != 0
         self.calcOnOpen     = (flags & 0x0002) != 0
         self.sharedFormula  = (flags & 0x0008) != 0
+        self.appCacheInfo = self.readUnsignedInt(4) # used only for app-specific optimization.  Ignore it for now.
         self.tokens = self.readRemainingBytes()
 
     def parseBytes (self):


More information about the ooo-build-commit mailing list