From 0918d476c0bbe526cabb159523f35e4ab0bea2f2 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Fri, 8 Sep 2023 21:22:48 +0200 Subject: Hyperlink dialog: hide some buttons in LOK MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I55a4ca5921b44a7c091a3742a85f2c9da5a188a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156760 Tested-by: Jenkins CollaboraOffice Reviewed-by: Attila Szűcs Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157672 Tested-by: Jenkins --- cui/source/dialogs/cuihyperdlg.cxx | 16 +++++++++++++--- cui/source/dialogs/iconcdlg.cxx | 4 +++- 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'cui') 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 +#include #include #include @@ -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 () -- cgit