Kaydet (Commit) 0c953360 authored tarafından Noel Power's avatar Noel Power

remove some methods that are no longer used after rework

Change-Id: I2772dff6297e223caed499e0e7c801970e707700
üst 10ceb0c3
...@@ -21,13 +21,7 @@ public: ...@@ -21,13 +21,7 @@ public:
virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs );
virtual void onStartElement( const AttributeList& rAttribs ); virtual void onStartElement( const AttributeList& rAttribs );
void finalizeImport();
private: private:
void importDataBar( const AttributeList& rAttribs );
void importNegativeFillColor( const AttributeList& rAttribs );
void importAxisColor( const AttributeList& rAttribs );
void importCfvo( const AttributeList& rAttribs );
void* mpTarget; void* mpTarget;
bool mbFirstEntry; bool mbFirstEntry;
......
...@@ -65,80 +65,6 @@ void ExtCfRuleContext::onStartElement( const AttributeList& rAttribs ) ...@@ -65,80 +65,6 @@ void ExtCfRuleContext::onStartElement( const AttributeList& rAttribs )
} }
} }
void ExtCfRuleContext::importDataBar( const AttributeList& rAttribs )
{
ScDataBarFormatData* pDataBar = static_cast<ScDataBarFormatData*>(mpTarget);
pDataBar->mbGradient = rAttribs.getBool( XML_gradient, true );
OUString aAxisPosition = rAttribs.getString( XML_axisPosition, "automatic" );
if( aAxisPosition == "none" )
pDataBar->meAxisPosition = databar::NONE;
else if( aAxisPosition == "middle" )
pDataBar->meAxisPosition = databar::MIDDLE;
else
pDataBar->meAxisPosition = databar::AUTOMATIC;
pDataBar->mbNeg = !rAttribs.getBool( XML_negativeBarColorSameAsPositive, false );
}
namespace {
::Color RgbToRgbComponents( sal_Int32 nRgb )
{
sal_Int32 ornR = (nRgb >> 16) & 0xFF;
sal_Int32 ornG = (nRgb >> 8) & 0xFF;
sal_Int32 ornB = nRgb & 0xFF;
return ::Color(ornR, ornG, ornB);
}
}
void ExtCfRuleContext::importAxisColor( const AttributeList& rAttribs )
{
ScDataBarFormatData* pDataBar = static_cast<ScDataBarFormatData*>(mpTarget);
sal_Int32 nColor = rAttribs.getIntegerHex( XML_rgb, API_RGB_TRANSPARENT );
::Color aColor = RgbToRgbComponents(nColor);
pDataBar->maAxisColor = aColor;
}
void ExtCfRuleContext::importNegativeFillColor( const AttributeList& rAttribs )
{
sal_Int32 nColor = rAttribs.getIntegerHex( XML_rgb, API_RGB_TRANSPARENT );
::Color aColor = RgbToRgbComponents(nColor);
::Color* pColor = new Color(aColor.GetRed(), aColor.GetGreen(), aColor.GetBlue());
static_cast<ScDataBarFormatData*>(mpTarget)->mpNegativeColor.reset(pColor);
}
void ExtCfRuleContext::importCfvo( const AttributeList& rAttribs )
{
ScDataBarFormatData* pDataBar = static_cast<ScDataBarFormatData*>(mpTarget);
ScColorScaleEntry* pEntry = NULL;
if(mbFirstEntry)
pEntry = pDataBar->mpLowerLimit.get();
else
pEntry = pDataBar->mpUpperLimit.get();
OUString aColorScaleType = rAttribs.getString( XML_type, OUString() );
if(aColorScaleType == "min")
pEntry->SetType(COLORSCALE_MIN);
else if (aColorScaleType == "max")
pEntry->SetType(COLORSCALE_MAX);
else if (aColorScaleType == "autoMin")
pEntry->SetType(COLORSCALE_AUTO);
else if (aColorScaleType == "autoMax")
pEntry->SetType(COLORSCALE_AUTO);
else if (aColorScaleType == "percentile")
pEntry->SetType(COLORSCALE_PERCENTILE);
else if (aColorScaleType == "percent")
pEntry->SetType(COLORSCALE_PERCENT);
else if (aColorScaleType == "formula")
pEntry->SetType(COLORSCALE_FORMULA);
mbFirstEntry = false;
}
ExtLstLocalContext::ExtLstLocalContext( WorksheetContextBase& rFragment, void* pTarget ): ExtLstLocalContext::ExtLstLocalContext( WorksheetContextBase& rFragment, void* pTarget ):
WorksheetContextBase(rFragment), WorksheetContextBase(rFragment),
mpTarget(pTarget) mpTarget(pTarget)
......
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