diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-16 17:15:05 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-16 17:53:48 +0200 |
commit | d53bb5c044f039bd2fd38977a85012b03abbe32c (patch) | |
tree | be009e86054369146d270ca10918c90aaa0ce1e4 /sd/source | |
parent | tdf#101855 BETA.DIST: apply same constraints as Excel does. (diff) | |
download | core-d53bb5c044f039bd2fd38977a85012b03abbe32c.tar.gz core-d53bb5c044f039bd2fd38977a85012b03abbe32c.zip |
sd draw text: emit LOK_CALLBACK_VIEW_LOCK from registerCallback()
This is similar to commit 7b784e4e3927d91a96cd0b54fc43c9b488822e47 (sw
draw text: emit LOK_CALLBACK_VIEW_LOCK from registerCallback(),
2016-09-14), but this fix is for Impress.
Change-Id: I995d2ed223aa6ce7845c440039d176b6beada84e
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/view/ViewShellBase.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx index 8513599d920b..f07ba0447ee1 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -1059,6 +1059,17 @@ void ViewShellBase::NotifyCursor(SfxViewShell* pOtherShell) const rEditView.RegisterOtherShell(nullptr); // Text selection, if any. rEditView.DrawSelection(pOtherShell); + + // Shape text lock. + if (OutlinerView* pOutlinerView = pDrawView->GetTextEditOutlinerView()) + { + Rectangle aRectangle = pOutlinerView->GetOutputArea(); + vcl::Window* pWin = pThisShell->GetActiveWindow(); + if (pWin && pWin->GetMapMode().GetMapUnit() == MAP_100TH_MM) + aRectangle = OutputDevice::LogicToLogic(aRectangle, MAP_100TH_MM, MAP_TWIP); + OString sRectangle = aRectangle.toString(); + SfxLokHelper::notifyOtherView(&pDrawViewShell->GetViewShellBase(), pOtherShell, LOK_CALLBACK_VIEW_LOCK, "rectangle", sRectangle); + } } else { |