more on correct import of data bars from Excel2010
http://msdn.microsoft.com/en-us/library/documentformat.openxml.office2010.excel.databar.aspx Change-Id: I6d76cd888b723718e5a2beedfb5223fb6c0d0ba2
This commit is contained in:
parent
4f8af4aeac
commit
f6442313dc
2 changed files with 10 additions and 8 deletions
|
@ -3423,6 +3423,7 @@ ndxf
|
|||
neCell
|
||||
negativeInteger
|
||||
negativeFillColor
|
||||
negativeBarColorSameAsPositive
|
||||
neq
|
||||
never
|
||||
new
|
||||
|
|
|
@ -67,14 +67,15 @@ void ExtCfRuleContext::importDataBar( const AttributeList& rAttribs )
|
|||
ScDataBarFormatData* pDataBar = static_cast<ScDataBarFormatData*>(mpTarget);
|
||||
pDataBar->mbGradient = rAttribs.getBool( XML_gradient, true );
|
||||
|
||||
if(rAttribs.hasAttribute(XML_axisPosition))
|
||||
{
|
||||
rtl::OUString aAxisPosition = rAttribs.getString( XML_axisPosition, rtl::OUString() );
|
||||
if( aAxisPosition == "none" )
|
||||
{
|
||||
pDataBar->mbSameDirection = true;
|
||||
}
|
||||
}
|
||||
rtl::OUString aAxisPosition = rAttribs.getString( XML_axisPosition, "automatic" );
|
||||
if( aAxisPosition == "none" )
|
||||
pDataBar->mbSameDirection = true;
|
||||
else if( aAxisPosition == "middle" )
|
||||
pDataBar->mbSameDirection = false;
|
||||
else
|
||||
pDataBar->mbSameDirection = false;
|
||||
|
||||
pDataBar->mbNeg = !rAttribs.getBool( XML_negativeBarColorSameAsPositive, false );
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
|
Loading…
Reference in a new issue