Blame SOURCES/0224-vcl-add-ITiledRenderable-getWindow-and-implement-in-.patch

135360
From 48e3532611ca0d7de71f9796bf3e8bf3263929dd Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Thu, 22 Oct 2015 10:15:34 +0200
135360
Subject: [PATCH 224/398] vcl: add ITiledRenderable::getWindow() and implement
135360
 in sw
135360
135360
(cherry picked from commit 981a974824642a81f86c526dea682cd27cd437db)
135360
135360
Change-Id: I9d0fad3904e74b44b0b126974ace4025f7a4fc5b
135360
---
135360
 include/vcl/ITiledRenderable.hxx  | 6 ++++++
135360
 sw/inc/unotxdoc.hxx               | 4 +++-
135360
 sw/source/uibase/uno/unotxdoc.cxx | 7 +++++++
135360
 3 files changed, 16 insertions(+), 1 deletion(-)
135360
135360
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx
135360
index c294d20dc9cf..bb891ab97f7b 100644
135360
--- a/include/vcl/ITiledRenderable.hxx
135360
+++ b/include/vcl/ITiledRenderable.hxx
135360
@@ -147,6 +147,12 @@ public:
135360
     {
135360
         return OUString();
135360
     }
135360
+
135360
+    /// Returns the current vcl::Window of the component.
135360
+    virtual vcl::Window* getWindow()
135360
+    {
135360
+        return 0;
135360
+    }
135360
 };
135360
 
135360
 } // namespace vcl
135360
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx
135360
index 346cab63ca02..d0eada25b6ef 100644
135360
--- a/sw/inc/unotxdoc.hxx
135360
+++ b/sw/inc/unotxdoc.hxx
135360
@@ -433,7 +433,9 @@ public:
135360
     /// @see vcl::ITiledRenderable::resetSelection().
135360
     virtual void resetSelection() SAL_OVERRIDE;
135360
     /// @see vcl::ITiledRenderable::getPartPageRectangles().
135360
-    virtual OUString getPartPageRectangles() SAL_OVERRIDE;
135360
+    virtual OUString getPartPageRectangles() override;
135360
+    /// @see vcl::ITiledRenderable::getWindow().
135360
+    virtual vcl::Window* getWindow() override;
135360
 
135360
     // ::com::sun::star::tiledrendering::XTiledRenderable
135360
     virtual void SAL_CALL paintTile( const ::css::uno::Any& Parent, ::sal_Int32 nOutputWidth, ::sal_Int32 nOutputHeight, ::sal_Int32 nTilePosX, ::sal_Int32 nTilePosY, ::sal_Int32 nTileWidth, ::sal_Int32 nTileHeight ) throw (::css::uno::RuntimeException, ::std::exception) SAL_OVERRIDE;
135360
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
135360
index fc1c6f411b74..658057d7a977 100644
135360
--- a/sw/source/uibase/uno/unotxdoc.cxx
135360
+++ b/sw/source/uibase/uno/unotxdoc.cxx
135360
@@ -3188,6 +3188,13 @@ OUString SwXTextDocument::getPartPageRectangles()
135360
     return pWrtShell->getPageRectangles();
135360
 }
135360
 
135360
+vcl::Window* SwXTextDocument::getWindow()
135360
+{
135360
+    SolarMutexGuard aGuard;
135360
+
135360
+    return &pDocShell->GetView()->GetEditWin();
135360
+}
135360
+
135360
 int SwXTextDocument::getPart()
135360
 {
135360
     SolarMutexGuard aGuard;
135360
-- 
135360
2.12.0
135360