PATCH:printing to a file
Duane Clark
dclark at akamail.com
Mon Apr 30 20:28:31 CDT 2001
Howdy,
Somewhere along the way, the mechanism for when the "Print to file"
button is is selected, seems to have changed (it used to print to a file
named "FILE:"). It just takes an entry in the sample config file to make
it work again. While at it, I also included a patch for swapping the
portrait/landscape icon when clicking the buttons in the printer setup
dialog.
Changelog:
Add entry to sample config file for printing to a file.
Swap portrait/landscape icon when button clicked.
-------------- next part --------------
Index: documentation/samples/config
===================================================================
RCS file: /home/wine/wine/documentation/samples/config,v
retrieving revision 1.10
diff -u -r1.10 config
--- documentation/samples/config 2001/03/26 20:32:22 1.10
+++ documentation/samples/config 2001/05/01 00:59:41
@@ -168,6 +168,7 @@
"Lpt1" = "/dev/lp0"
[spooler]
+"FILE:" = "tmp.ps"
"LPT1:" = "|lpr"
"LPT2:" = "|gs -sDEVICE=bj200 -sOutputFile=/tmp/fred -q -"
"LPT3:" = "/dev/lp3"
Index: dlls/commdlg/printdlg.c
===================================================================
RCS file: /home/wine/wine/dlls/commdlg/printdlg.c,v
retrieving revision 1.39
diff -u -r1.39 printdlg.c
--- dlls/commdlg/printdlg.c 2001/04/27 18:02:46 1.39
+++ dlls/commdlg/printdlg.c 2001/05/01 00:59:45
@@ -940,12 +940,20 @@
case rad1: /* Paperorientation */
if (lppd->Flags & PD_PRINTSETUP)
+ {
lpdm->u1.s1.dmOrientation = DMORIENT_PORTRAIT;
+ SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
+ (LPARAM)(PrintStructures->hPortraitIcon));
+ }
break;
case rad2: /* Paperorientation */
if (lppd->Flags & PD_PRINTSETUP)
+ {
lpdm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE;
+ SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
+ (LPARAM)(PrintStructures->hLandscapeIcon));
+ }
break;
case cmb1:
More information about the wine-patches
mailing list