mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
Added flags so selection button does not come up and print to file is hidden. Put in support for quiet
printing (no dialog) r=rods
This commit is contained in:
parent
31654c9388
commit
55240d6d23
@ -63,7 +63,7 @@ NS_IMETHODIMP nsDeviceContextSpecFactoryWin :: CreateDeviceContextSpec(nsIDevice
|
||||
prntdlg.hDevMode = NULL;
|
||||
prntdlg.hDevNames = NULL;
|
||||
prntdlg.hDC = NULL;
|
||||
prntdlg.Flags = PD_ALLPAGES | PD_RETURNIC;
|
||||
prntdlg.Flags = PD_ALLPAGES | PD_RETURNIC | PD_NOSELECTION | PD_HIDEPRINTTOFILE;
|
||||
prntdlg.nFromPage = 0;
|
||||
prntdlg.nToPage = 0;
|
||||
prntdlg.nMinPage = 0;
|
||||
@ -78,6 +78,13 @@ NS_IMETHODIMP nsDeviceContextSpecFactoryWin :: CreateDeviceContextSpec(nsIDevice
|
||||
prntdlg.hPrintTemplate = NULL;
|
||||
prntdlg.hSetupTemplate = NULL;
|
||||
|
||||
|
||||
if(PR_TRUE == aQuiet){
|
||||
prntdlg.Flags = PD_RETURNDEFAULT;
|
||||
}
|
||||
|
||||
|
||||
|
||||
BOOL res = ::PrintDlg(&prntdlg);
|
||||
|
||||
if (TRUE == res)
|
||||
|
Loading…
Reference in New Issue
Block a user