var flags = gPrintSetInterface.kInitSavePaperSizeType  | gPrintSetInterface.kInitSavePaperSizeUnit  | gPrintSetInterface.kInitSavePaperWidth     | gPrintSetInterface.kInitSavePaperHeight    | gPrintSetInterface.kInitSavePaperName      | 
var flags = gPrintSetInterface.kInitSavePaperSize      | 
function onAccept(){  if (gPrintSettings != null) {    var print_howToEnableUI = gPrintSetInterface.kFrameEnableNone;    // save these out so they can be picked up by the device spec    gPrintSettings.printerName = dialog.printerList.value;    print_howToEnableUI        = gPrintSettings.howToEnableFrameUI;    gPrintSettings.printToFile = dialog.fileCheck.checked;    if (gPrintSettings.printToFile)      if (!chooseFile())        return false;    if (dialog.allPagesRadio.selected) {      gPrintSettings.printRange = gPrintSetInterface.kRangeAllPages;    } else if (dialog.rangeRadio.selected) {      gPrintSettings.printRange = gPrintSetInterface.kRangeSpecifiedPageRange;    } else if (dialog.selectionRadio.selected) {      gPrintSettings.printRange = gPrintSetInterface.kRangeSelection;    }    gPrintSettings.startPageRange = dialog.fromPageInput.value;    gPrintSettings.endPageRange   = dialog.toPageInput.value;    gPrintSettings.numCopies      = dialog.numCopiesInput.value;    var frametype = gPrintSetInterface.kNoFrames;    if (print_howToEnableUI != gPrintSetInterface.kFrameEnableNone) {      if (dialog.asLaidOutRadio.selected) {        frametype = gPrintSetInterface.kFramesAsIs;      } else if (dialog.selectedFrameRadio.selected) {        frametype = gPrintSetInterface.kSelectedFrame;      } else if (dialog.eachFrameSepRadio.selected) {        frametype = gPrintSetInterface.kEachFrameSep;      } else {        frametype = gPrintSetInterface.kSelectedFrame;      }    }    gPrintSettings.printFrameType = frametype;    if (doDebug) {      dump("onAccept*********************************************\n");      dump("frametype      "+frametype+"\n");      dump("numCopies      "+gPrintSettings.numCopies+"\n");      dump("printRange     "+gPrintSettings.printRange+"\n");      dump("printerName    "+gPrintSettings.printerName+"\n");      dump("startPageRange "+gPrintSettings.startPageRange+"\n");      dump("endPageRange   "+gPrintSettings.endPageRange+"\n");      dump("printToFile    "+gPrintSettings.printToFile+"\n");    }  }  var saveToPrefs = false;  saveToPrefs = gPrefs.getBoolPref("print.save_print_settings");  if (saveToPrefs && printService != null) {    var flags = gPrintSetInterface.kInitSavePaperSizeType  |                 gPrintSetInterface.kInitSavePaperSizeUnit  |                gPrintSetInterface.kInitSavePaperWidth     |                 gPrintSetInterface.kInitSavePaperHeight    |                gPrintSetInterface.kInitSavePaperName      |                 gPrintSetInterface.kInitSaveColorSpace     |                gPrintSetInterface.kInitSaveInColor        |                gPrintSetInterface.kInitSaveResolutionName |                gPrintSetInterface.kInitSaveDownloadFonts  |                gPrintSetInterface.kInitSavePrintCommand   |                gPrintSetInterface.kInitSaveShrinkToFit    |                gPrintSetInterface.kInitSaveScaling;    printService.savePrintSettingsToPrefs(gPrintSettings, true, flags);  }  // set return value to "print"  if (paramBlock) {    paramBlock.SetInt(0, 1);  } else {    dump("*** FATAL ERROR: No paramBlock\n");  }  return true;}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/97296ebe2fab8aebd5f2faf29f429723891c0b93/printdialog.js/clean/xpfe/global/resources/content/printdialog.js