summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-05-27 15:34:17 +0100
committerNoel Power <noel.power@suse.com>2013-05-27 19:44:49 +0100
commit0c9533603392bd2646aed89b878f8761f217fb7a (patch)
treed222603b0fa216ea49a91b4329cede105bb536df
parent10ceb0c3a27a9052e84582aef9e98dd2e206c195 (diff)
remove some methods that are no longer used after rework
Change-Id: I2772dff6297e223caed499e0e7c801970e707700
-rw-r--r--sc/source/filter/inc/extlstcontext.hxx6
-rw-r--r--sc/source/filter/oox/extlstcontext.cxx74
2 files changed, 0 insertions, 80 deletions
diff --git a/sc/source/filter/inc/extlstcontext.hxx b/sc/source/filter/inc/extlstcontext.hxx
index 7c2650262741..c982f10cbd58 100644
--- a/sc/source/filter/inc/extlstcontext.hxx
+++ b/sc/source/filter/inc/extlstcontext.hxx
@@ -21,13 +21,7 @@ public:
virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs );
virtual void onStartElement( const AttributeList& rAttribs );
- void finalizeImport();
-
private:
- void importDataBar( const AttributeList& rAttribs );
- void importNegativeFillColor( const AttributeList& rAttribs );
- void importAxisColor( const AttributeList& rAttribs );
- void importCfvo( const AttributeList& rAttribs );
void* mpTarget;
bool mbFirstEntry;
diff --git a/sc/source/filter/oox/extlstcontext.cxx b/sc/source/filter/oox/extlstcontext.cxx
index 8d83845b7efd..52a9e36000cc 100644
--- a/sc/source/filter/oox/extlstcontext.cxx
+++ b/sc/source/filter/oox/extlstcontext.cxx
@@ -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 ):
WorksheetContextBase(rFragment),
mpTarget(pTarget)