summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJeff Huang <jeff@mail.ossii.com.tw>2022-02-07 15:06:46 +0800
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2022-02-09 07:12:58 +0100
commit3e5e0c2943e057873952b5394b81dbe6d29ef1e2 (patch)
tree1fc58ecd918c94e36087482910ca3d31b5aa0113 /sfx2
parent4e0ba699ab3ba0294acd2589507b50fab82c98f5 (diff)
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.tietze@documentfoundation.org> Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/bitmaps.hlst1
-rw-r--r--sfx2/source/doc/templatedlg.cxx7
2 files changed, 0 insertions, 8 deletions
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);