cui/inc/strings.hrc | 2 ++ cui/source/dialogs/insdlg.cxx | 8 +++----- 2 files changed, 5 insertions(+), 5 deletions(-)
New commits: commit 3d32baa4df8d4061efcd5c5aa0a381e9a75240fa Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Thu Sep 30 10:56:52 2021 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Thu Sep 30 13:46:39 2021 +0200 cui: better label for the OLE insert progressbar It's inserting an OLE object, not really loading a document. Change-Id: Ie33e5ef8e80acbd2bfebd68119540c6d168ab120 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122877 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/cui/inc/strings.hrc b/cui/inc/strings.hrc index 6d8d75fae35f..44b6a063ae1e 100644 --- a/cui/inc/strings.hrc +++ b/cui/inc/strings.hrc @@ -394,4 +394,6 @@ #define RID_SVXSTR_UI_APPLYALL NC_("RID_SVXSTR_UI_APPLYALL", "Apply to %MODULE") +#define RID_SVXSTR_OLE_INSERT NC_("RID_SVXSTR_OLE_INSERT", "Inserting OLE object...") + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index a8b9507db640..2440d2ef0c0d 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -51,8 +51,6 @@ #include <sfx2/viewsh.hxx> #include <comphelper/seqstream.hxx> #include <sfx2/viewfrm.hxx> -#include <svx/strings.hrc> -#include <svx/dialmgr.hxx> #include <strings.hrc> @@ -210,7 +208,7 @@ short SvInsertOleDlg::run() xProgress = xProgressFactory->createStatusIndicator(); if (xProgress) { - aProgressText = SvxResId(RID_SVXSTR_DOC_LOAD); + aProgressText = CuiResId(RID_SVXSTR_OLE_INSERT); } } } @@ -316,8 +314,8 @@ short SvInsertOleDlg::run() xProgress = xProgressFactory->createStatusIndicator(); if (xProgress) { - OUString aDocLoad(SvxResId(RID_SVXSTR_DOC_LOAD)); - xProgress->start(aDocLoad, 100); + OUString aOleInsert(CuiResId(RID_SVXSTR_OLE_INSERT)); + xProgress->start(aOleInsert, 100); } } }