André Hentschel
e9b17f40b5
winspool.drv: Fix some spec file entries.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-27 16:31:43 +01:00
Nikolay Sivov
614ad0c8c2
winspool: Fix potential string buffer leaks (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-23 11:40:59 +01:00
Nikolay Sivov
a3aad9d80f
winspool: Initialize string pointers passed to StartDocDlgW() (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-23 11:40:57 +01:00
Detlef Riekenberg
7cba560ab2
winspool: Use all Fields from DRIVER_INFO_8A when we add a Printer Driver.
...
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-28 13:54:51 +01:00
Detlef Riekenberg
4814aad7fe
winspool/tests: Add tests for ClosePrinter.
...
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-02 17:02:39 +01:00
Detlef Riekenberg
b611acc736
winspool: Return a failure code in ClosePrinter.
...
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-02 17:02:36 +01:00
Detlef Riekenberg
686cfe3aaf
winspool: Add our driver for all usable Printer environments.
...
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-20 16:26:26 -07:00
Ken Thomases
10065d2acd
winspool.drv: Include <cups/ppd.h> to fix building against the macOS 10.12 SDK.
...
The cupsGetPPD() function was moved there from <cups/cups.h> because it's
deprecated.
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 15:31:43 +09:00
André Hentschel
88c77da35d
winspool: Implement SetPrinterW for level 8.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:11:24 +09:00
Jeremy White
71f018cba5
winspool.drv: If the call to cupsPrintFile fails, print the cups error message.
...
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 16:38:51 +09:00
Austin English
110b53affc
winspool.drv: Add EnumPrinterKeyA/W stubs.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:15 +09:00
Francois Gouget
413c6f60cf
Assorted spelling fixes.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-02 12:59:52 +09:00
Michael Stefaniuc
c62a95d2df
winspool.drv/tests: Remove always true sub-condition (PVS-Studio).
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 00:53:20 +09:00
Erich E. Hoover
126f0601e2
winspool.drv: Allow spooling directly to a postscript file.
...
Required for PDF printing in OrCAD 16.6.
2015-08-26 23:53:21 +09:00
Hans Leidekker
ccb19eed69
winspool: Don't fail on empty server name in AddPrinterW.
2015-07-29 21:44:02 +02:00
Francois Gouget
e54b62ae7c
winspool.drv: Remove unneeded NONAMELESSXXX directives.
2015-04-01 14:13:18 +09:00
Alexandre Julliard
f1aea67d95
winspool.drv: Don't crash if the ppd directory cannot be created.
2014-12-17 17:10:50 +01:00
André Hentschel
76272d6e6c
winspool.drv: Remove unused strings (Clang).
2014-12-04 14:03:23 +01:00
Bruno Jesus
daaa4c40d4
winspool: Fix a leak in DocumentPropertiesA (valgrind).
2014-07-08 10:15:15 +02:00
Bruno Jesus
2728066152
winspool.drv: Do not try to check the registry if opening the printer fails (valgrind).
2014-06-11 16:10:36 +02:00
Hans Leidekker
ec082c3102
winspool: Add stub implementations of UploadPrinterDriverPackageA/W.
2014-02-27 09:32:47 -06:00
Alexandre Julliard
cf0e96c6d0
configure: Rename substituted variables to a standard _CFLAGS and _LIBS format.
2014-01-30 14:51:33 +01:00
André Hentschel
64601b7895
winspool: Use boolean return values in boolean functions.
2014-01-29 17:30:04 +01:00
André Hentschel
87c7c961f2
Assorted spelling fixes.
2014-01-06 17:33:24 +01:00
Alexandre Julliard
99ef0d6ff0
makefiles: Get rid of the MAKE_TEST_RULES variable.
2014-01-02 12:13:16 +01:00
Alexandre Julliard
5e7416e5c8
makefiles: Get rid of the MAKE_DLL_RULES variable.
2014-01-02 12:08:18 +01:00
Frédéric Delanoy
86f3f62289
winspool.drv/tests: Constify some character strings.
2014-01-02 11:52:32 +01:00
Alexandre Julliard
4f3d71cef3
makefiles: Get rid of the no longer used PO_SRCS variables.
2013-12-15 10:23:04 +01:00
Alexandre Julliard
5756ee09f3
makefiles: Add makedep pragmas for rc files that contain translations.
2013-11-05 20:38:19 +01:00
Huw Davies
1990e19424
winspool: Add any default printer options that aren't set by the driver.
2013-11-01 14:17:24 +01:00
Dmitry Timoshkov
a521990a32
winspool.drv/tests: Fix test failures under Windows 8.
2013-10-31 09:58:43 +01:00
Francois Gouget
3ad70f9e11
winspool.drv/tests: Fix the OpenPrinter() tests error reporting.
2013-10-28 10:42:00 +01:00
André Hentschel
2a319e2cdd
winspool.drv/tests: Fix tests compilation with __WINESRC__ defined.
2013-10-25 13:36:02 +02:00
Frédéric Delanoy
8afd655a62
winspool.drv: Use BOOL type where appropriate.
2013-10-09 10:08:57 +02:00
Alexandre Julliard
8c959d6c56
winspool: Store generic.ppd in a resource instead of depending on an external file.
2013-10-08 09:27:14 +02:00
Michael Stefaniuc
0e681027a2
tests: Compile the tests by default with -D__WINESRC__.
2013-10-02 11:04:02 +02:00
Michael Stefaniuc
9463dba830
tests: Use the explicit LoadLibraryA function.
2013-10-02 11:02:21 +02:00
Alexandre Julliard
ae6aef547b
winspool: Use neutral language for the version resource.
2013-07-09 22:21:58 +02:00
Dmitry Timoshkov
aa0cc00b48
winspool.drv: Avoid converting garbage if there was no DEVMODE passed in.
2013-06-14 11:46:00 +02:00
Alexandre Julliard
03041b93ba
winspool: Don't bother to delete critical sections at process exit.
2013-05-16 12:56:45 +02:00
Tatyana Fokina
f63d59d640
winspool.drv: Fix DocumentProperties with empty device name.
2013-04-05 20:39:01 +02:00
Dmitry Timoshkov
142c2982dc
winspool.drv: Move loading of libcups out of the init code protected by mutex.
2013-04-01 12:32:36 +02:00
Dmitry Timoshkov
dc8d7e7d62
winspool.drv: There is no need to speculate about wineps.drv default DEVMODE.
2013-02-12 10:18:20 +01:00
Dmitry Timoshkov
da7c4ee1e5
winspool.drv: Turn macros into helper functions.
2013-02-11 12:31:13 +01:00
Alexandre Julliard
4289bd44de
winspool.drv: Remove a todo that succeeds now.
2012-12-21 13:54:30 +01:00
Dmitry Timoshkov
1cf52561c3
winspool.drv: Correct the DocumentProperties spec entry.
2012-12-18 12:35:39 +01:00
Dmitry Timoshkov
bdf14227ab
winspool.drv: Add more traces.
2012-12-17 20:31:22 +01:00
Ken Thomases
436edbdfc7
winspool: Close read end of pipe in parent so we can detect child termination.
2012-12-12 11:59:23 +01:00
Andrew Talbot
e72e40b3da
winspool.drv: Remove unused semicolons.
2012-12-03 12:33:55 +01:00
Andrew Talbot
26671c8f36
winspool.drv: Remove unused variable.
2012-11-23 14:40:45 +01:00
Huw Davies
02d41b7b1a
winspool: Pre-1.6 versions of CUPS can leave behind a file when cupsGetPDD3 fails, so clear up afterwards.
2012-11-16 11:41:41 +01:00
André Hentschel
2cefbaab97
winspool: Avoid memory leaks (coverity).
2012-11-01 18:59:01 +01:00
Huw Davies
2f3d13a49d
winspool: Skip scanner-only devices.
2012-09-14 15:44:43 +02:00
Michael Stefaniuc
aae2602eba
winspool.drv: Drop a superfluous TRUE:FALSE conditional expression.
2012-08-15 12:13:02 +02:00
André Hentschel
882977eed9
winspool.drv: Update allowed driver version.
2012-07-31 10:53:27 +02:00
Huw Davies
c4457ec191
winspool: Don't assume that CUPS is available.
2012-07-09 15:06:52 -04:00
Julian Rüger
0595619e0f
winspool.drv/tests: Fix typos/grammar.
2012-06-25 10:36:10 +02:00
Huw Davies
6a65a04893
winspool: On OS/X read the default paper size from the core printing api.
2012-06-21 18:57:19 +02:00
Huw Davies
0c31766c88
winspool: Update the devmode when we update the driver.
2012-06-21 18:56:38 +02:00
Detlef Riekenberg
1034ae37e2
winspool/tests: Fix failures when the spooler service is not running.
2012-06-21 08:31:43 +02:00
Huw Davies
69ff2636b4
winspool: Set the printer location from the cups printer-location option.
2012-06-15 18:35:36 +02:00
Huw Davies
5875185e34
winspool: Set the printer description from the cups printer-info option.
2012-06-15 18:35:35 +02:00
Huw Davies
afab51c4e7
winspool: Add a missing default priority value.
2012-06-15 18:35:35 +02:00
Huw Davies
a294ad42e0
winspool: Set the printer registry values before calling into the driver.
2012-06-15 18:35:34 +02:00
Huw Davies
b5511bd4fe
winspool: Set the timeout entries to zero.
2012-06-13 21:58:53 +02:00
Huw Davies
7d615965fc
winspool: Use the helper to set DWORD registry values.
2012-06-13 21:58:50 +02:00
Huw Davies
f15f359cbf
winspool: Update the ppd for LPR printers too.
2012-06-13 21:58:44 +02:00
Huw Davies
28ef1af6d0
winspool: Update the ppd file of an already installed printer in the first call to OpenPrinter.
2012-06-12 12:57:06 +02:00
Huw Davies
0ef0ce2938
winspool: Set the printer status of old printers to indicate that they should check for driver updates.
2012-06-12 12:57:02 +02:00
Huw Davies
da0e1ecdd6
winspool: Install the ppd files into the driver directory.
2012-06-12 12:56:52 +02:00
Huw Davies
b97c5da2cf
winspool: Change get_dword_from_reg to accept a unicode value name.
2012-05-31 18:05:03 +02:00
Huw Davies
263df24406
winspool: Pass unicode names to set_reg_DWORD.
2012-05-22 18:06:39 +02:00
Huw Davies
7b0cda2140
winspool: Only perform printer initialisation once per session.
2012-05-18 18:11:03 +02:00
André Hentschel
7508a5d4b2
winspool: Implement SetPrinterW for level 2.
2012-05-11 15:39:21 +02:00
André Hentschel
0cf0c28d16
winspool.drv: Also convert printer info for level 8.
2012-05-03 23:45:27 +02:00
André Hentschel
c9fdc565e5
winspool.drv: Support printer info level 8.
2012-05-03 11:14:11 +02:00
Huw Davies
5d47a691f1
winspool: Don't leak the handle returned by AddPrinter.
2012-04-24 17:38:03 +02:00
Huw Davies
f27df046ad
winspool: If CUPS is found but lists no printers assume that there really are no printers - don't look in /etc/printcap.
2012-04-20 12:28:25 +02:00
Huw Davies
1aa5696c93
winspool: Update the default settings when deleting the default printer.
2012-04-20 12:28:20 +02:00
Huw Davies
bd3a941b20
winspool: Simplify the code that checks for deleted printers and have it not call OpenPrinter unless it finds a printer that needs deletion.
2012-04-19 19:36:19 +02:00
Huw Davies
b9bc9a0cf2
winspool: Add a helper to open a printer's registry key.
2012-04-19 19:36:16 +02:00
Huw Davies
30d18c1165
winspool: Explicitly set CUPS options based on any job ticket lines, which otherwise get ignored by cupsPrintFile.
2012-04-16 17:49:30 +02:00
Huw Davies
b2accddffe
winspool: Simplify cups function loading.
2012-04-16 17:49:29 +02:00
Huw Davies
79aac9fabc
winspool: Implement SetPrinterW for level 9.
2012-04-05 17:53:19 +02:00
Huw Davies
607b5d77bc
winspool: Add a helper to set devmode data in the registry.
2012-04-05 17:53:19 +02:00
Huw Davies
9166fcb7a0
winspool: Forward SetPrinterA to SetPrinterW.
2012-04-05 17:53:18 +02:00
Huw Davies
2421519447
winspool: Generalise the A to W printer info conversion to cope with other levels.
2012-04-05 17:53:18 +02:00
Huw Davies
b24da40410
winspool: Remove a FIXME now that we don't ignore the defaults.
2012-04-03 17:53:33 +02:00
Huw Davies
bfab84378d
winspool/tests: Add some tests for OpenPrinter with non-NULL defaults.
2012-04-03 17:53:29 +02:00
Huw Davies
fa00fce684
winspool: Correct the padding calculation when there is no buffer.
2012-04-03 17:53:22 +02:00
Huw Davies
25f9d6e33e
winspool: Initialise portname.
2012-04-03 17:53:12 +02:00
Huw Davies
0b9a3f9de4
winspool: Propagate the printer's devmode to a new job.
2012-04-02 14:14:37 +02:00
Huw Davies
b74c9a6472
winspool: Keep track of any supplied devmode.
2012-03-30 16:56:37 +02:00
Huw Davies
736fdbdec5
winspool: Add a helper to free a printer entry.
2012-03-30 16:56:32 +02:00
Huw Davies
2f78666a01
winspool: Add a helper to duplicate a devmode.
2012-03-30 16:56:24 +02:00
Francois Gouget
47f45d793d
Use a single space after a full stop to follow the Windows GUI guidelines.
2012-01-23 16:07:03 +01:00
Francois Gouget
915ddc4026
winspool: Fix the compilation on Solaris by including errno.h instead of sys/errno.h.
2011-12-02 17:25:56 +01:00
Ken Thomases
6df7adfff1
winspool: Wait for and reap print spool child process.
2011-12-01 10:40:41 +01:00
Ken Thomases
7a88d5a1e4
winspool: No need to reset SIGCHLD because we're not changing it anymore.
2011-12-01 10:11:13 +01:00
Alexandre Julliard
b14e086da5
winspool: Convert dialogs to po files.
2011-11-17 22:25:55 +01:00