cui/source/dialogs/cuihyperdlg.cxx |   16 +++++++++++++---
 cui/source/dialogs/iconcdlg.cxx    |    4 +++-
 2 files changed, 16 insertions(+), 4 deletions(-)

New commits:
commit 0918d476c0bbe526cabb159523f35e4ab0bea2f2
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Fri Sep 8 21:22:48 2023 +0200
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Mon Oct 9 14:32:32 2023 +0200

    Hyperlink dialog: hide some buttons in LOK
    
    Change-Id: I55a4ca5921b44a7c091a3742a85f2c9da5a188a1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156760
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Attila Szűcs <attila.sz...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157672
    Tested-by: Jenkins

diff --git a/cui/source/dialogs/cuihyperdlg.cxx 
b/cui/source/dialogs/cuihyperdlg.cxx
index 86fd3c1a2c8f..4fec600441fd 100644
--- a/cui/source/dialogs/cuihyperdlg.cxx
+++ b/cui/source/dialogs/cuihyperdlg.cxx
@@ -109,10 +109,20 @@ SvxHpLinkDlg::SvxHpLinkDlg(SfxBindings* pBindings, 
SfxChildWindow* pChild, weld:
 
     // Buttons
     m_xOKBtn->show();
-    m_xApplyBtn->show();
     m_xCancelBtn->show();
-    m_xHelpBtn->show();
-    m_xResetBtn->show();
+
+    if (comphelper::LibreOfficeKit::isActive())
+    {
+        m_xApplyBtn->hide();
+        m_xHelpBtn->hide();
+        m_xResetBtn->hide();
+    }
+    else
+    {
+        m_xApplyBtn->show();
+        m_xHelpBtn->show();
+        m_xResetBtn->show();
+    }
 
     mbGrabFocus = true;
 
diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx
index 4aacf0e2b50e..9bda9d215dcf 100644
--- a/cui/source/dialogs/iconcdlg.cxx
+++ b/cui/source/dialogs/iconcdlg.cxx
@@ -18,6 +18,7 @@
  */
 
 #include <iconcdlg.hxx>
+#include <comphelper/lok.hxx>
 #include <cuihyperdlg.hxx>
 
 #include <cassert>
@@ -151,7 +152,8 @@ void SvxHpLinkDlg::ActivatePageImpl()
     // tdf#90496 - remember last used view in hyperlink dialog
     msRememberedPageId = msCurrentPageId;
 
-    m_xResetBtn->show();
+    if (!comphelper::LibreOfficeKit::isActive())
+        m_xResetBtn->show();
 }
 
 void SvxHpLinkDlg::DeActivatePageImpl ()

Reply via email to