diff options
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/inc/ChartController.hxx | 2 | ||||
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/chart2/source/controller/inc/ChartController.hxx b/chart2/source/controller/inc/ChartController.hxx index 3397a1bcf5d1..3ad81a5848ca 100644 --- a/chart2/source/controller/inc/ChartController.hxx +++ b/chart2/source/controller/inc/ChartController.hxx @@ -332,7 +332,7 @@ public: void SetAndApplySelection(const css::uno::Reference<css::drawing::XShape>& rxShape); void StartTextEdit( const Point* pMousePixel = nullptr ); - DECL_LINK( NotifyUndoActionHdl, SdrUndoAction*, void ); + void NotifyUndoActionHdl( std::unique_ptr<SdrUndoAction> ); css::uno::Reference<css::uno::XInterface> const & getChartView(); diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index cd9e889066e3..9fbc7b6de301 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -73,6 +73,7 @@ #include <sal/log.hxx> #include <svx/sidebar/SelectionChangeHandler.hxx> +#include <svx/svdundo.hxx> #include <toolkit/awt/vclxwindow.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <vcl/svapp.hxx> @@ -1433,7 +1434,7 @@ void SAL_CALL ChartController::modified( //todo? update menu states ? } -IMPL_LINK( ChartController, NotifyUndoActionHdl, SdrUndoAction*, pUndoAction, void ) +void ChartController::NotifyUndoActionHdl( std::unique_ptr<SdrUndoAction> pUndoAction ) { ENSURE_OR_RETURN_VOID( pUndoAction, "invalid Undo action" ); @@ -1463,7 +1464,8 @@ DrawModelWrapper* ChartController::GetDrawModelWrapper() m_pDrawModelWrapper = pProvider->getDrawModelWrapper(); if ( m_pDrawModelWrapper.get() ) { - m_pDrawModelWrapper->getSdrModel().SetNotifyUndoActionHdl( LINK( this, ChartController, NotifyUndoActionHdl ) ); + m_pDrawModelWrapper->getSdrModel().SetNotifyUndoActionHdl( + std::bind(&ChartController::NotifyUndoActionHdl, this, std::placeholders::_1) ); } } return m_pDrawModelWrapper.get(); |