summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorgokaysatir <gokaysatir@collabora.com>2020-08-08 16:27:48 +0300
committerJan Holesovsky <kendy@collabora.com>2020-08-11 12:07:16 +0200
commit4a31a63c5e4d4dac01426581c39bc1ef9278f6cb (patch)
tree4a0b6b7fa4d972b75d6b023ec831f976cab32c61 /svx
parent68e5ff123e7bca884fcf23cf9f69422eb41fa0f7 (diff)
core: Hide shape area bitmap import button.
Change-Id: I6f6987ea82c102fc5ac44a1c48a234c9f43484e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100391 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/area/AreaPropertyPanelBase.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
index 8cfc9c6d2459..3725feea9674 100644
--- a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
+++ b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
@@ -37,6 +37,7 @@
#include <sfx2/opengrf.hxx>
#include <tools/urlobj.hxx>
#include <bitmaps.hlst>
+#include <comphelper/lok.hxx>
using namespace css;
using namespace css::uno;
@@ -379,7 +380,8 @@ IMPL_LINK_NOARG(AreaPropertyPanelBase, SelectFillTypeHdl, ListBox&, void)
GraphicObject aBitmap;
if(nPos == static_cast< sal_Int32 >(BITMAP))
{
- mpBmpImport->Show();
+ if (!comphelper::LibreOfficeKit::isActive())
+ mpBmpImport->Show();
const SvxBitmapListItem* pItem = pSh->GetItem(SID_BITMAP_LIST);
if(pItem)
{
@@ -1234,7 +1236,8 @@ void AreaPropertyPanelBase::Update()
{
if(pSh && pSh->GetItem(SID_BITMAP_LIST) && eXFS == BITMAP)
{
- mpBmpImport->Show();
+ if (!comphelper::LibreOfficeKit::isActive())
+ mpBmpImport->Show();
mpLbFillType->SelectEntryPos(sal_uInt32(BITMAP));
mpLbFillAttr->Fill(pSh->GetItem(SID_BITMAP_LIST)->GetBitmapList());