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



Author: kyoshida
Date: Wed Oct 22 22:58:32 2008
New Revision: 14399
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14399&view=rev

Log:
2008-10-22  Kohei Yoshida  <kyoshida novell com>

	* scratch/sc-xlsutil/src/record.py:
	* scratch/sc-xlsutil/src/stream.py: added handler for CHVALUERANGE 
	record which stores chart axis properties.


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	Wed Oct 22 22:58:32 2008
@@ -760,3 +760,19 @@
             emptyValues = "interpolate empty values"
 
         self.appendLine("empty value treatment: %s"%emptyValues)
+
+
+class CHValueRange(BaseRecordHandler):
+
+    def parseBytes (self):
+        minVal = globals.getDouble(self.readBytes(8))
+        maxVal = globals.getDouble(self.readBytes(8))
+        majorStep = globals.getDouble(self.readBytes(8))
+        minorStep = globals.getDouble(self.readBytes(8))
+        cross = globals.getDouble(self.readBytes(8))
+        flags = globals.getSignedInt(self.readBytes(2))
+
+        self.appendLine("min: %g    max: %g"%(minVal, maxVal))
+        self.appendLine("major step: %g    minor step: %g"%(majorStep, minorStep))
+        self.appendLine("cross: %g"%cross)
+        self.appendLine("flags: 0x%4.4X"%flags)

Modified: trunk/scratch/sc-xlsutil/src/stream.py
==============================================================================
--- trunk/scratch/sc-xlsutil/src/stream.py	(original)
+++ trunk/scratch/sc-xlsutil/src/stream.py	Wed Oct 22 22:58:32 2008
@@ -212,7 +212,7 @@
     0x001C: ["CHCHARTLINE", "?"],
     0x101D: ["CHAXIS", "?"],
     0x101E: ["CHTICK", "?"],
-    0x101F: ["CHVALUERANGE", "?"],
+    0x101F: ["CHVALUERANGE", "?", record.CHValueRange],
     0x1020: ["CHLABELRANGE", "?"],
     0x1021: ["CHAXISLINE", "?"],
     0x1024: ["CHDEFAULTTEXT", "?"],



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