summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2019-03-30 17:34:09 +0100
committerTor Lillqvist <tml@collabora.com>2019-04-02 12:28:38 +0300
commit1d4ecfc9a3b98fccc0512d10aa6d0ddc50fd5a25 (patch)
treebc3d87514a008152fb704bd6cd20da242a62ec1d /cui
parentdeb409861d677b8799c8120c29412d3d9e4a73b9 (diff)
tdf#124361 hide Add / Import button in Online
Change-Id: I6c8fb30fc1b8e0e6467a428f65838084fc08ca1e
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 00897f4848b9..58950bf978cf 100644
--- a/cui/source/tabpages/tpbitmap.cxx
+++ b/cui/source/tabpages/tpbitmap.cxx
@@ -43,6 +43,7 @@
#include <sfx2/viewsh.hxx>
#include <sfx2/dialoghelper.hxx>
#include <o3tl/make_unique.hxx>
+#include <comphelper/lok.hxx>
using namespace com::sun::star;
@@ -128,6 +129,8 @@ SvxBitmapTabPage::SvxBitmapTabPage( vcl::Window* pParent, const SfxItemSet& rInA
m_pPositionOffY->SetModifyHdl(aLink);
m_pTileOffset->SetModifyHdl( LINK( this, SvxBitmapTabPage, ModifyTileOffsetHdl ) );
m_pBtnImport->SetClickHdl( LINK(this, SvxBitmapTabPage, ClickImportHdl) );
+ if (comphelper::LibreOfficeKit::isActive())
+ m_pBtnImport->Hide();
// Calculate size of display boxes
Size aSize = getDrawPreviewOptimalSize(this);