if (mPrt && mPrt->mPrintSettings) { return mPrt->mPrintSettings->SetIsCancelled(PR_TRUE); }
DocumentViewerImpl::Cancel(){  if (mPrt && mPrt->mPrintSettings) {    return mPrt->mPrintSettings->SetIsCancelled(PR_TRUE);  }  return NS_ERROR_FAILURE;}