rem: var flags = gPrintSetInterface.kInitSavePaperSize      | 
add: var flags = gPrintSetInterface.kInitSavePaperSizeType  | gPrintSetInterface.kInitSavePaperSizeUnit  | gPrintSetInterface.kInitSavePaperWidth     | gPrintSetInterface.kInitSavePaperHeight    | gPrintSetInterface.kInitSavePaperName      | 
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 && !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;}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/243d3f998224aae221b9063f6f74ca911a65c09a/printdialog.js/clean/toolkit/components/printing/content/printdialog.js