gCurrentlyPrinting = PR_FALSE;
PrintData::~PrintData() {  // printing is complete, clean up now  if (mPrintPS) {    // XXX we never call BeginObservingDocument on this pres shell.    mPrintPS->EndObservingDocument();    mPrintPS->Destroy();  }  OnEndPrinting(NS_OK); // removes listener  if (mPrintPS) {    mPrintDC->EndDocument();#ifdef DEBUG_PRINTING    fprintf(mDebugFD, "****************** End Document ************************\n");#endif  }  delete mPrintObject;  mPrintDocList->Clear();  delete mPrintDocList;#ifdef DEBUG_PRINTING  fclose(mDebugFD);#endif}