From 3093c638db9aa01d231131f80b449a9fb9187b97 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 2 Sep 2016 17:32:04 +0200 Subject: sd lok: implement SfxViewShell::NotifyCursor() API The same API is already implemented in sw and sc already, the sd implementation allows selecting a shape in one view, then creating a second view, and seeing the selection of the first view in the second view, without de-selecting and re-selecting the shape in question in the first view. Change-Id: Ia36e4772584d132f1ff6a7eb07ca4cadaa384ee9 Reviewed-on: https://gerrit.libreoffice.org/28623 Reviewed-by: Miklos Vajna Tested-by: Jenkins (cherry picked from commit 1e1eb87f36095acefe73579448ceef8442beba5f) --- chart2/source/controller/drawinglayer/DrawViewWrapper.cxx | 4 ++-- chart2/source/controller/inc/DrawViewWrapper.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'chart2') diff --git a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx index 1166959499cd..a5c59583d44e 100644 --- a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx +++ b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx @@ -164,12 +164,12 @@ SdrPageView* DrawViewWrapper::GetPageView() const return pSdrPageView; }; -void DrawViewWrapper::SetMarkHandles() +void DrawViewWrapper::SetMarkHandles(SfxViewShell* pOtherShell) { if( m_pMarkHandleProvider && m_pMarkHandleProvider->getMarkHandles( maHdlList ) ) return; else - SdrView::SetMarkHandles(); + SdrView::SetMarkHandles(pOtherShell); } SdrObject* DrawViewWrapper::getHitObject( const Point& rPnt ) const diff --git a/chart2/source/controller/inc/DrawViewWrapper.hxx b/chart2/source/controller/inc/DrawViewWrapper.hxx index 7e9853abe58e..4cb9274e5b8e 100644 --- a/chart2/source/controller/inc/DrawViewWrapper.hxx +++ b/chart2/source/controller/inc/DrawViewWrapper.hxx @@ -56,7 +56,7 @@ public: const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & xChartModel ); //fill list of selection handles 'aHdl' - virtual void SetMarkHandles() override; + virtual void SetMarkHandles(SfxViewShell* pOtherShell) override; SdrPageView* GetPageView() const; -- cgit v1.2.3