Introduced a [psdrv] section in wine.conf with a ppdfile value

specifying the path and name of the PPD file.
This commit is contained in:
Thuy Nguyen 1999-07-18 15:25:34 +00:00 committed by Alexandre Julliard
parent 59fb130369
commit 4884396548
3 changed files with 10 additions and 3 deletions

View File

@ -43,8 +43,13 @@ You also require a PPD file for your printer. This describes certain
characteristics of the printer such as which fonts are installed, how to select
manual feed etc. Adobe also has many of these on its website, have a look in
ftp://ftp.adobe.com/pub/adobe/printerdrivers/win/all/
Put the PPD in the directory from which you start wine and call it default.ppd
[this will definitely change soon].
Create a [psdrv] section in your wine.conf (or ~/.winerc) and add the
following entry:
ppdfile=/somewhere/file.ppd
By default, the driver will look for a file named default.ppd in the directory
from which you started wine.
To enable colour printing you need to have the *ColorDevice entry in the PPD
set to true, otherwise the driver will generate greyscale.

View File

@ -362,6 +362,8 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
(LPBYTE)pi->Devmode, needed, &needed);
}
PROFILE_GetWineIniString("psdrv", "ppdfile", "default.ppd",
pi->Devmode->dmDrvPrivate.ppdFileName, 256);
pi->ppd = PSDRV_ParsePPD(pi->Devmode->dmDrvPrivate.ppdFileName);
if(!pi->ppd) {
HeapFree(PSDRV_Heap, 0, pi->FriendlyName);

View File

@ -148,7 +148,7 @@ typedef struct {
int dummy;
} dmDocPrivate;
struct _tagdrvprivate {
char ppdFileName[100]; /* Hack */
char ppdFileName[256]; /* Hack */
UINT numInstalledOptions; /* Options at end of struct */
} dmDrvPrivate;