summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-10-22 14:42:38 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-10-22 15:51:37 +0200
commit4c6db362dc31edaefd553860d1e0ef0be55c4862 (patch)
tree9ec959f20a9575dff52464915c2191f486e2f934 /sc
parent8522948ba2f30fb703d4725086d30d9aa2a0cf4c (diff)
sc: implement vcl::ITiledRenderable::getWindow()
Change-Id: If50b4b5baea36e161675afd368fc54bdec01d9a5
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/docuno.hxx3
-rw-r--r--sc/source/ui/unoobj/docuno.cxx11
2 files changed, 14 insertions, 0 deletions
diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx
index f155888c80e0..3369cbed0edb 100644
--- a/sc/inc/docuno.hxx
+++ b/sc/inc/docuno.hxx
@@ -412,6 +412,9 @@ public:
/// @see lok::Document::resetSelection().
virtual void resetSelection() override;
+
+ /// @see vcl::ITiledRenderable::getWindow().
+ virtual vcl::Window* getWindow() override;
};
class ScDrawPagesObj : public cppu::WeakImplHelper<
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 3d3e7b7ee65a..cc1004522024 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -845,6 +845,17 @@ void ScModelObj::resetSelection()
pDocShell->GetDocument().GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_TEXT_SELECTION, "");
}
+vcl::Window* ScModelObj::getWindow()
+{
+ SolarMutexGuard aGuard;
+
+ ScViewData* pViewData = ScDocShell::GetViewData();
+ if (!pViewData)
+ return 0;
+
+ return pViewData->GetActiveWin();
+}
+
void ScModelObj::initializeForTiledRendering()
{
SolarMutexGuard aGuard;