Kaydet (Commit) 508957db authored tarafından Takeshi Abe's avatar Takeshi Abe

tdf#108706 Unify loading document progress bar label

This also reduces the number of strings to be translated.

Change-Id: I032ba12c1e762ee3851658d439dfe2c81c6bd34f
Reviewed-on: https://gerrit.libreoffice.org/41329Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTakeshi Abe <tabe@fixedpoint.jp>
üst 0e35b773
......@@ -26,6 +26,8 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/propertysequence.hxx>
#include <unotools/streamwrap.hxx>
#include <svx/dialmgr.hxx>
#include <svx/strings.hrc>
#include <svx/xmlgrhlp.hxx>
#include <svtools/sfxecode.hxx>
#include <sfx2/frame.hxx>
......@@ -342,7 +344,7 @@ bool ScXMLImportWrapper::Import( ImportFlags nMode, ErrCode& rError )
if (xStatusIndicator.is())
{
sal_Int32 nProgressRange(1000000);
xStatusIndicator->start(ScGlobal::GetRscString(STR_LOAD_DOC), nProgressRange);
xStatusIndicator->start(SvxResId(RID_SVXSTR_DOC_LOAD), nProgressRange);
xInfoSet->setPropertyValue("ProgressRange", uno::makeAny(nProgressRange));
}
......
......@@ -334,7 +334,6 @@
#define STR_PSEUDOSHEET_BACKGROUND NC_("STR_PSEUDOSHEET_BACKGROUND", "Background" )
#define STR_PSEUDOSHEET_NOTES NC_("STR_PSEUDOSHEET_NOTES", "Notes" )
#define STR_POWERPOINT_IMPORT NC_("STR_POWERPOINT_IMPORT", "PowerPoint Import")
#define STR_LOAD_DOC NC_("STR_LOAD_DOC", "Load Document" )
#define STR_SAVE_DOC NC_("STR_SAVE_DOC", "Save Document" )
#define STR_POOLSHEET_BANDED_CELL NC_("STR_POOLSHEET_BANDED_CELL", "Banding cell" )
#define STR_POOLSHEET_HEADER NC_("STR_POOLSHEET_HEADER", "Header" )
......
......@@ -30,6 +30,8 @@
#include "drawdoc.hxx"
#include "Outliner.hxx"
#include <unotools/streamwrap.hxx>
#include <svx/dialmgr.hxx>
#include <svx/strings.hrc>
#include <svx/xmlgrhlp.hxx>
#include "DrawDocShell.hxx"
......@@ -524,7 +526,7 @@ bool SdXMLFilter::Import( ErrCode& nError )
if(mxStatusIndicator.is())
{
sal_Int32 nProgressRange(1000000);
OUString aMsg(SdResId(STR_LOAD_DOC));
OUString aMsg(SvxResId(RID_SVXSTR_DOC_LOAD));
mxStatusIndicator->start(aMsg, nProgressRange);
// set ProgressRange
......
......@@ -308,7 +308,6 @@
#define STR_ALIGN_RIGHT NC_("STR_ALIGN_RIGHT", "right" )
#define STR_CMDBOXWINDOW NC_("STR_CMDBOXWINDOW", "Commands" )
#define RID_DOCUMENTSTR NC_("RID_DOCUMENTSTR", "Formula" )
#define STR_STATSTR_READING NC_("STR_STATSTR_READING", "Loading document..." )
#define STR_STATSTR_WRITING NC_("STR_STATSTR_WRITING", "Saving document..." )
#define STR_MATH_DOCUMENT_FULLTYPE_CURRENT NC_("STR_MATH_DOCUMENT_FULLTYPE_CURRENT", "%PRODUCTNAME %PRODUCTVERSION Formula")
#define RID_ERR_IDENT NC_("RID_ERR_IDENT", "ERROR : " )
......
......@@ -54,13 +54,14 @@ one go*/
#include <xmloff/nmspmap.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/xmlmetai.hxx>
#include <svx/dialmgr.hxx>
#include <svx/strings.hrc>
#include <memory>
#include "mathmlattr.hxx"
#include "mathmlimport.hxx"
#include "register.hxx"
#include <strings.hrc>
#include <unomodel.hxx>
#include <document.hxx>
#include <utility.hxx>
......@@ -161,7 +162,7 @@ ErrCode SmXMLImportWrapper::Import(SfxMedium &rMedium)
sal_Int32 nProgressRange(nSteps);
if (xStatusIndicator.is())
{
xStatusIndicator->start(SmResId(STR_STATSTR_READING), nProgressRange);
xStatusIndicator->start(SvxResId(RID_SVXSTR_DOC_LOAD), nProgressRange);
}
nSteps=0;
......
......@@ -262,7 +262,6 @@
// Statusbar-titles
#define STR_STATSTR_W4WREAD NC_("STR_STATSTR_W4WREAD", "Importing document...")
#define STR_STATSTR_W4WWRITE NC_("STR_STATSTR_W4WWRITE", "Exporting document...")
#define STR_STATSTR_SWGREAD NC_("STR_STATSTR_SWGREAD", "Loading document...")
#define STR_STATSTR_SWGWRITE NC_("STR_STATSTR_SWGWRITE", "Saving document...")
#define STR_STATSTR_REFORMAT NC_("STR_STATSTR_REFORMAT", "Repagination...")
#define STR_STATSTR_AUTOFORMAT NC_("STR_STATSTR_AUTOFORMAT", "Formatting document automatically...")
......
......@@ -40,6 +40,8 @@
#include <svtools/sfxecode.hxx>
#include <svl/stritem.hxx>
#include <unotools/streamwrap.hxx>
#include <svx/dialmgr.hxx>
#include <svx/strings.hrc>
#include <svx/xmlgrhlp.hxx>
#include <svx/xmleohlp.hxx>
#include <comphelper/genericpropertyset.hxx>
......@@ -59,7 +61,6 @@
#include <unotextrange.hxx>
#include <swmodule.hxx>
#include <SwXMLSectionList.hxx>
#include <strings.hrc>
#include <SwStyleNameMapper.hxx>
#include <poolfmt.hxx>
......@@ -633,7 +634,7 @@ ErrCode XMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, con
sal_Int32 nProgressRange(1000000);
if (xStatusIndicator.is())
{
xStatusIndicator->start(SwResId(STR_STATSTR_SWGREAD), nProgressRange);
xStatusIndicator->start(SvxResId(RID_SVXSTR_DOC_LOAD), nProgressRange);
}
uno::Any aProgRange;
aProgRange <<= nProgressRange;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment