Kaydet (Commit) d793b848 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

also support theme based colors in xlsx

Change-Id: I6a159d7e5a9315b23a5ff7ee6487ee65457552ff
üst cdd36980
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment