rem: gPrintSetInterface.kInitSaveEdges          | 
context: 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.kInitSavePaperSize      |                 gPrintSetInterface.kInitSaveColorSpace     |                gPrintSetInterface.kInitSaveEdges          |                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;}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/b6a2c90c178355758002f280b268b55b3c0a2603/printdialog.js/clean/xpfe/global/resources/content/printdialog.js