move the extra data of ERRCODE_SFXMSG_STYLEREPLACE out of the .src
Change-Id: I5c39d785d1f2a78e1fcfcd763deac60f047a5e4b
This commit is contained in:
parent
12b865c028
commit
9192e85076
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user