summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-11 16:23:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-11 19:25:32 +0000
commit4af3a2998dd36a940f741b335e8327da2a4dead9 (patch)
treea70d289cdecece4a5bc6a5a08ed1711dba4329aa /sc
parentf7b9956e07b32b3ceccf24fa118015abdefbb315 (diff)
reuse RID_SECURITY_WARNING_TITLE for update links infobar
Change-Id: Ifbfb10ee373b8eca8e1019f999ac8e545f180c97 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143942 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/globstr.hrc2
-rw-r--r--sc/source/ui/docshell/docsh4.cxx5
2 files changed, 5 insertions, 2 deletions
diff --git a/sc/inc/globstr.hrc b/sc/inc/globstr.hrc
index 9aaf84c8af7a..e1f1a485eed0 100644
--- a/sc/inc/globstr.hrc
+++ b/sc/inc/globstr.hrc
@@ -345,7 +345,7 @@
#define STR_DOC_PRINTED NC_("STR_DOC_PRINTED", "Printed")
#define STR_BY NC_("STR_BY", "by")
#define STR_ON NC_("STR_ON", "on")
-#define STR_RELOAD_TABLES NC_("STR_RELOAD_TABLES", "Security Warning: Automatic update of external links has been disabled.")
+#define STR_RELOAD_TABLES NC_("STR_RELOAD_TABLES", "Automatic update of external links has been disabled.")
#define STR_REIMPORT_AFTER_LOAD NC_("STR_REIMPORT_AFTER_LOAD", "This file contains queries. The results of these queries were not saved.\nDo you want these queries to be repeated?")
#define STR_INSERT_FULL NC_("STR_INSERT_FULL", "Filled cells cannot be shifted\nbeyond the sheet.")
#define STR_TABINSERT_ERROR NC_("STR_TABINSERT_ERROR", "The table could not be inserted.")
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 4c27228b1219..04b605edb57a 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -32,6 +32,8 @@ using namespace ::com::sun::star;
#include <sfx2/objface.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/docfilt.hxx>
+#include <sfx2/sfxresid.hxx>
+#include <sfx2/strings.hrc>
#include <svtools/ehdl.hxx>
#include <svtools/langtab.hxx>
#include <basic/sbxcore.hxx>
@@ -539,7 +541,8 @@ void ScDocShell::Execute( SfxRequest& rReq )
if (pViewFrame)
{
pViewFrame->RemoveInfoBar(u"enablecontent");
- auto pInfoBar = pViewFrame->AppendInfoBar("enablecontent", "", ScResId(STR_RELOAD_TABLES), InfobarType::WARNING);
+ auto pInfoBar = pViewFrame->AppendInfoBar("enablecontent", SfxResId(RID_SECURITY_WARNING_TITLE),
+ ScResId(STR_RELOAD_TABLES), InfobarType::WARNING);
if (pInfoBar)
{
weld::Button& rHelpBtn = pInfoBar->addButton();