*aDoingPrint = mIsDoingPrinting;  if (!*aDoingPrint) { nsCOMPtr<nsIWebBrowserPrint> wbp; GetParentWebBrowserPrint(mContainer, getter_AddRefs(wbp));  if (wbp) { return wbp->GetDoingPrint(aDoingPrint); } }
*aDoingPrint = PR_FALSE; if (mPrintEngine) { return mPrintEngine->GetDoingPrintPreview(aDoingPrint); }
DocumentViewerImpl::GetDoingPrint(PRBool *aDoingPrint){  NS_ENSURE_ARG_POINTER(aDoingPrint);  *aDoingPrint = mIsDoingPrinting;  if (!*aDoingPrint) {    nsCOMPtr<nsIWebBrowserPrint> wbp;    GetParentWebBrowserPrint(mContainer, getter_AddRefs(wbp));    if (wbp) {      return wbp->GetDoingPrint(aDoingPrint);    }  }  return NS_OK;}