Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4a8c8e4e
Commit
4a8c8e4e
authored
Nov 11, 2003
by
Huw Davies
Committed by
Alexandre Julliard
Nov 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle multicopy printing correctly.
parent
149bb9e6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
10 deletions
+32
-10
driver.c
dlls/wineps/driver.c
+9
-7
escape.c
dlls/wineps/escape.c
+16
-3
ps.c
dlls/wineps/ps.c
+6
-0
psdrv.h
dlls/wineps/psdrv.h
+1
-0
No files found.
dlls/wineps/driver.c
View file @
4a8c8e4e
...
...
@@ -542,9 +542,10 @@ DWORD PSDRV_DeviceCapabilities(LPSTR lpszDriver, LPCSTR lpszDevice, LPCSTR lpszP
return
1
;
}
/* Windows returns 9999 too */
case
DC_COPIES
:
FIXME
(
"DC_COPIES: returning %d. Is this correct?
\n
"
,
lpdm
->
dmCopies
);
return
lpdm
->
dmCopies
;
TRACE
(
"DC_COPIES: returning 9999
\n
"
);
return
9999
;
case
DC_DRIVER
:
return
lpdm
->
dmDriverVersion
;
...
...
@@ -626,14 +627,15 @@ DWORD PSDRV_DeviceCapabilities(LPSTR lpszDriver, LPCSTR lpszDevice, LPCSTR lpszP
case
DC_VERSION
:
return
lpdm
->
dmSpecVersion
;
/*
Printer supports collating - 1 if yes, 0 if no.
*/
/*
We'll just return false here, very few printers can collate anyway
*/
case
DC_COLLATE
:
return
((
lpdm
->
dmFields
&
DM_COLLATE
)
?
1
:
0
);
/* Collation is supported if DM_COLLATE is set */
TRACE
(
"DC_COLLATE: returning FALSE
\n
"
);
return
FALSE
;
/* Printer supports colour printing - 1 if yes, 0 if no (Win2k/XP only) */
case
DC_COLORDEVICE
:
return
((
lpdm
->
dmFields
&
DM_COLOR
)
?
1
:
0
);
/* Colour is supported if DM_COLOR is set */
return
pi
->
ppd
->
ColorDevice
;
/* Identification number of the printer manufacturer for use with ICM (Win9x only) */
case
DC_MANUFACTURER
:
FIXME
(
"DC_MANUFACTURER: stub
\n
"
);
...
...
dlls/wineps/escape.c
View file @
4a8c8e4e
...
...
@@ -306,7 +306,12 @@ INT PSDRV_StartPage( PSDRV_PDEVICE *physDev )
FIXME
(
"Already started a page?
\n
"
);
return
1
;
}
physDev
->
job
.
PageNo
++
;
if
(
physDev
->
job
.
PageNo
++
==
0
)
{
if
(
!
PSDRV_WriteHeader
(
physDev
,
physDev
->
job
.
DocName
))
return
0
;
}
if
(
!
PSDRV_WriteNewPage
(
physDev
))
return
0
;
physDev
->
job
.
OutOfPage
=
FALSE
;
...
...
@@ -368,8 +373,12 @@ INT PSDRV_StartDoc( PSDRV_PDEVICE *physDev, const DOCINFOA *doc )
physDev
->
job
.
banding
=
FALSE
;
physDev
->
job
.
OutOfPage
=
TRUE
;
physDev
->
job
.
PageNo
=
0
;
if
(
!
PSDRV_WriteHeader
(
physDev
,
doc
->
lpszDocName
))
return
0
;
if
(
doc
->
lpszDocName
)
{
physDev
->
job
.
DocName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
doc
->
lpszDocName
)
+
1
);
strcpy
(
physDev
->
job
.
DocName
,
doc
->
lpszDocName
);
}
else
physDev
->
job
.
DocName
=
NULL
;
return
physDev
->
job
.
hJob
;
}
...
...
@@ -397,5 +406,9 @@ INT PSDRV_EndDoc( PSDRV_PDEVICE *physDev )
ret
=
0
;
}
physDev
->
job
.
hJob
=
0
;
if
(
physDev
->
job
.
DocName
)
{
HeapFree
(
GetProcessHeap
(),
0
,
physDev
->
job
.
DocName
);
physDev
->
job
.
DocName
=
NULL
;
}
return
ret
;
}
dlls/wineps/ps.c
View file @
4a8c8e4e
...
...
@@ -271,6 +271,12 @@ INT PSDRV_WriteHeader( PSDRV_PDEVICE *physDev, LPCSTR title )
WriteSpool16
(
physDev
->
job
.
hJob
,
(
LPSTR
)
psbeginsetup
,
strlen
(
psbeginsetup
)
);
if
(
physDev
->
Devmode
->
dmPublic
.
dmCopies
>
1
)
{
char
copies_buf
[
100
];
sprintf
(
copies_buf
,
"mark {
\n
<< /NumCopies %d >> setpagedevice
\n
} stopped cleartomark
\n
"
,
physDev
->
Devmode
->
dmPublic
.
dmCopies
);
WriteSpool16
(
physDev
->
job
.
hJob
,
copies_buf
,
strlen
(
copies_buf
));
}
for
(
slot
=
physDev
->
pi
->
ppd
->
InputSlots
;
slot
;
slot
=
slot
->
next
)
{
if
(
slot
->
WinBin
==
physDev
->
Devmode
->
dmPublic
.
dmDefaultSource
)
{
if
(
slot
->
InvocationString
)
{
...
...
dlls/wineps/psdrv.h
View file @
4a8c8e4e
...
...
@@ -316,6 +316,7 @@ typedef struct {
typedef
struct
{
HANDLE16
hJob
;
LPSTR
output
;
/* Output file/port */
LPSTR
DocName
;
/* Document Name */
BOOL
banding
;
/* Have we received a NEXTBAND */
BOOL
OutOfPage
;
/* Page header not sent yet */
INT
PageNo
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment