gPrintSetInterface.kInitSaveEdges          | 
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 && !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.kInitSavePaperSize      |                 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/6bd4528854d82f8174c5cf26f2486109c60e83e6/printdialog.js/clean/toolkit/components/printing/content/printdialog.js