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:
dcone%netscape.com 2000-01-25 15:45:09 +00:00
parent 31654c9388
commit 55240d6d23

View File

@ -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)