diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-21 16:34:15 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-21 20:31:24 -0400 |
commit | b2ffa40c12024886c3c6fd36d198aed2f8434fde (patch) | |
tree | b19643d60bbdcfb70062aa9de71aef49ae6272dc /chart2/source/tools/DataSeriesHelper.cxx | |
parent | e1840cf944b36b7ead5800a036870e38f4ddb049 (diff) |
Compiler macro in lieu of literal "Label" to make it easier to track it.
Change-Id: I6bc694fcc8f97b308747c097c4fa977d20524377
Diffstat (limited to 'chart2/source/tools/DataSeriesHelper.cxx')
-rw-r--r-- | chart2/source/tools/DataSeriesHelper.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/chart2/source/tools/DataSeriesHelper.cxx b/chart2/source/tools/DataSeriesHelper.cxx index 3066402a76eb..44debefa9255 100644 --- a/chart2/source/tools/DataSeriesHelper.cxx +++ b/chart2/source/tools/DataSeriesHelper.cxx @@ -148,14 +148,14 @@ void lcl_insertOrDeleteDataLabelsToSeriesAndAllPoints( const Reference< chart2:: if( xSeriesProperties.is() ) { DataPointLabel aLabelAtSeries; - xSeriesProperties->getPropertyValue( "Label" ) >>= aLabelAtSeries; + xSeriesProperties->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabelAtSeries; aLabelAtSeries.ShowNumber = bInsert; if( !bInsert ) { aLabelAtSeries.ShowNumberInPercent = false; aLabelAtSeries.ShowCategoryName = false; } - xSeriesProperties->setPropertyValue( "Label", uno::makeAny( aLabelAtSeries ) ); + xSeriesProperties->setPropertyValue(CHART_UNONAME_LABEL, uno::makeAny(aLabelAtSeries)); uno::Sequence< sal_Int32 > aAttributedDataPointIndexList; if( xSeriesProperties->getPropertyValue( "AttributedDataPoints" ) >>= aAttributedDataPointIndexList ) { @@ -165,14 +165,14 @@ void lcl_insertOrDeleteDataLabelsToSeriesAndAllPoints( const Reference< chart2:: if( xPointProp.is() ) { DataPointLabel aLabel; - xPointProp->getPropertyValue( "Label" ) >>= aLabel; + xPointProp->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabel; aLabel.ShowNumber = bInsert; if( !bInsert ) { aLabel.ShowNumberInPercent = false; aLabel.ShowCategoryName = false; } - xPointProp->setPropertyValue( "Label", uno::makeAny( aLabel ) ); + xPointProp->setPropertyValue(CHART_UNONAME_LABEL, uno::makeAny(aLabel)); } } } @@ -777,7 +777,7 @@ bool hasDataLabelsAtSeries( const Reference< chart2::XDataSeries >& xSeries ) if( xProp.is() ) { DataPointLabel aLabel; - if( (xProp->getPropertyValue( "Label" ) >>= aLabel) ) + if( (xProp->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabel) ) bRet = aLabel.ShowNumber || aLabel.ShowNumberInPercent || aLabel.ShowCategoryName; } } @@ -805,7 +805,7 @@ bool hasDataLabelsAtPoints( const Reference< chart2::XDataSeries >& xSeries ) if( xPointProp.is() ) { DataPointLabel aLabel; - if( (xPointProp->getPropertyValue( "Label" ) >>= aLabel) ) + if( (xPointProp->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabel) ) bRet = aLabel.ShowNumber || aLabel.ShowNumberInPercent || aLabel.ShowCategoryName; if( bRet ) break; @@ -843,7 +843,7 @@ bool hasDataLabelAtPoint( const Reference< chart2::XDataSeries >& xSeries, sal_I if( xProp.is() ) { DataPointLabel aLabel; - if( (xProp->getPropertyValue( "Label" ) >>= aLabel) ) + if( (xProp->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabel) ) bRet = aLabel.ShowNumber || aLabel.ShowNumberInPercent || aLabel.ShowCategoryName; } } @@ -872,9 +872,9 @@ void insertDataLabelToPoint( const Reference< beans::XPropertySet >& xPointProp if( xPointProp.is() ) { DataPointLabel aLabel; - xPointProp->getPropertyValue( "Label" ) >>= aLabel; + xPointProp->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabel; aLabel.ShowNumber = true; - xPointProp->setPropertyValue( "Label", uno::makeAny( aLabel ) ); + xPointProp->setPropertyValue(CHART_UNONAME_LABEL, uno::makeAny(aLabel)); } } catch(const uno::Exception &e) @@ -890,11 +890,11 @@ void deleteDataLabelsFromPoint( const Reference< beans::XPropertySet >& xPointPr if( xPointProp.is() ) { DataPointLabel aLabel; - xPointProp->getPropertyValue( "Label" ) >>= aLabel; + xPointProp->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabel; aLabel.ShowNumber = false; aLabel.ShowNumberInPercent = false; aLabel.ShowCategoryName = false; - xPointProp->setPropertyValue( "Label", uno::makeAny( aLabel ) ); + xPointProp->setPropertyValue(CHART_UNONAME_LABEL, uno::makeAny(aLabel)); } } catch(const uno::Exception &e) |