Bug 118563 The new print properties dialog does not save papersize / fix for saving to pref on suite r+sr=neil.parkwaycc.co.uk, a=asa

git-svn-id: svn://10.0.0.236/trunk@174418 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
masayuki%d-toybox.com 2005-06-10 18:29:09 +00:00
parent 384a5ced62
commit f680b7a7d2

View File

@ -142,6 +142,11 @@ function NSPrint()
if (webBrowserPrint) {
gPrintSettings = GetPrintSettings();
webBrowserPrint.print(gPrintSettings, null);
if (gPrintSettingsAreGlobal && gSavePrintSettings) {
var psService = Components.classes["@mozilla.org/gfx/printsettings-service;1"]
.getService(Components.interfaces.nsIPrintSettingsService);
psService.savePrintSettingsToPrefs(gPrintSettings, true, gPrintSettings.kInitSaveAll);
}
}
} catch (e) {
// Pressing cancel is expressed as an NS_ERROR_ABORT return value,