include/svx/srchdlg.hxx       |    1 +
 svx/source/dialog/srchdlg.cxx |    7 +++++++
 2 files changed, 8 insertions(+)

New commits:
commit c65142fd9fd9a43e1f27cb11f5b4048600b5a4c4
Author:     Pedro Pinto Silva <pedro.si...@collabora.com>
AuthorDate: Wed Mar 22 10:07:43 2023 +0100
Commit:     Pedro Silva <pedro.si...@collabora.com>
CommitDate: Thu May 4 10:55:06 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

diff --git a/include/svx/srchdlg.hxx b/include/svx/srchdlg.hxx
index 2b975e435083..d413fd0539a4 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 69483c124770..ed9657fc9c67 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));
 

Reply via email to