include/sfx2/strings.hrc        |    1 -
 sfx2/inc/bitmaps.hlst           |    1 -
 sfx2/source/doc/templatedlg.cxx |    7 -------
 3 files changed, 9 deletions(-)

New commits:
commit 3e5e0c2943e057873952b5394b81dbe6d29ef1e2
Author:     Jeff Huang <j...@mail.ossii.com.tw>
AuthorDate: Mon Feb 7 15:06:46 2022 +0800
Commit:     Heiko Tietze <heiko.tie...@documentfoundation.org>
CommitDate: Wed Feb 9 07:12:58 2022 +0100

    tdf#146937 Remove "refresh" command from Template Manager
    
    Change-Id: I12b43c10cca455a6885101909327b81940dafb07
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129584
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>
    Tested-by: Jenkins

diff --git a/include/sfx2/strings.hrc b/include/sfx2/strings.hrc
index 010b3497b089..a55424982dda 100644
--- a/include/sfx2/strings.hrc
+++ b/include/sfx2/strings.hrc
@@ -58,7 +58,6 @@
 #define STR_QRYTEMPL_MESSAGE                    NC_("STR_QRYTEMPL_MESSAGE", 
"The template '$(ARG1)' on which this document is based, has been modified. Do 
you want to update the styles of the current document, using the modified 
template?")
 #define STR_QRYTEMPL_UPDATE_BTN                 NC_("STR_QRYTEMPL_UPDATE_BTN", 
"~Update Styles")
 #define STR_QRYTEMPL_KEEP_BTN                   NC_("STR_QRYTEMPL_KEEP_BTN", 
"~Keep Old Styles")
-#define STR_ACTION_REFRESH                      NC_("STR_ACTION_REFRESH", 
"~Refresh")
 #define STR_CATEGORY_NEW                        NC_("STR_CATEGORY_NEW", "~New 
Category")
 #define STR_CATEGORY_DELETE                     NC_("STR_CATEGORY_DELETE", 
"~Delete Category")
 #define STR_MSG_EXPORT_SUCCESS                  NC_("STR_MSG_EXPORT_SUCCESS", 
"$1 templates successfully exported.")
diff --git a/sfx2/inc/bitmaps.hlst b/sfx2/inc/bitmaps.hlst
index f48563d83fe9..c3fb205bb7bb 100644
--- a/sfx2/inc/bitmaps.hlst
+++ b/sfx2/inc/bitmaps.hlst
@@ -56,7 +56,6 @@ inline constexpr OUStringLiteral SFX_THUMBNAIL_BASE_256 = 
u"res/base_thumbnail_2
 inline constexpr OUStringLiteral BMP_RECENTDOC_REMOVE = 
u"res/recentdoc_remove.png";
 inline constexpr OUStringLiteral BMP_RECENTDOC_REMOVE_HIGHLIGHTED = 
u"res/recentdoc_remove_highlighted.png";
 inline constexpr OUStringLiteral BMP_DEFAULT = u"res/templatestar.png";
-inline constexpr OUStringLiteral BMP_ACTION_REFRESH = u"res/reload.png";
 
 inline constexpr OUStringLiteral BMP_128X128_CALC_DOC = 
u"sfx2/res/128x128_calc_doc-p.png";
 inline constexpr OUStringLiteral BMP_128X128_DRAW_DOC = 
u"sfx2/res/128x128_draw_doc-p.png";
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 0561c5f380dc..37187ffbc691 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -63,7 +63,6 @@ constexpr OUStringLiteral TM_SETTING_VIEWMODE = u"ViewMode";
 #define MNI_ACTION_NEW_FOLDER "new"
 #define MNI_ACTION_RENAME_FOLDER "rename"
 #define MNI_ACTION_DELETE_FOLDER "delete"
-#define MNI_ACTION_REFRESH   "refresh"
 #define MNI_ACTION_DEFAULT   "default"
 #define MNI_ACTION_DEFAULT_WRITER   "default_writer"
 #define MNI_ACTION_DEFAULT_CALC   "default_calc"
@@ -178,7 +177,6 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(weld::Window 
*pParent)
     mxActionBar->append_item(MNI_ACTION_RENAME_FOLDER, 
SfxResId(STR_CATEGORY_RENAME), BMP_ACTION_RENAME);
     mxActionBar->append_item(MNI_ACTION_DELETE_FOLDER, 
SfxResId(STR_CATEGORY_DELETE), BMP_ACTION_DELETE_CATEGORY);
     mxActionBar->append_separator("separator");
-    mxActionBar->append_item(MNI_ACTION_REFRESH, SfxResId(STR_ACTION_REFRESH), 
BMP_ACTION_REFRESH);
     mxActionBar->append_item(MNI_ACTION_DEFAULT, 
SfxResId(STR_ACTION_RESET_ALL_DEFAULT_TEMPLATES));
     mxActionBar->append_item(MNI_ACTION_DEFAULT_WRITER, 
SfxResId(STR_ACTION_RESET_WRITER_TEMPLATE), BMP_ACTION_DEFAULT_WRITER);
     mxActionBar->append_item(MNI_ACTION_DEFAULT_CALC, 
SfxResId(STR_ACTION_RESET_CALC_TEMPLATE), BMP_ACTION_DEFAULT_CALC);
@@ -517,11 +515,6 @@ IMPL_LINK(SfxTemplateManagerDlg, MenuSelectHdl, const 
OString&, rIdent, void)
         OnCategoryRename();
     else if (rIdent == MNI_ACTION_DELETE_FOLDER)
         OnCategoryDelete();
-    else if (rIdent == MNI_ACTION_REFRESH)
-    {
-        mxLocalView->reload();
-        SearchUpdate();
-    }
     else if (rIdent == MNI_ACTION_DEFAULT)
     {
         DefaultTemplateMenuSelectHdl(MNI_ACTION_DEFAULT_WRITER);

Reply via email to