diff options
Diffstat (limited to 'sc/source/ui/docshell/docsh5.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh5.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx index 935220d02c66..19eab038a074 100644 --- a/sc/source/ui/docshell/docsh5.cxx +++ b/sc/source/ui/docshell/docsh5.cxx @@ -33,6 +33,7 @@ #include <docsh.hxx> #include <global.hxx> #include <globstr.hrc> +#include <scresid.hxx> #include <globalnames.hxx> #include <undodat.hxx> #include <undotab.hxx> @@ -84,7 +85,7 @@ void ScDocShell::ErrorMessage(const char* pGlobStrId) std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(pParent ? pParent->GetFrameWeld() : nullptr, VclMessageType::Info, VclButtonsType::Ok, - ScGlobal::GetRscString(pGlobStrId))); + ScResId(pGlobStrId))); xInfoBox->run(); if (bFocus) @@ -293,7 +294,7 @@ ScDBData* ScDocShell::GetDBData( const ScRange& rMarked, ScGetDBMode eMode, ScGe aDocument.PreprocessDBDataUpdate(); pUndoColl = new ScDBCollection( *pColl ); // Undo for import range - OUString aImport = ScGlobal::GetRscString( STR_DBNAME_IMPORT ); + OUString aImport = ScResId( STR_DBNAME_IMPORT ); long nCount = 0; const ScDBData* pDummy = nullptr; ScDBCollection::NamedDBs& rDBs = pColl->getNamedDBs(); @@ -525,7 +526,7 @@ void ScDocShell::DoConsolidate( const ScConsolidateParam& rParam, bool bRecord ) vcl::Window* pWin = GetActiveDialogParent(); std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr, VclMessageType::Info, VclButtonsType::Ok, - ScGlobal::GetRscString(STR_CONSOLIDATE_ERR1))); + ScResId(STR_CONSOLIDATE_ERR1))); xInfoBox->run(); return; } @@ -737,7 +738,7 @@ void ScDocShell::UseScenario( SCTAB nTab, const OUString& rName, bool bRecord ) vcl::Window* pWin = GetActiveDialogParent(); std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr, VclMessageType::Info, VclButtonsType::Ok, - ScGlobal::GetRscString(STR_PROTECTIONERR))); + ScResId(STR_PROTECTIONERR))); xInfoBox->run(); } } @@ -746,7 +747,7 @@ void ScDocShell::UseScenario( SCTAB nTab, const OUString& rName, bool bRecord ) vcl::Window* pWin = GetActiveDialogParent(); std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr, VclMessageType::Info, VclButtonsType::Ok, - ScGlobal::GetRscString(STR_SCENARIO_NOTFOUND))); + ScResId(STR_SCENARIO_NOTFOUND))); xInfoBox->run(); } } @@ -992,7 +993,7 @@ bool ScDocShell::MoveTable( SCTAB nSrcTab, SCTAB nDestTab, bool bCopy, bool bRec return true; // nothing to do, but valid } - ScProgress* pProgress = new ScProgress(this, ScGlobal::GetRscString(STR_UNDO_MOVE_TAB), + ScProgress* pProgress = new ScProgress(this, ScResId(STR_UNDO_MOVE_TAB), aDocument.GetCodeCount(), true); bool bDone = aDocument.MoveTab( nSrcTab, nDestTab, pProgress ); delete pProgress; |