summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-06-15 17:56:38 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-06-15 17:26:47 +0000
commitc97422fa103618ba19bde0d815674a0173058bb4 (patch)
tree88eaaf927f5991428e9e9d3f1d7a36f66c2acffa /sd
parent38971bd6543143df41192b0552c51a8119d452a0 (diff)
sfx2: bring the view shell's LOK callback up to date with SdrModel
This fixes CppunitTest_sw_tiledrendering in the LOK_VIEW_CALLBACK=1 case. Change-Id: Ib79e57908c3edda0154341baba8279ede4281a42 Reviewed-on: https://gerrit.libreoffice.org/26313 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/Outliner.cxx17
1 files changed, 12 insertions, 5 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 12bbfe3b7bec..2ea4d8102b5e 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -619,8 +619,18 @@ bool Outliner::SearchAndReplaceAll()
else if( nullptr != dynamic_cast< const DrawViewShell *>( pViewShell.get() ))
{
// Disable selection change notifications during search all.
- pViewShell->GetDoc()->setTiledSearching(true);
- comphelper::ScopeGuard aGuard([pViewShell]() { pViewShell->GetDoc()->setTiledSearching(false); });
+ SfxViewShell& rSfxViewShell = pViewShell->GetViewShellBase();
+ if (comphelper::LibreOfficeKit::isViewCallback())
+ rSfxViewShell.setTiledSearching(true);
+ else
+ pViewShell->GetDoc()->setTiledSearching(true);
+ comphelper::ScopeGuard aGuard([pViewShell, &rSfxViewShell]()
+ {
+ if (comphelper::LibreOfficeKit::isViewCallback())
+ rSfxViewShell.setTiledSearching(false);
+ else
+ pViewShell->GetDoc()->setTiledSearching(false);
+ });
// Go to beginning/end of document.
maObjectIterator = ::sd::outliner::OutlinerContainer(this).begin();
@@ -671,10 +681,7 @@ bool Outliner::SearchAndReplaceAll()
boost::property_tree::write_json(aStream, aTree);
OString aPayload = aStream.str().c_str();
if (comphelper::LibreOfficeKit::isViewCallback())
- {
- SfxViewShell& rSfxViewShell = pViewShell->GetViewShellBase();
rSfxViewShell.libreOfficeKitViewCallback(LOK_CALLBACK_SEARCH_RESULT_SELECTION, aPayload.getStr());
- }
else
pViewShell->GetDoc()->libreOfficeKitCallback(LOK_CALLBACK_SEARCH_RESULT_SELECTION, aPayload.getStr());
}