Bug 312763, page setup settings aren't saved or used on the Mac. Save native print settings after page setup. r=mano

This commit is contained in:
mark%moxienet.com 2005-10-18 20:14:16 +00:00
parent aef01712c9
commit 929c7881fd

View File

@ -53,6 +53,12 @@ var PrintUtils = {
var PRINTPROMPTSVC = Components.classes["@mozilla.org/embedcomp/printingprompt-service;1"]
.getService(Components.interfaces.nsIPrintingPromptService);
PRINTPROMPTSVC.showPageSetup(window, printSettings, null);
if (gSavePrintSettings) {
// Page Setup data is a "native" setting on the Mac
var PSSVC = Components.classes["@mozilla.org/gfx/printsettings-service;1"]
.getService(Components.interfaces.nsIPrintSettingsService);
PSSVC.savePrintSettingsToPrefs(printSettings, true, printSettings.kInitSaveNativeData);
}
} catch (e) {
dump("showPageSetup "+e+"\n");
return false;