cui/source/tabpages/tpbitmap.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 1d4ecfc9a3b98fccc0512d10aa6d0ddc50fd5a25
Author:     Andras Timar <andras.ti...@collabora.com>
AuthorDate: Sat Mar 30 17:34:09 2019 +0100
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Tue Apr 2 12:28:38 2019 +0300

    tdf#124361 hide Add / Import button in Online
    
    Change-Id: I6c8fb30fc1b8e0e6467a428f65838084fc08ca1e

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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to