diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-09-08 21:22:48 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2023-10-09 14:32:32 +0200 |
commit | 0918d476c0bbe526cabb159523f35e4ab0bea2f2 (patch) | |
tree | a9355a03d531185ab42b14de4cecd9e16b32530c /cui | |
parent | 4e1aec7937c0ccd9aa3c5c34091e94786f16e145 (diff) |
Hyperlink dialog: hide some buttons in LOK
Change-Id: I55a4ca5921b44a7c091a3742a85f2c9da5a188a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156760
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Attila Szűcs <attila.szucs@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157672
Tested-by: Jenkins
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/cuihyperdlg.cxx | 16 | ||||
-rw-r--r-- | cui/source/dialogs/iconcdlg.cxx | 4 |
2 files changed, 16 insertions, 4 deletions
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 () |