move the extra data of ERRCODE_SFXMSG_STYLEREPLACE out of the .src

Change-Id: I5c39d785d1f2a78e1fcfcd763deac60f047a5e4b
This commit is contained in:
Caolán McNamara 2017-02-08 10:58:47 +00:00
parent 12b865c028
commit 9192e85076
2 changed files with 3 additions and 6 deletions

View File

@ -271,7 +271,6 @@ void SfxErrorHandler::GetClassString(sal_uLong lClassId, OUString &rStr)
}
}
bool SfxErrorHandler::GetErrorString(
sal_uLong lErrId, OUString &rStr, sal_uInt16 &nFlags) const
@ -295,9 +294,9 @@ bool SfxErrorHandler::GetErrorString(
{
ResString aErrorString(aEr.GetResString());
sal_uInt16 nResFlags = aErrorString.GetFlags();
if ( nResFlags )
nFlags = nResFlags;
if (lErrId == ERRCODE_SFXMSG_STYLEREPLACE)
nFlags = ERRCODE_MSG_ERROR | ERRCODE_BUTTON_OK_CANCEL;
rStr = rStr.replaceAll("$(ERROR)", aErrorString.GetString());
bRet = true;
}
@ -318,7 +317,6 @@ bool SfxErrorHandler::GetErrorString(
return bRet;
}
SfxErrorContext::SfxErrorContext(
sal_uInt16 nCtxIdP, vcl::Window *pWindow, sal_uInt16 nResIdP, ResMgr *pMgrP)
: ErrorContext(pWindow), nCtxId(nCtxIdP), nResId(nResIdP), pMgr(pMgrP)

View File

@ -340,7 +340,6 @@ Resource RID_ERRHDL
};
String ERRCODE_SFXMSG_STYLEREPLACE
{
ExtraData = ERRCODE_MSG_ERROR | ERRCODE_BUTTON_OK_CANCEL ;
Text [ en-US ] = "Should the $(ARG1) Style be replaced?" ;
};
String ERRCODE_SFX_NOFILTER