summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2019-03-30 17:34:09 +0100
committerAndras Timar <andras.timar@collabora.com>2019-09-16 21:21:32 +0200
commitad27462a68837253863a02c19713cc0fe76a5178 (patch)
tree32f5b3cfbeeea2060ddff497c9791fc69fdb8c81 /cui
parent[cp] CPLinux-MPL.conf is not needed any more (diff)
downloadcore-ad27462a68837253863a02c19713cc0fe76a5178.tar.gz
core-ad27462a68837253863a02c19713cc0fe76a5178.zip
tdf#124361 hide Add / Import button in Online
Change-Id: I6c8fb30fc1b8e0e6467a428f65838084fc08ca1e Reviewed-on: https://gerrit.libreoffice.org/69967 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/78990 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/tpbitmap.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/cui/source/tabpages/tpbitmap.cxx b/cui/source/tabpages/tpbitmap.cxx
index 78f795ee0cf8..7dd325d9a37f 100644
--- a/cui/source/tabpages/tpbitmap.cxx
+++ b/cui/source/tabpages/tpbitmap.cxx
@@ -44,6 +44,7 @@
#include <sfx2/dialoghelper.hxx>
#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
+#include <comphelper/lok.hxx>
using namespace com::sun::star;
@@ -114,6 +115,8 @@ SvxBitmapTabPage::SvxBitmapTabPage(TabPageParent pParent, const SfxItemSet& rInA
m_xPositionOffY->connect_value_changed(aLink);
m_xTileOffset->connect_value_changed( LINK( this, SvxBitmapTabPage, ModifyTileOffsetHdl ) );
m_xBtnImport->connect_clicked( LINK(this, SvxBitmapTabPage, ClickImportHdl) );
+ if (comphelper::LibreOfficeKit::isActive())
+ m_xBtnImport->hide();
// Calculate size of display boxes
Size aSize = getDrawPreviewOptimalSize(this);