ooo-build r13304 - in trunk: . scratch/sc-xlsutil/src



Author: kyoshida
Date: Fri Jul 18 21:15:33 2008
New Revision: 13304
URL: http://svn.gnome.org/viewvc/ooo-build?rev=13304&view=rev

Log:
2008-07-18  Kohei Yoshida  <kyoshida novell com>

	* scratch/sc-xlsutil/src/record.py: display human readable text for
	REFRESHALL record.

	* scratch/sc-xlsutil/src/stream.py: added handler for REFRESHALL.


Modified:
   trunk/ChangeLog
   trunk/scratch/sc-xlsutil/src/record.py
   trunk/scratch/sc-xlsutil/src/stream.py

Modified: trunk/scratch/sc-xlsutil/src/record.py
==============================================================================
--- trunk/scratch/sc-xlsutil/src/record.py	(original)
+++ trunk/scratch/sc-xlsutil/src/record.py	Fri Jul 18 21:15:33 2008
@@ -365,6 +365,7 @@
         self.appendLine("CRN count: %d"%crnCount)
         self.appendLine("index of referenced sheet in the SUPBOOK record: %d"%sheetIndex)
 
+
 class Crn(BaseRecordHandler):
 
     def parseBytes (self):
@@ -410,6 +411,14 @@
                 sys.exit(1)
             
 
+class RefreshAll(BaseRecordHandler):
+
+    def parseBytes (self):
+        boolVal = globals.getSignedInt(self.bytes[0:2])
+        strVal = "no"
+        if boolVal:
+            strVal = "yes"
+        self.appendLine("refresh all external data ranges and pivot tables: %s"%strVal)
 
 
 # -------------------------------------------------------------------

Modified: trunk/scratch/sc-xlsutil/src/stream.py
==============================================================================
--- trunk/scratch/sc-xlsutil/src/stream.py	(original)
+++ trunk/scratch/sc-xlsutil/src/stream.py	Fri Jul 18 21:15:33 2008
@@ -157,7 +157,7 @@
     0x01B2: ["DVAL", "Data Validation Information"],
     0x01B5: ["DCONBIN", "Data Consolidation Information"],
     0x01B6: ["TXO", "Text Object"],
-    0x01B7: ["REFRESHALL", "Refresh Flag"],
+    0x01B7: ["REFRESHALL", "Refresh Flag", record.RefreshAll],
     0x01B8: ["HLINK", "Hyperlink"],
     0x01BB: ["SXFDBTYPE", "SQL Datatype Identifier"],
     0x01BC: ["PROT4REVPASS", "Shared Workbook Protection Password"],



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]