include/svx/srchdlg.hxx | 1 + svx/source/dialog/srchdlg.cxx | 7 +++++++ 2 files changed, 8 insertions(+)
New commits: commit 564af6b066b71aa48cca9bb843668a2fb47d999c Author: Pedro Pinto Silva <pedro.si...@collabora.com> AuthorDate: Wed Mar 22 10:07:43 2023 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Oct 10 17:31:25 2023 +0200 jsdialog: hide help and close buttons for searchreplace dialog Signed-off-by: Pedro Pinto Silva <pedro.si...@collabora.com> Change-Id: I0f3bc2cd6839c74dff40431f8659d7f90b285d12 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149293 (cherry picked from commit c65142fd9fd9a43e1f27cb11f5b4048600b5a4c4) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157720 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/include/svx/srchdlg.hxx b/include/svx/srchdlg.hxx index 9a75199ad818..f069af48c539 100644 --- a/include/svx/srchdlg.hxx +++ b/include/svx/srchdlg.hxx @@ -198,6 +198,7 @@ private: std::unique_ptr<weld::CheckButton> m_xWordBtn; std::unique_ptr<weld::Button> m_xCloseBtn; + std::unique_ptr<weld::Button> m_xHelpBtn; std::unique_ptr<weld::CheckButton> m_xIncludeDiacritics; std::unique_ptr<weld::CheckButton> m_xIncludeKashida; std::unique_ptr<weld::Expander> m_xOtherOptionsExpander; diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx index dcb467b5475f..a17711bc46fb 100644 --- a/svx/source/dialog/srchdlg.cxx +++ b/svx/source/dialog/srchdlg.cxx @@ -301,6 +301,7 @@ SvxSearchDialog::SvxSearchDialog(weld::Window* pParent, SfxChildWindow* pChildWi , m_xSearchFormattedCB(m_xBuilder->weld_check_button("searchformatted")) , m_xWordBtn(m_xBuilder->weld_check_button("wholewords")) , m_xCloseBtn(m_xBuilder->weld_button("close")) + , m_xHelpBtn(m_xBuilder->weld_button("help")) , m_xIncludeDiacritics(m_xBuilder->weld_check_button("includediacritics")) , m_xIncludeKashida(m_xBuilder->weld_check_button("includekashida")) , m_xOtherOptionsExpander(m_xBuilder->weld_expander("OptionsExpander")) @@ -327,6 +328,12 @@ SvxSearchDialog::SvxSearchDialog(weld::Window* pParent, SfxChildWindow* pChildWi , m_xAllSheetsCB(m_xBuilder->weld_check_button("allsheets")) , m_xCalcStrFT(m_xBuilder->weld_label("entirecells")) { + if (comphelper::LibreOfficeKit::isActive()) + { + m_xCloseBtn->hide(); + m_xHelpBtn->hide(); + } + m_aPresentIdle.SetTimeout(50); m_aPresentIdle.SetInvokeHandler(LINK(this, SvxSearchDialog, PresentTimeoutHdl_Impl));