ooo-build r14410 - in trunk: . scratch/sc-xlsutil/src
- From: kyoshida svn gnome org
- To: svn-commits-list gnome org
- Subject: ooo-build r14410 - in trunk: . scratch/sc-xlsutil/src
- Date: Fri, 24 Oct 2008 20:03:09 +0000 (UTC)
Author: kyoshida
Date: Fri Oct 24 20:03:09 2008
New Revision: 14410
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14410&view=rev
Log:
2008-10-24 Kohei Yoshida <kyoshida novell com>
* scratch/sc-xlsutil/src/record.py:
* scratch/sc-xlsutil/src/stream.py: added handler for the CHLINE record,
which stores information about line charts.
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 Oct 24 20:03:09 2008
@@ -817,3 +817,17 @@
self.appendLine("stacked: %s"%self.getYesNo(stacked))
self.appendLine("percent: %s"%self.getYesNo(percent))
self.appendLine("shadow: %s"%self.getYesNo(shadow))
+
+
+class CHLine(BaseRecordHandler):
+
+ def parseBytes (self):
+ flags = globals.getUnsignedInt(self.readBytes(2))
+ stacked = (flags & 0x0001)
+ percent = (flags & 0x0002)
+ shadow = (flags & 0x0004)
+
+ self.appendLine("stacked: %s"%self.getYesNo(stacked))
+ self.appendLine("percent: %s"%self.getYesNo(percent))
+ self.appendLine("shadow: %s"%self.getYesNo(shadow))
+
Modified: trunk/scratch/sc-xlsutil/src/stream.py
==============================================================================
--- trunk/scratch/sc-xlsutil/src/stream.py (original)
+++ trunk/scratch/sc-xlsutil/src/stream.py Fri Oct 24 20:03:09 2008
@@ -205,7 +205,7 @@
0x1014: ["CHTYPEGROUP", "?"],
0x1015: ["CHLEGEND", "?"],
0x1017: ["CHBAR, CHCOLUMN", "?", record.CHBar],
- 0x1018: ["CHLINE", "?"],
+ 0x1018: ["CHLINE", "?", record.CHLine],
0x1019: ["CHPIE", "?"],
0x101A: ["CHAREA", "?"],
0x101B: ["CHSCATTER", "?"],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]