summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-07-12 15:22:39 -0800
committerKatarina Behrens <Katarina.Behrens@cib.de>2018-09-05 11:34:22 +0200
commit3c86ffd8ded628e6f2b4187948a1b1056f6a0f56 (patch)
treed6b2fcaa83d4dfd803d81bb557d835a68226eb45
parenta14088e2822f6018f19677705a74d2f37d0d0431 (diff)
tdf#118696 impress navigator: zoom slide/slide object on select
Change-Id: I5656c99f72fb94c791282bbf2fcf5044bcdd8a7a Reviewed-on: https://gerrit.libreoffice.org/57379 Tested-by: Jenkins Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
-rw-r--r--sd/source/ui/docshell/docshel4.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx
index cfe41f9d940c..d2b9693deeec 100644
--- a/sd/source/ui/docshell/docshel4.cxx
+++ b/sd/source/ui/docshell/docshel4.cxx
@@ -87,6 +87,8 @@
#include <SdUnoDrawView.hxx>
+#include <sfx2/zoomitem.hxx>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using ::sd::framework::FrameworkHelper;
@@ -858,11 +860,14 @@ void DrawDocShell::GotoBookmark(const OUString& rBookmark)
pDrawViewShell->SwitchPage(nSdPgNum);
}
+ // show page
+ SvxZoomItem aZoom;
+ aZoom.SetType( SvxZoomType::WHOLEPAGE );
+ pDrawViewShell->GetDispatcher()->ExecuteList(SID_ATTR_ZOOM, SfxCallMode::ASYNCHRON, { &aZoom });
+
if (pObj != nullptr)
{
- // show and select object
- pDrawViewShell->MakeVisible(pObj->GetLogicRect(),
- *pDrawViewShell->GetActiveWindow());
+ // select object
pDrawViewShell->GetView()->UnmarkAll();
pDrawViewShell->GetView()->MarkObj(
pObj,