rem: var didOK = false; try { gPrintSettings = GetPrintSettings();  var webBrowserPrint = null; if (content) { webBrowserPrint = content .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebBrowserPrint); }  didOK = goPageSetup(window, gPrintSettings); if (didOK) { if (webBrowserPrint) { if (gPrintSettingsAreGlobal && gSavePrintSettings) { var psService = Components.classes["@mozilla.org/gfx/printsettings-service;1"] .getService(Components.interfaces.nsIPrintSettingsService); psService.savePrintSettingsToPrefs(gPrintSettings, false, gPrintSettings.kInitSaveNativeData); } } } } catch (e) { dump("NSPrintSetup() " + e + "\n"); } return didOK; 
add: PrintUtils.showPageSetup(); 
context: function NSPrintSetup(){  var didOK = false;  try {    gPrintSettings = GetPrintSettings();    var webBrowserPrint = null;    if (content) {      webBrowserPrint = content        .QueryInterface(Components.interfaces.nsIInterfaceRequestor)        .getInterface(Components.interfaces.nsIWebBrowserPrint);    }    didOK = goPageSetup(window, gPrintSettings);    if (didOK) {      if (webBrowserPrint) {        if (gPrintSettingsAreGlobal && gSavePrintSettings) {          var psService = Components.classes["@mozilla.org/gfx/printsettings-service;1"]                                            .getService(Components.interfaces.nsIPrintSettingsService);          psService.savePrintSettingsToPrefs(gPrintSettings, false, gPrintSettings.kInitSaveNativeData);        }      }    }  } catch (e) {    dump("NSPrintSetup() " + e + "\n");  }  return didOK;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a4f9e1af6934a96549a97f99973bbe5d87847168/printing.js/buggy/xpfe/communicator/resources/content/printing.js