Kaydet (Commit) 4c6db362 authored tarafından Miklos Vajna's avatar Miklos Vajna

sc: implement vcl::ITiledRenderable::getWindow()

Change-Id: If50b4b5baea36e161675afd368fc54bdec01d9a5
üst 8522948b
......@@ -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<
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment