rem: var ifreq = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor); gWebBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint); 
context: function setPrinterDefaultsForSelectedPrinter(){  /* FixMe: We should save the old printer's values here... */  gPrintSettings.printerName  = dialog.printerList.value;  var ifreq = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor);  gWebBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint);   // First get any defaults from the printer   gWebBrowserPrint.initPrintSettingsFromPrinter(gPrintSettings.printerName, gPrintSettings);  var flags = gPrintSetInterface.kInitSavePaperSizeType | gPrintSetInterface.kInitSavePaperSizeUnit |              gPrintSetInterface.kInitSavePaperWidth | gPrintSetInterface.kInitSavePaperHeight |              gPrintSetInterface.kInitSavePaperName |              gPrintSetInterface.kInitSavePrintCommand;  // now augment them with any values from last time  gWebBrowserPrint.initPrintSettingsFromPrefs(gPrintSettings, true, flags);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b850da33e8edfb8472d5f22e5c161a4e96a75c19/printdialog.js/clean/xpfe/global/resources/content/printdialog.js