rem: doingPrintPreview = window.arguments[4];  printEngine.doPrintPreview = doingPrintPreview; 
add: printEngine.doPrintPreview = window.arguments[4]; 
context: function InitPrintEngineWindow(){  /* Tell the nsIPrintEngine object what window is rendering the email */  printEngine.setWindow(window);  /* hide the printEngine window.  see bug #73995 */  /* See if we got arguments.   * Window was opened via window.openDialog.  Copy argument   * and perform compose initialization    */  if ( window.arguments && window.arguments[0] != null ) {    var numSelected = window.arguments[0];    var uriArray = window.arguments[1];    var statusFeedback = window.arguments[2];    if (window.arguments[3]) {      printSettings = window.arguments[3].QueryInterface(Components.interfaces.nsIPrintSettings);      if (printSettings) {        printSettings.isCancelled = false;      }    }    if (window.arguments[4]) {      doingPrintPreview = window.arguments[4];      //printEngine.showWindow(doingPrintPreview);      printEngine.doPrintPreview = doingPrintPreview;    } else {      printEngine.doPrintPreview = false;    }    printEngine.showWindow(false);    if (window.arguments.length > 5) {      printEngine.setMsgType(window.arguments[5]);    } else {      printEngine.setMsgType(Components.interfaces.nsIMsgPrintEngine.MNAB_START);    }    if (window.arguments.length > 6) {      printEngine.setParentWindow(window.arguments[6]);    } else {      printEngine.setParentWindow(null);    }    gStartupPPObserver.printengine = this;    printEngine.setStatusFeedback(statusFeedback);    printEngine.setStartupPPObserver(gStartupPPObserver);    if (numSelected > 0) {      printEngine.setPrintURICount(numSelected);      for (var i = 0; i < numSelected; i++) {        printEngine.addPrintURI(uriArray[i]);              //dump(uriArray[i] + "\n");      }	        }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a4f9e1af6934a96549a97f99973bbe5d87847168/msgPrintEngine.js/clean/mailnews/base/resources/content/msgPrintEngine.js