diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-07-30 15:15:16 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-08-29 15:49:19 +0200 |
commit | e56d143c36af028825a8e824201a3aa193862af4 (patch) | |
tree | 91f4dc75fd3a24c6267e88aa26289dd819a54216 /embeddedobj/source | |
parent | d2b4b608696e7a6ba7ed15c97972aa8ed3707bb2 (diff) |
lok: Disable chart editing on mobile
Disabled editing of all embedded objects.
[ Miklos: motivation is that the UI is complex and the small mobile
screen is not suitable to expose this functionality as-is. Disable till
a more compact UI can be exposed. ]
Change-Id: Id1c598c84adc12b8b52d006992d85dcae5601ad9
Reviewed-on: https://gerrit.libreoffice.org/78270
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'embeddedobj/source')
-rw-r--r-- | embeddedobj/source/commonembedding/embedobj.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/embeddedobj/source/commonembedding/embedobj.cxx b/embeddedobj/source/commonembedding/embedobj.cxx index 3370c273dc6a..7bed8710ba2c 100644 --- a/embeddedobj/source/commonembedding/embedobj.cxx +++ b/embeddedobj/source/commonembedding/embedobj.cxx @@ -227,6 +227,13 @@ void OCommonEmbeddedObject::SwitchStateTo_Impl( sal_Int32 nNextState ) } else { + if(comphelper::LibreOfficeKit::isActive() && comphelper::LibreOfficeKit::isMobile()) + { + // Disable embedded object editing (e.g. chart) on mobile + if(nNextState == embed::EmbedStates::INPLACE_ACTIVE || nNextState == embed::EmbedStates::UI_ACTIVE) + return; + } + if ( nNextState == embed::EmbedStates::INPLACE_ACTIVE ) { if ( !m_xClientSite.is() ) |