Kaydet (Commit) 39fb60ee authored tarafından Noel Grandin's avatar Noel Grandin

convert sc/../warnbox.hxx from String to OUString

Change-Id: I1a94de9d2afcf21bd7c46cedccf2189bf2f6285a
üst 669ec69d
......@@ -31,7 +31,7 @@ class ScCbWarningBox : public WarningBox
public:
/** @param rMsgStr Resource ID for the message text.
@param bDefYes true = "Yes" focused, false = "No" focused. */
ScCbWarningBox( Window* pParent, const String& rMsgStr, bool bDefYes = true );
ScCbWarningBox( Window* pParent, const OUString& rMsgStr, bool bDefYes = true );
/** Opens dialog if IsDialogEnabled() returns true.
@descr If after executing the dialog the checkbox "Do not show again" is set,
......
......@@ -27,13 +27,13 @@
// ============================================================================
ScCbWarningBox::ScCbWarningBox( Window* pParent, const String& rMsgStr, bool bDefYes ) :
ScCbWarningBox::ScCbWarningBox( Window* pParent, const OUString& rMsgStr, bool bDefYes ) :
WarningBox( pParent, WB_YES_NO | (bDefYes ? WB_DEF_YES : WB_DEF_NO), rMsgStr )
{
// By default, the check box is ON, and the user needs to un-check it to
// disable all future warnings.
SetCheckBoxState(true);
SetCheckBoxText(String(ScResId(SCSTR_WARN_ME_IN_FUTURE_CHECK)));
SetCheckBoxText(ScResId(SCSTR_WARN_ME_IN_FUTURE_CHECK));
}
sal_Int16 ScCbWarningBox::Execute()
......
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