diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2017-06-27 23:35:08 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-07-19 12:10:50 +0200 |
commit | 5633b42c8991a580ff1fb81177fc204b23763d79 (patch) | |
tree | b70d9ed4c6036a432f4a70148c3d09c6a1ff3092 | |
parent | 7f1940b1c8667538e2892a9bc3b898d0944b544b (diff) |
lok - add support for in place chart editing
This commit add a minimal support for editing chart embedded in a
spreadsheet or a text document or a presentation.
Graphic objects can be moved and resized, text objects can be edited.
Reviewed-on: https://gerrit.libreoffice.org/39342
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
(cherry picked from commit eba883c8a2ce045fc7bd3848d796ca10b7f4ba51)
Change-Id: I8e637dabf328a94bd6bb0e309a245302cff421d8
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index 8fc744e5c033..5541bcaf96f3 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -841,9 +841,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; } |