gCurrentlyPrinting = PR_FALSE;
DocumentViewerImpl::DonePrintingPages(PrintObject* aPO){  //NS_ASSERTION(aPO, "Pointer is null!");  PRINT_DEBUG_MSG3("****** In DV::DonePrintingPages PO: %p (%s)\n", aPO, gFrameTypesStr[aPO->mFrameType]);  if (aPO != nsnull) {    aPO->mHasBeenPrinted = PR_TRUE;    nsresult rv;    PRBool didPrint = PrintDocContent(mPrt->mPrintObject, rv);    if (NS_SUCCEEDED(rv) && didPrint) {      PRINT_DEBUG_MSG4("****** In DV::DonePrintingPages PO: %p (%s) didPrint:%s (Not Done Printing)\n", aPO, gFrameTypesStr[aPO->mFrameType], PRT_YESNO(didPrint));      return PR_FALSE;    }  }  DoProgressForAsIsFrames();  DoProgressForSeparateFrames();  delete mPrt;  mPrt = nsnull;  return PR_TRUE;}