diff options
author | Jeff Huang <jeff@mail.ossii.com.tw> | 2022-02-07 15:06:46 +0800 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2022-02-09 07:12:58 +0100 |
commit | 3e5e0c2943e057873952b5394b81dbe6d29ef1e2 (patch) | |
tree | 1fc58ecd918c94e36087482910ca3d31b5aa0113 | |
parent | 4e0ba699ab3ba0294acd2589507b50fab82c98f5 (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
-rw-r--r-- | include/sfx2/strings.hrc | 1 | ||||
-rw-r--r-- | sfx2/inc/bitmaps.hlst | 1 | ||||
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 7 |
3 files changed, 0 insertions, 9 deletions
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); |