move the extra data of ERRCODE_SFXMSG_STYLEREPLACE out of the .src
Change-Id: I5c39d785d1f2a78e1fcfcd763deac60f047a5e4b
This commit is contained in:
@@ -271,7 +271,6 @@ void SfxErrorHandler::GetClassString(sal_uLong lClassId, OUString &rStr)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool SfxErrorHandler::GetErrorString(
|
bool SfxErrorHandler::GetErrorString(
|
||||||
sal_uLong lErrId, OUString &rStr, sal_uInt16 &nFlags) const
|
sal_uLong lErrId, OUString &rStr, sal_uInt16 &nFlags) const
|
||||||
|
|
||||||
@@ -295,9 +294,9 @@ bool SfxErrorHandler::GetErrorString(
|
|||||||
{
|
{
|
||||||
ResString aErrorString(aEr.GetResString());
|
ResString aErrorString(aEr.GetResString());
|
||||||
|
|
||||||
sal_uInt16 nResFlags = aErrorString.GetFlags();
|
if (lErrId == ERRCODE_SFXMSG_STYLEREPLACE)
|
||||||
if ( nResFlags )
|
nFlags = ERRCODE_MSG_ERROR | ERRCODE_BUTTON_OK_CANCEL;
|
||||||
nFlags = nResFlags;
|
|
||||||
rStr = rStr.replaceAll("$(ERROR)", aErrorString.GetString());
|
rStr = rStr.replaceAll("$(ERROR)", aErrorString.GetString());
|
||||||
bRet = true;
|
bRet = true;
|
||||||
}
|
}
|
||||||
@@ -318,7 +317,6 @@ bool SfxErrorHandler::GetErrorString(
|
|||||||
return bRet;
|
return bRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SfxErrorContext::SfxErrorContext(
|
SfxErrorContext::SfxErrorContext(
|
||||||
sal_uInt16 nCtxIdP, vcl::Window *pWindow, sal_uInt16 nResIdP, ResMgr *pMgrP)
|
sal_uInt16 nCtxIdP, vcl::Window *pWindow, sal_uInt16 nResIdP, ResMgr *pMgrP)
|
||||||
: ErrorContext(pWindow), nCtxId(nCtxIdP), nResId(nResIdP), pMgr(pMgrP)
|
: ErrorContext(pWindow), nCtxId(nCtxIdP), nResId(nResIdP), pMgr(pMgrP)
|
||||||
|
@@ -340,7 +340,6 @@ Resource RID_ERRHDL
|
|||||||
};
|
};
|
||||||
String ERRCODE_SFXMSG_STYLEREPLACE
|
String ERRCODE_SFXMSG_STYLEREPLACE
|
||||||
{
|
{
|
||||||
ExtraData = ERRCODE_MSG_ERROR | ERRCODE_BUTTON_OK_CANCEL ;
|
|
||||||
Text [ en-US ] = "Should the $(ARG1) Style be replaced?" ;
|
Text [ en-US ] = "Should the $(ARG1) Style be replaced?" ;
|
||||||
};
|
};
|
||||||
String ERRCODE_SFX_NOFILTER
|
String ERRCODE_SFX_NOFILTER
|
||||||
|
Reference in New Issue
Block a user