diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-22 14:42:38 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-22 15:51:37 +0200 |
commit | 4c6db362dc31edaefd553860d1e0ef0be55c4862 (patch) | |
tree | 9ec959f20a9575dff52464915c2191f486e2f934 /sc/source | |
parent | 8522948ba2f30fb703d4725086d30d9aa2a0cf4c (diff) |
sc: implement vcl::ITiledRenderable::getWindow()
Change-Id: If50b4b5baea36e161675afd368fc54bdec01d9a5
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
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; |