diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-03-17 15:13:55 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-23 02:55:32 +0100 |
commit | 6294d8f4dff5deaa4efbe2a88113a5262217092a (patch) | |
tree | cb8e2164a9fc6438a36331ea2b921786483fd38b /chart2/source/controller | |
parent | d2e77741cb8d31e3011893eea3639547204ff3a1 (diff) |
Update DeleteYErrorbar function to handle X and Y bars.
Diffstat (limited to 'chart2/source/controller')
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 4 | ||||
-rw-r--r-- | chart2/source/controller/main/ChartController.hxx | 2 | ||||
-rw-r--r-- | chart2/source/controller/main/ChartController_Insert.cxx | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index c7e7eadc52e9..23566699cc0e 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -1130,8 +1130,10 @@ bool lcl_isFormatObjectCommand( const rtl::OString& aCommand ) this->executeDispatch_InsertErrorBars(false); else if( aCommand.equals("InsertYErrorBars")) this->executeDispatch_InsertErrorBars(true); + else if( aCommand.equals("DeleteXErrorBars")) + this->executeDispatch_DeleteErrorBars(false); else if( aCommand.equals("DeleteYErrorBars")) - this->executeDispatch_DeleteYErrorBars(); + this->executeDispatch_DeleteErrorBars(true); else if( aCommand.equals("InsertTrendlineEquation")) this->executeDispatch_InsertTrendlineEquation(); else if( aCommand.equals("DeleteTrendlineEquation")) diff --git a/chart2/source/controller/main/ChartController.hxx b/chart2/source/controller/main/ChartController.hxx index 4253e2ded90b..b142f161f69c 100644 --- a/chart2/source/controller/main/ChartController.hxx +++ b/chart2/source/controller/main/ChartController.hxx @@ -637,7 +637,7 @@ private: void executeDispatch_DeleteMeanValue(); void executeDispatch_DeleteTrendline(); void executeDispatch_DeleteTrendlineEquation(); - void executeDispatch_DeleteYErrorBars(); + void executeDispatch_DeleteErrorBars( bool bYError ); void executeDispatch_InsertDataLabels(); void executeDispatch_InsertDataLabel(); diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx index f9dc3d81a143..93a793fce819 100644 --- a/chart2/source/controller/main/ChartController_Insert.cxx +++ b/chart2/source/controller/main/ChartController_Insert.cxx @@ -676,7 +676,7 @@ void ChartController::executeDispatch_DeleteTrendlineEquation() } } -void ChartController::executeDispatch_DeleteYErrorBars() +void ChartController::executeDispatch_DeleteErrorBars( bool bYError ) { uno::Reference< chart2::XDataSeries > xDataSeries( ObjectIdentifier::getDataSeriesForCID( m_aSelection.getSelectedCID(), getModel() )); @@ -686,7 +686,7 @@ void ChartController::executeDispatch_DeleteYErrorBars() ActionDescriptionProvider::createDescription( ActionDescriptionProvider::DELETE, String( SchResId( STR_OBJECT_CURVE ))), m_xUndoManager ); - StatisticsHelper::removeErrorBars( xDataSeries ); + StatisticsHelper::removeErrorBars( xDataSeries, bYError ); aUndoGuard.commit(); } } |