From 41d1b01a906ed5872cc8f0b70439c6891a874f60 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 28 Jul 2015 11:48:54 +0200 Subject: API CHANGE: remove update() from X3DChartWindowProvider Revert the API change from e41c33b376d8b5776e400979eb8544db596c5bbe and use the existing css::util::XUpdatable instead. Change-Id: I3eba4c7def98c8765a970d54a7fe84a320d4313e Reviewed-on: https://gerrit.libreoffice.org/17382 Reviewed-by: Markus Mohrhard Tested-by: Markus Mohrhard --- chart2/inc/ChartModel.hxx | 3 +++ chart2/source/controller/main/ChartWindow.cxx | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'chart2') diff --git a/chart2/inc/ChartModel.hxx b/chart2/inc/ChartModel.hxx index 874d195a994b..4dab666495ea 100644 --- a/chart2/inc/ChartModel.hxx +++ b/chart2/inc/ChartModel.hxx @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -98,6 +99,7 @@ typedef cppu::WeakImplHelper< ,::com::sun::star::chart2::data::XDataSource ,::com::sun::star::document::XUndoManagerSupplier ,::com::sun::star::chart2::X3DChartWindowProvider + ,::com::sun::star::util::XUpdatable ,::com::sun::star::qa::XDumper > ChartModel_Base; @@ -588,6 +590,7 @@ public: virtual void SAL_CALL setWindow( sal_uInt64 nWindowPtr ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + // XUpdatable virtual void SAL_CALL update() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/chart2/source/controller/main/ChartWindow.cxx b/chart2/source/controller/main/ChartWindow.cxx index 15117e0ddf42..91969a4d689d 100644 --- a/chart2/source/controller/main/ChartWindow.cxx +++ b/chart2/source/controller/main/ChartWindow.cxx @@ -66,7 +66,9 @@ ChartWindow::ChartWindow( ChartController* pController, vcl::Window* pParent, Wi uno::Reference< chart2::X3DChartWindowProvider > x3DWindowProvider(pController->getModel(), uno::UNO_QUERY_THROW); sal_uInt64 nWindowPtr = reinterpret_cast(m_pOpenGLWindow.get()); x3DWindowProvider->setWindow(nWindowPtr); - x3DWindowProvider->update(); + uno::Reference const xUpdatable(x3DWindowProvider, + uno::UNO_QUERY_THROW); + xUpdatable->update(); } } @@ -81,7 +83,9 @@ void ChartWindow::dispose() { uno::Reference< chart2::X3DChartWindowProvider > x3DWindowProvider(m_pWindowController->getModel(), uno::UNO_QUERY_THROW); x3DWindowProvider->setWindow(0); - x3DWindowProvider->update(); + uno::Reference const xUpdatable(x3DWindowProvider, + uno::UNO_QUERY_THROW); + xUpdatable->update(); } m_pOpenGLWindow.disposeAndClear(); vcl::Window::dispose(); -- cgit