sc/source/filter/oox/condformatbuffer.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
New commits: commit d793b848147f5fd382d44239c4b7e27337782811 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Fri May 11 07:21:05 2012 +0200 also support theme based colors in xlsx Change-Id: I6a159d7e5a9315b23a5ff7ee6487ee65457552ff diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx index dd6150f..d14ce8a 100644 --- a/sc/source/filter/oox/condformatbuffer.cxx +++ b/sc/source/filter/oox/condformatbuffer.cxx @@ -51,6 +51,7 @@ #include "addressconverter.hxx" #include "biffinputstream.hxx" #include "stylesbuffer.hxx" +#include "themebuffer.hxx" #include "colorscale.hxx" #include "document.hxx" @@ -206,7 +207,14 @@ namespace { void ColorScaleRule::importColor( const AttributeList& rAttribs ) { - sal_Int32 nColor = rAttribs.getIntegerHex( XML_rgb, API_RGB_TRANSPARENT ); + sal_Int32 nColor = 0; + if( rAttribs.hasAttribute( XML_rgb ) ) + nColor = rAttribs.getIntegerHex( XML_rgb, API_RGB_TRANSPARENT ); + else if( rAttribs.hasAttribute( XML_theme ) ) + { + sal_uInt32 nThemeIndex = rAttribs.getUnsigned( XML_theme, 0 ); + nColor = getTheme().getColorByToken( nThemeIndex ); + } ::Color aColor = RgbToRgbComponents( nColor ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits