return Confirm(parent, dialogTitle, text, _retval);
NS_ENSURE_ARG_POINTER(checkValue); NS_ENSURE_ARG_POINTER(_retval);  StDialogHandler	theHandler(dlog_ConfirmCheck, CBrowserChrome::GetLWindowForDOMWindow(parent)); LWindow			 *theDialog = theHandler.GetDialog(); nsCAutoString    cStr; Str255           pStr;  CPlatformUCSConversion::GetInstance()->UCSToPlatform(nsDependentString(dialogTitle), pStr); theDialog->SetDescriptor(pStr);  LStaticText	*msgText = dynamic_cast<LStaticText*>(theDialog->FindPaneByID('Msg ')); CPlatformUCSConversion::GetInstance()->UCSToPlatform(nsDependentString(text), cStr); cStr.ReplaceChar('\n', '\r'); msgText->SetText(const_cast<char *>(cStr.get()), cStr.Length());  LCheckBox *checkBox = dynamic_cast<LCheckBox*>(theDialog->FindPaneByID('Chck')); CPlatformUCSConversion::GetInstance()->UCSToPlatform(nsDependentString(checkMsg), pStr); checkBox->SetDescriptor(pStr); checkBox->SetValue(*checkValue ? 1 : 0);  theDialog->Show(); theDialog->Select();  while (true) { MessageT	hitMessage = theHandler.DoDialog();  if (hitMessage == msg_OK) { *_retval = PR_TRUE; *checkValue = checkBox->GetValue(); break; } else if (hitMessage == msg_Cancel) { *_retval = PR_FALSE; break; } }  return NS_OK;
NS_IMETHODIMP CPromptService::ConfirmCheck(nsIDOMWindow *parent,                                           const PRUnichar *dialogTitle,                                           const PRUnichar *text,                                           const PRUnichar *checkboxMsg,                                           PRBool *checkValue,                                           PRBool *_retval){  // TODO implement proper confirmation checkbox dialog  return Confirm(parent, dialogTitle, text, _retval);}