diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2019-05-26 15:52:29 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2019-11-25 13:48:40 +0100 |
commit | b124f068d12de289f5ae1fe5898b048cf15932a9 (patch) | |
tree | 539f8dceb8efeef218b80e088ec1ef0df0f6ab10 /cui | |
parent | svx: LOK: convert background child-dialogs to async (diff) | |
download | core-b124f068d12de289f5ae1fe5898b048cf15932a9.tar.gz core-b124f068d12de289f5ae1fe5898b048cf15932a9.zip |
cui: LOK: Disable browsing for background images in LOK
LOK doesn't support browsing the file system, so
disable the browse button to allow the user to
still use the other settings, if they are editing
a file with a background image.
(cherry picked from commit f5f271e755c384ce0a6eff85fb55b14b9083f394)
Change-Id: I604f0a8e2bd4d25e35f40f959754b3d98c33c9fe
Reviewed-on: https://gerrit.libreoffice.org/83634
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/backgrnd.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx index 9c29a1ae725a..2c7e2e8e22c1 100644 --- a/cui/source/tabpages/backgrnd.cxx +++ b/cui/source/tabpages/backgrnd.cxx @@ -52,6 +52,7 @@ #include <vcl/GraphicObject.hxx> #include <svx/unobrushitemhelper.hxx> +#include <comphelper/lok.hxx> using namespace css; @@ -315,6 +316,10 @@ SvxBackgroundTabPage::SvxBackgroundTabPage(TabPageParent pParent, const SfxItemS m_xBackgroundColorSet->SetSelectHdl(HDL(BackgroundColorHdl_Impl)); m_xBackgroundColorSet->SetStyle(m_xBackgroundColorSet->GetStyle() | WB_ITEMBORDER | WB_NAMEFIELD | WB_NONEFIELD); m_xBackgroundColorSet->SetText(SvxResId(RID_SVXSTR_NOFILL)); + + // Browsing files is not supported in LOK. + if (comphelper::LibreOfficeKit::isActive()) + m_xBtnBrowse->hide(); } SvxBackgroundTabPage::~SvxBackgroundTabPage() |