Blame SOURCES/0237-sd-implement-vcl-ITiledRenderable-getWindow.patch

135360
From 675db4db926a09024df57ae8f9be457662393757 Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Thu, 22 Oct 2015 14:15:14 +0200
135360
Subject: [PATCH 237/398] sd: implement vcl::ITiledRenderable::getWindow()
135360
135360
(cherry picked from commit 8522948ba2f30fb703d4725086d30d9aa2a0cf4c)
135360
135360
Change-Id: I8bc7316d9304d9e764ee846fe3af34599bf6fc35
135360
---
135360
 sd/source/ui/inc/unomodel.hxx    |  4 +++-
135360
 sd/source/ui/unoidl/unomodel.cxx | 11 +++++++++++
135360
 2 files changed, 14 insertions(+), 1 deletion(-)
135360
135360
diff --git a/sd/source/ui/inc/unomodel.hxx b/sd/source/ui/inc/unomodel.hxx
135360
index 4d7314875f0b..a24f774e2fc9 100644
135360
--- a/sd/source/ui/inc/unomodel.hxx
135360
+++ b/sd/source/ui/inc/unomodel.hxx
135360
@@ -257,7 +257,9 @@ public:
135360
     /// @see vcl::ITiledRenderable::setGraphicSelection().
135360
     virtual void setGraphicSelection(int nType, int nX, int nY) SAL_OVERRIDE;
135360
     /// @see lok::Document::resetSelection().
135360
-    virtual void resetSelection() SAL_OVERRIDE;
135360
+    virtual void resetSelection() override;
135360
+    /// @see vcl::ITiledRenderable::getWindow().
135360
+    virtual vcl::Window* getWindow() override;
135360
 
135360
     // XComponent
135360
 
135360
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
135360
index 6ae01a28efac..1628a18df296 100644
135360
--- a/sd/source/ui/unoidl/unomodel.cxx
135360
+++ b/sd/source/ui/unoidl/unomodel.cxx
135360
@@ -2539,6 +2539,17 @@ void SdXImpressDocument::resetSelection()
135360
     pSdrView->UnmarkAll();
135360
 }
135360
 
135360
+vcl::Window* SdXImpressDocument::getWindow()
135360
+{
135360
+    SolarMutexGuard aGuard;
135360
+
135360
+    DrawViewShell* pViewShell = GetViewShell();
135360
+    if (!pViewShell)
135360
+        return 0;
135360
+
135360
+    return pViewShell->GetActiveWindow();
135360
+}
135360
+
135360
 uno::Reference< i18n::XForbiddenCharacters > SdXImpressDocument::getForbiddenCharsTable()
135360
 {
135360
     uno::Reference< i18n::XForbiddenCharacters > xForb(mxForbidenCharacters);
135360
-- 
135360
2.12.0
135360