diff options
Diffstat (limited to 'sfx2/source/view/viewsh.cxx')
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index bfb0552d2d7d..80c91ef25b7c 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -832,9 +832,11 @@ SfxInPlaceClient* SfxViewShell::GetUIActiveClient() const if ( !pClients ) return nullptr; + bool bIsTiledRendering = comphelper::LibreOfficeKit::isActive(); + for (SfxInPlaceClient* pIPClient : *pClients) { - if ( pIPClient->IsObjectUIActive() ) + if ( pIPClient->IsObjectUIActive() || ( bIsTiledRendering && pIPClient->IsObjectInPlaceActive() ) ) return pIPClient; } @@ -1464,6 +1466,17 @@ void SfxViewShell::afterCallbackRegistered() { } +vcl::Window* SfxViewShell::GetEditWindowForActiveOLEObj() const +{ + vcl::Window* pEditWin = nullptr; + SfxInPlaceClient* pIPClient = GetIPClient(); + if (pIPClient) + { + pEditWin = pIPClient->GetEditWin(); + } + return pEditWin; +} + void SfxViewShell::NotifyCursor(SfxViewShell* /*pViewShell*/) const { } |