[Libreoffice-commits] .: src/xlsrecord.py

Kohei Yoshida kohei at kemper.freedesktop.org
Thu Feb 23 18:38:26 PST 2012


 src/xlsrecord.py |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 32d8a9f6e45f5ea74ffe3e26f02b02d310b73686
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Thu Feb 23 21:38:37 2012 -0500

    Worked a little on dumping AreaFormat.

diff --git a/src/xlsrecord.py b/src/xlsrecord.py
index ddcb2f2..eab87d9 100644
--- a/src/xlsrecord.py
+++ b/src/xlsrecord.py
@@ -92,12 +92,17 @@ def decodeRK (rkval, auxData = None):
 
     return realVal
 
+
 class LongRGB(object):
     def __init__ (self, r, g, b):
         self.red = r
         self.green = g
         self.blue = b
 
+    def toString (self):
+        return "(R=%d,G=%d,B=%d)"%(self.red, self.green, self.blue)
+
+
 def dumpRgb(rgb):
     return {'r': rgb.red,
             'g': rgb.green,
@@ -3865,7 +3870,8 @@ class AreaFormat(BaseRecordHandler):
 
     def parseBytes (self):
         self.__parseBytes()
-        # TODO: dump all data
+        self.appendLineString("foreground color", self.foreColor.toString())
+        self.appendLineString("background color", self.backColor.toString())
 
     def dumpData(self):
         self.__parseBytes()


More information about the Libreoffice-commits mailing list