summaryrefslogtreecommitdiffstats
path: root/sd/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-09-16 17:15:05 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-09-16 17:53:48 +0200
commitd53bb5c044f039bd2fd38977a85012b03abbe32c (patch)
treebe009e86054369146d270ca10918c90aaa0ce1e4 /sd/source
parenttdf#101855 BETA.DIST: apply same constraints as Excel does. (diff)
downloadcore-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.cxx11
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
{