2002-05-31 23:06:46 +00:00
|
|
|
/*
|
1996-08-24 18:26:35 +00:00
|
|
|
* Implementation of some printer driver bits
|
2002-05-31 23:06:46 +00:00
|
|
|
*
|
1996-08-24 18:26:35 +00:00
|
|
|
* Copyright 1996 John Harvey
|
1999-05-17 16:20:51 +00:00
|
|
|
* Copyright 1998 Huw Davies
|
Release 980712
Sun Jul 12 16:23:36 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [server/*] [scheduler/client.c] (new files)
[scheduler/sysdeps.c] [scheduler/thread.c] [scheduler/process.c]
Beginnings of client/server communication for inter-process
synchronisation.
Sat Jul 11 19:45:45 1998 Ulrich Weigand <weigand@informatik.uni-erlangen.de>
* [include/bitmap.h] [objects/bitmap.c] [objects/dib.c]
[objects/oembitmap.c]
Speed up DIB section handling by using pre-allocated colormap and
XImage. Moved DIB section data out of general BITMAPOBJ structure.
Bugfix: GetDIBits32 would overwrite one byte beyond bitmap data.
* [if1632/shell.spec] [if1632/kernel.spec] [win32/kernel32.c]
More verbose error message if ThunkConnect fails.
Implemented KERNEL_475.
* [files/profile.c] [ole/ole2nls.c]
Minor bugfixes.
* [if1632/builtin.c] [if1632/kernel.spec] [include/task.h]
[loader/ne/module.c] [loader/task.c]
Implemented KERNEL.THHOOK.
* [if1632/wprocs.spec] [include/process.h] [msdos/dpmi.c] [msdos/vxd.c]
Implemented Win32s VxD services (W32S.386).
Sat Jul 11 17:52:23 1998 Huw D M Davies <daviesh@abacus.physics.ox.ac.uk>
* [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
[include/x11font.h]
Improve handling of rotated X11 fonts. Metrics/extents should now be
correct. ExtTextOut should behave better (still doesn't handle lpDx).
* [graphics/painting.c]
DrawFocusRect32: Don't do anything if width or height are zero.
Sat Jul 11 15:21:35 1998 Andreas Mohr <100.30936@germany.net>
* [files/profile.c] [include/windows.h]
The length arguments of *Profile*() need to be treated
as UINTxx instead of INTxx.
* [graphics/env.c] [graphics/win16drv/init.c] [include/print.h]
[misc/printdrv.c]
Many printer driver fixes/changes (many thanks go to Huw !).
Most printers should work again ;)
* [memory/atom.c]
Fixed ATOM_AddAtom to store atoms exactly like Windows.
* [*/*]
Fixed misc compiler warnings.
Fri Jul 10 15:58:36 1998 Marcus Meissner <marcus@jet.franken.de>
* [files/drive.c]
Fixed GetDriveType16 to return DRIVE_REMOTE again.
* [loader/pe_image.c][loader/module.c]
Look for modules that have the same modulename or the same
filename (they sometimes differ).
Fixed up fixup_imports, removed one of the loops.
* [windows/winpos.c]
Added some NULL ptr checks. Needs more.
* [graphics/ddraw.c]
Some stubs added.
* [if1632/snoop.c]
Updated, made WINELIB compatible.
Fri Jul 10 04:39:56 1998 Douglas Ridgway <ridgway@winehq.com>
* [objects/enhmetafile.c] [relay32/gdi32.spec]
Small tweaks for documentation system.
Thu Jul 9 22:00:18 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de>
* [controls/commctrl.c][include/commctrl.h][relay32/comctl32.spec]
Fixed GetEffectiveClientRect, CreateToolbarEx and CreateMappedBitmap.
Added stub for ShowHideMenuCtl. Added some documentation.
* [documentation/common_controls]
Added and updated some information.
* [controls/toolbar.c][include/toolbar.h]
Added string support.
* [misc/shell.c][misc/shellord.c][relay32/shell.spec]
Changed names of undocumented functions to their real names and
fixed the export table.
* [controls/imagelist.c][relay32/comctl32.spec]
Added stub for ImageList_SetFilter.
Fixed some minor bugs and typos.
* [objects/font.c][include/windows.h][relay32/gdi32.spec]
Added stubs for GetCharacterPlacement32[A/W].
* [objects/region.c][relay32/gdi32.spec]
Added stub for UNDOCUMENTED GetRandomRgn.
* [controls/commctrl.c][controls/*.c][include/*.h]
Added dummy listview, pager, rebar, tooltips, trackbar and
treeview control. This keeps some programs from complaining.
Thu Jul 9 11:23:58 1998 Rein Klazes <rklazes@casema.net>
* [graphics/painting.c] [graphics/*/init.c]
[graphics/x11drv/graphics.c] [relay32/gdi32.spec]
[if1632/gdi.spec] [include/gdi.h] [include/x11drv.h]
Implemented drawing bezier curves: PolyBezier16/32 and
PolyBezierTo16/32.
* [graphics/x11drv/graphics.c]
Improved accuracy of several graphic routines, especially the
drawing of pie's.
* [include/windows.h] [misc/spy.c]
Added 25 window messages related to programs based on MFC and/or OLE.
Wed Jul 8 22:00:00 1998 James Juran <jrj120@psu.edu>
* [documentation/wine.man]
Updated manpage.
* [wine.ini]
Added section for Win95Look=true (commented out by default).
Wed Jul 8 06:23:19 1998 Matthew Becker <mbecker@glasscity.net>
* [misc/registry.c]
Fixed a crash in RegEnumValue32A when the dwType parameter is
NULL.
* [programs/regtest/regtest.c]
Improved the printing of errors.
* [misc/ntdll.c]
Added stub for RtlFormatCurrentUserKeyPath.
* [win32/console.c]
Added stub for ScrollConsoleScreenBuffer.
Mon Jul 6 16:41:47 1998 Per Lindstrm <pelinstr@algonet.se>
* [include/windows.h] [relay32/kernel.spec] [win32/newfns.c]
Added stubs for SleepEx and TerminateProcess.
* [rc/README]
Corrected a grammatical error.
Mon Jul 3 12:00:00 1998 Juergen Schmied <juergen.schmied@metronet.de>
* [misc/shellord.c]
Put some TRACE in.
* [memory/string.c]
Deleted unused variable in lstrcmpi32A.
* [include/windows.h][memory/string.c]
Added functions WideCharToLocal32 LocalToWideChar32 for
OLE-strings
* [include/shlobj.h][include/winerror.h][misc/shell.c]
[ole/folders.c]
Added definition of internal class pidlmgr.
Changed definitions of EnumIDList, IShellFolder.
Added some OLE error constants.
Implemented EnumIDList, IShellFolder, IClassFactory,
PidlMgr, SHELL32_DllGetClassObject, SHGetDesktopFolder,
SHGetSpecialFolderLocation (half), SHGetPathFromIDList
(!!This stuff is not finished yet!!)
* [include/windows.h][misc/network][reley32/mpr.spec]
Added stubs for WNetConnectionDialog32[A|W|API].
Added struct LPCONNECTDLGSTRUCT32[A|W] and some constants.
Added some SetLastError(WN_NO_NETWORK) to the stubs.
Fixed bufferhandling in WNetCancelConnection
Added stub for MultinetGetErrorText[A|W]
* [ole/ole2nls.c]
Rewrote GetTimeFormat32A.
Fri Jul 3 10:27:30 1998 Michael Poole <poole+@andrew.cmu.edu>
* [graphics/ddraw.c] [tsx11/X11_calls]
Implement IDirectDrawPalette_GetEntries.
Use CopyColormapAndFree to avoid erasing previously-set
palette entries.
* [graphics/ddraw.c] [include/ddraw.h]
[tools/make_X11wrappers] [tsx11/X11_calls]
Provide a preliminary, not-yet-working framework for doing
DirectDraw via Xlib or XShm as well as DGA.
Tue Jun 30 00:16:09 1998 Marcel Baur <mbaur@g26.ethz.ch>
* [ole/nls/*.nls]
Added remaining 22 locales (including arabic locales).
1998-07-12 19:29:36 +00:00
|
|
|
* Copyright 1998 Andreas Mohr
|
1999-03-28 12:37:34 +00:00
|
|
|
* Copyright 1999 Klaas van Gend
|
2002-03-09 23:29:33 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1996-08-24 18:26:35 +00:00
|
|
|
*/
|
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include <stdarg.h>
|
2008-02-29 11:48:47 +00:00
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include "windef.h"
|
1999-05-08 12:45:18 +00:00
|
|
|
#include "winbase.h"
|
2008-02-29 11:48:47 +00:00
|
|
|
#include "wingdi.h"
|
1999-05-17 16:20:51 +00:00
|
|
|
#include "winspool.h"
|
1996-08-24 18:26:35 +00:00
|
|
|
#include "winerror.h"
|
2002-03-09 23:29:33 +00:00
|
|
|
#include "wine/debug.h"
|
2004-01-15 00:35:38 +00:00
|
|
|
#include "gdi_private.h"
|
Release 980614
Sun Jun 15 10:30:35 1998 Andreas Mohr <100.30936@germany.net>
* [files/dos_fs.c] [files/file.c] [if1632/wprocs.spec]
[misc/aspi.c]
Added support for scanners that need Adaptec's ASPI2DOS.
* [graphics/env.c] [misc/printerdrv.c] [graphics/win16drv/init.c]
[if1632/gdi.spec] [include/gdi.h]
Enhanced printer support (especially Win95):
Drv[GS]etPrinterData, [GS]etEnvironment; added AbortProc handling.
* [misc/tapi32.c] [relay32/tapi32.spec]
Added some stubs.
* [configure.in] [graphics/fontengine.c] [include/windows.h]
[misc/comm.c] [misc/w32skrnl.c] [misc/win32s16.c]
Made Wine compile on HP-UX (just for fun ;)
* [controls/menu.c] [include/windows.h]
Complete rewrite of EnableMenuItem32.
Free Agent 32 still doesn't work :(
* [misc/version.c] [if1632/kernel.spec] [include/winbase.h]
Implemented GetVersionEx16.
* [misc/network.c] [if1632/user.spec]
Fixed arguments of WNetGetPropertyText.
* [misc/version.c] [relay32/comctl32.spec] [relay32/oleaut32.spec]
Implemented COMCTL32_DllGetVersion, OaBuildVersion.
* [win32/file.c]
Fixed UNC handling of CreateFile32.
Sat Jun 13 22:35:12 1998 Douglas Ridgway <ridgway@winehq.com>
* [Makefile.in] [Make.rules.in]
Added pattern for CVS merge files to 'make clean'
* [ole/olecli.c] [windows/scroll.c] [windows/grahics.c]
Add some DC handle unlocking. (When hdc's are always unlocked,
they can be made moveable.)
* [documentation/wine.texinfo]
Started a Wine Design chapter with discussion of
graphics driver model.
Sat Jun 13 11:19:25 1998 David Luyer <luyer@ucs.uwa.edu.au>
* [misc/main.c] [relay32/relay386.c]
Added new option -debugmsg +relay=.... or -debugmsg -relay=...
Fri Jun 12 22:56:09 1998 Marcus Meissner <marcus@jet.franken.de>
* [relay32/snoop.c][relay32/builtin.c][loader/pe_image.c]
Added inter win32 dll snooping. Use -debugmsg +snoop.
Number of arguments and string references are autodetected.
Some small bugfixes in the PE loader.
* [misc/system.c]
Disabled SystemTimers. They do not work with the current
%fs handling in the 32->16 relaycode. (helps labview)
* [msdos/dpmi.c][msdos/int2f.c][files/drive.c]
Added a monoton linear increasing memory allocator for DPMI (required
for LabView, HAFAS, ...)
mscdex handling in emulated realmode interrupts (for mcicda.drv)
allocate logical drives only once. (helps Myst)
* [files/profile.c]
Handle ^Z as space. Found on CDROMS (helps Myst Installer).
* [multimedia/mmio.c]
mmio* partially updated to win32. No funny additions.
* [windows/driver.c]
Added win32 driver handling (will be used for win32 multimedia/
msvideo drivers).
* [win32/device.c]
Added device handling (K32OBJ_DEVICE_IOCTL). Implemented
VTDAPI.5 (used by win95' WINMM.timeGetTime())
Fri Jun 12 18:01:18 1998 Rein Klazes <rklazes@casema.net>
* [ole/compobj.c relay32/ole32.spec]
Add a stub for CoLockObjectExternal32.
* [objects/clipping.c]
Fix in IntersectClipRect(), when there is no initial clipping
region.
* [graphics/x11drv/graphics.c]
Corrected several "one-off" errors for the Ellipse, Rectangle
and RoundRectangle (especially small ones) draw routines.
Arc and friends still have to be done.
Fri Jun 12 06:23:19 1998 Matthew Becker <mbecker@glasscity.net>
* [misc/ntdll.c]
Fixed some of the parameter counts.
* [misc/registry.c]
General cleanup, documentation.
Standard keys are allowed to be 'closed' and succeed.
* [misc/shell.c]
Check for correct return values from Reg* functions.
* [win32/newfns.c]
Added stubs for OpenDesktopA, SetThreadDesktop, and
SetUserObjectInformationA.
Wed Jun 10 20:28:08 1998 James Juran <jrj120@psu.edu>
* [debugger/break.c]
Fixed bug introduced in 980503 that broke the -debug command
line option for PE executable files.
* [configure.in] [include/acconfig.h] [include/debugtools.h]
[documentation/debug-msgs]
Added 'configure' options to compile out debugging messages.
Use --disable-debug to disable all debugging messages, and
--disable-trace to just disable TRACE messages. This results
in a stripped executable that is 15-20% smaller. This option
is very much untested--don't expect it to work.
* [documentation/debug-msgs] [documentation/debugging]
Minor updates.
* [*/*.c]
Fixed some compile warnings. This also includes the
compile_warnings_trivial patch from WineHQ.
Tue Jun 10 22:00:18 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de>
* [windows/sysmetrics.c][include/sysmetrics.h]
Fixed some Win95 values.
* [windows/nonclient.c][include/windows.h]
Fixed some Win95 drawing bugs.
Added extended window style flags (WS_EX_xxx).
* [misc/printdrv.c][relay32/winspool.spec]
Added stubs for DeletePrinterDriver32A, DeleteMonitor32A
and DeletePort32A.
* [windows/mdi.c][include/windows.h][relay32/user32.spec]
Added stubs for CascadeWindows and TileWindows.
* [controls/toolbar.c][include/toolbar.h]
Fixed a few bugs and implemented new features.
* [misc/shellord.c][relay32/shell32.spec]
Added stubs for SHELL32_60, SHELL32_61 and SHELL32_184.
* [controls/comctl32undoc.c][relay32/comctl32.spec]
New file comctl32undoc.c. Contains undocumented functions
of COMCTL32.DLL. These functions are needed to run EXPLORER.EXE
IEXPLORE.EXE and TASKMAN.EXE.
* [controls/status.c]
Added text alignment.
Tue Jun 8 22:00:00 1998 Bertho Stultiens <bertho@akhphd.au.dk>
* [programs/*/Makefile.in]
Changed the rules to use wrc as resource compiler but
passing the source through gcc first for macro expansion.
* [programs/*/*.rc]
Added #include "windows.h" for the resource compiler in the
appropriate files.
* [tools/wrc/wrc.[ch]] [tools/wrc/writeres.c]
Added commandline option -A for autoregister code.
Corrected the underscore problem by checking the proper define
from config.h.
Sun Jun 7 22:09:29 1998 Pascal Cuoq <pcuoq@ens-lyon.fr>
* [ole/ole2nls.c] [memory/string.c]
Improved LCMapString32A, and changed CompareString32A,
lstrcmp, lstrcmpi to use it.
Sat Jun 6 19:00:50 1998 Martin Strmberg <ams@ludd.luth.se>
* [include/winnt.h]
Added typedefs for security and tokens.
Sat Jun 6 12:26:31 1998 Morten Welinder <terra@diku.dk>
* [objects/text.c]
Use debugstr_an in DrawText16.
* [loader/resource.c]
Use debugres_w in FindResourceEx32W. Avoid crashing during
debug when wm is NULL.
* [if1632/relay.c]
In RELAY_DebugCallTo16, send output to the right place and
avoid side effects in macro arguments.
Wed Jun 3 20:56:03 1998 Huw D M Davies <daviesh@abacus.physics.ox.ac.uk>
* [controls/scroll.c] [windows/nonclient.c]
Fix several off by one errors in scrollbar painting.
Tue Jun 2 23:58:59 1998 Insomnia (Stea Greene) <insomnia@core.binghamton.edu>
* [graphics/dsound.c]
Rewrote mixer code to handle panning and volume for 16->16, 16->8,
8->16, and 8->8 bit mixes. Conforms to DirectX's "logarithmic
hearing scale" as specified in M$VC docs. Still does not handle
mixing of different frequencies (I am still working on that).
Tested 16->16 extensively with StarCraft. Other mixing combinations
untested but should work fine. Still kind of a work in progress,
so be warned.
Tue Jun 2 03:31:33 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [tools/wrc/utils.c]
dup_basename: fix to strip directory.
Mon Jun 1 20:00:00 1998 Juergen Schmied <juergen.schmied@metronet.de>
* [include/windows.h] [objects/cursoricon.c] [relay32/user32.spec]
Added stubs LoadCursorFromFileW and LoadCursorFromFileA.
1998-06-14 15:24:15 +00:00
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(print);
|
1999-03-28 12:37:34 +00:00
|
|
|
|
2008-02-01 15:13:57 +00:00
|
|
|
/******************************************************************
|
|
|
|
* GdiGetSpoolMessage [GDI32.@]
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
DWORD WINAPI GdiGetSpoolMessage(LPVOID ptr1, DWORD data2, LPVOID ptr3, DWORD data4)
|
|
|
|
{
|
|
|
|
TRACE("(%p 0x%x %p 0x%x) stub\n", ptr1, data2, ptr3, data4);
|
|
|
|
/* avoid 100% cpu usage with spoolsv.exe from w2k
|
|
|
|
(spoolsv.exe from xp does Sleep 1000/1500/2000 in a loop) */
|
|
|
|
Sleep(500);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************
|
|
|
|
* GdiInitSpool [GDI32.@]
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
DWORD WINAPI GdiInitSpool(void)
|
|
|
|
{
|
|
|
|
FIXME("stub\n");
|
|
|
|
return TRUE;
|
|
|
|
}
|
Release 970415
Mon Apr 14 11:22:54 1997 John Harvey <john@division.co.uk>
* [graphics/win16drv/init.c]
Minor changes to help debug problems.
* [if1632/dummy.c] [if1632/gdi.spec]
Dummy routines for StartPage, EndPage, SetAbortProc, AbortProc.
* [misc/printdrv.c] [if1632/gdi.spec] [include/windows.h]
StartDoc16, EndDoc16 new functions.
Sun Apr 13 11:18:35 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [memory/virtual.c]
Implemented MapViewOfFile.
* [debugger/dbg.y]
Added 'info maps' command.
Fri Apr 11 16:34:08 1997 Frans van Dorsselaer <devel@rulhmpc58.LeidenUniv.nl>
* [controls/edit.c] [controls/EDIT.TODO]
Started restructuring. Performance improvements.
Fixed: wordwrap, scrollbar handling, scrolling, painting,
EditWndProc() is now reentrant, wordbreak procs,
better compliance to specs.
New: margins, format rectangle.
* [controls/widgets.c]
Changed the cursor for the edit control class to an I-beam.
* [include/callback.h]
Added 32 bit wordbreak callback.
Mon Apr 7 20:53:28 1997 Albrecht Kleine <kleine@ak.sax.de>
* [objects/metafile.c]
Added handling of some more metafile records:
META_CREATEREGION, META_INVERTREGION etc.
Sat Apr 5 09:23:02 MET DST 1997 Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
* [loader/signal.c]
Define kernel sigaction ourselves instead of getting it
from the kernel source.
Wed Apr 2 21:05:00 1997 Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
* [control/menu.c]
Fix return value range for GetMenuState.
* [files/file.c]
Always fill out ofs->szPathName in FILE_DoOpenFile.
* [memory/string.c]
Add debug option string.
* [objects/cursoricon.c]
Fix return value for DestroyIcon32.
Mon Mar 31 17:16:12 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [DEVELOPERS-HINTS] [misc/*] [windows/*] [graphics/*]
Added description of the source tree. Moved several
files to fit it.
* [misc/shell.c]
Use Win32 heap functions.
1997-04-15 17:19:52 +00:00
|
|
|
|
1999-01-24 18:59:58 +00:00
|
|
|
/******************************************************************
|
2008-02-29 11:48:47 +00:00
|
|
|
* StartDocW [GDI32.@]
|
1999-01-24 18:59:58 +00:00
|
|
|
*
|
1999-10-31 01:49:30 +00:00
|
|
|
* StartDoc calls the STARTDOC Escape with the input data pointing to DocName
|
|
|
|
* and the output data (which is used as a second input parameter).pointing at
|
|
|
|
* the whole docinfo structure. This seems to be an undocumented feature of
|
2002-05-31 23:06:46 +00:00
|
|
|
* the STARTDOC Escape.
|
2001-07-29 20:25:14 +00:00
|
|
|
*
|
|
|
|
* Note: we now do it the other way, with the STARTDOC Escape calling StartDoc.
|
1999-01-24 18:59:58 +00:00
|
|
|
*/
|
2005-01-04 20:39:19 +00:00
|
|
|
INT WINAPI StartDocW(HDC hdc, const DOCINFOW* doc)
|
1999-07-25 11:25:59 +00:00
|
|
|
{
|
2001-07-29 20:25:14 +00:00
|
|
|
INT ret = 0;
|
2007-09-24 16:23:42 +00:00
|
|
|
DC *dc = get_dc_ptr( hdc );
|
1999-07-25 11:25:59 +00:00
|
|
|
|
2005-01-04 20:39:19 +00:00
|
|
|
TRACE("DocName = %s Output = %s Datatype = %s\n",
|
|
|
|
debugstr_w(doc->lpszDocName), debugstr_w(doc->lpszOutput),
|
|
|
|
debugstr_w(doc->lpszDatatype));
|
1999-07-25 11:25:59 +00:00
|
|
|
|
2000-05-18 00:52:08 +00:00
|
|
|
if(!dc) return SP_ERROR;
|
1999-07-25 11:25:59 +00:00
|
|
|
|
2008-10-07 14:01:01 +00:00
|
|
|
if (dc->pAbortProc && !dc->pAbortProc( hdc, 0 ))
|
|
|
|
{
|
|
|
|
release_dc_ptr( dc );
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2002-03-28 22:22:05 +00:00
|
|
|
if (dc->funcs->pStartDoc) ret = dc->funcs->pStartDoc( dc->physDev, doc );
|
2007-09-24 16:23:42 +00:00
|
|
|
release_dc_ptr( dc );
|
2000-08-19 21:38:55 +00:00
|
|
|
return ret;
|
1999-07-25 11:25:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*************************************************************************
|
2005-01-04 20:39:19 +00:00
|
|
|
* StartDocA [GDI32.@]
|
2002-05-31 23:06:46 +00:00
|
|
|
*
|
1999-07-25 11:25:59 +00:00
|
|
|
*/
|
2005-01-04 20:39:19 +00:00
|
|
|
INT WINAPI StartDocA(HDC hdc, const DOCINFOA* doc)
|
1999-01-24 18:59:58 +00:00
|
|
|
{
|
2005-01-04 20:39:19 +00:00
|
|
|
LPWSTR szDocName = NULL, szOutput = NULL, szDatatype = NULL;
|
|
|
|
DOCINFOW docW;
|
|
|
|
INT ret, len;
|
|
|
|
|
|
|
|
docW.cbSize = doc->cbSize;
|
|
|
|
if (doc->lpszDocName)
|
|
|
|
{
|
|
|
|
len = MultiByteToWideChar(CP_ACP,0,doc->lpszDocName,-1,NULL,0);
|
|
|
|
szDocName = HeapAlloc(GetProcessHeap(),0,len*sizeof(WCHAR));
|
|
|
|
MultiByteToWideChar(CP_ACP,0,doc->lpszDocName,-1,szDocName,len);
|
|
|
|
}
|
|
|
|
if (doc->lpszOutput)
|
|
|
|
{
|
|
|
|
len = MultiByteToWideChar(CP_ACP,0,doc->lpszOutput,-1,NULL,0);
|
|
|
|
szOutput = HeapAlloc(GetProcessHeap(),0,len*sizeof(WCHAR));
|
|
|
|
MultiByteToWideChar(CP_ACP,0,doc->lpszOutput,-1,szOutput,len);
|
|
|
|
}
|
|
|
|
if (doc->lpszDatatype)
|
|
|
|
{
|
|
|
|
len = MultiByteToWideChar(CP_ACP,0,doc->lpszDatatype,-1,NULL,0);
|
|
|
|
szDatatype = HeapAlloc(GetProcessHeap(),0,len*sizeof(WCHAR));
|
|
|
|
MultiByteToWideChar(CP_ACP,0,doc->lpszDatatype,-1,szDatatype,len);
|
|
|
|
}
|
|
|
|
|
|
|
|
docW.lpszDocName = szDocName;
|
|
|
|
docW.lpszOutput = szOutput;
|
|
|
|
docW.lpszDatatype = szDatatype;
|
|
|
|
docW.fwType = doc->fwType;
|
|
|
|
|
|
|
|
ret = StartDocW(hdc, &docW);
|
|
|
|
|
|
|
|
HeapFree( GetProcessHeap(), 0, szDocName );
|
|
|
|
HeapFree( GetProcessHeap(), 0, szOutput );
|
|
|
|
HeapFree( GetProcessHeap(), 0, szDatatype );
|
1999-07-25 11:25:59 +00:00
|
|
|
|
|
|
|
return ret;
|
1999-01-24 18:59:58 +00:00
|
|
|
}
|
|
|
|
|
1998-12-08 09:44:30 +00:00
|
|
|
|
1999-07-25 11:25:59 +00:00
|
|
|
/******************************************************************
|
2001-06-11 20:16:11 +00:00
|
|
|
* EndDoc [GDI32.@]
|
1999-07-25 11:25:59 +00:00
|
|
|
*
|
1998-12-11 10:17:31 +00:00
|
|
|
*/
|
1999-07-25 11:25:59 +00:00
|
|
|
INT WINAPI EndDoc(HDC hdc)
|
|
|
|
{
|
2001-07-29 20:25:14 +00:00
|
|
|
INT ret = 0;
|
2007-09-24 16:23:42 +00:00
|
|
|
DC *dc = get_dc_ptr( hdc );
|
2000-05-18 00:52:08 +00:00
|
|
|
if(!dc) return SP_ERROR;
|
1999-07-25 11:25:59 +00:00
|
|
|
|
2002-03-28 22:22:05 +00:00
|
|
|
if (dc->funcs->pEndDoc) ret = dc->funcs->pEndDoc( dc->physDev );
|
2007-09-24 16:23:42 +00:00
|
|
|
release_dc_ptr( dc );
|
2000-08-19 21:38:55 +00:00
|
|
|
return ret;
|
1998-12-11 10:17:31 +00:00
|
|
|
}
|
|
|
|
|
1998-12-08 09:44:30 +00:00
|
|
|
|
|
|
|
/******************************************************************
|
2001-06-11 20:16:11 +00:00
|
|
|
* StartPage [GDI32.@]
|
1998-12-08 09:44:30 +00:00
|
|
|
*
|
|
|
|
*/
|
1999-07-25 11:25:59 +00:00
|
|
|
INT WINAPI StartPage(HDC hdc)
|
1998-12-08 09:44:30 +00:00
|
|
|
{
|
2000-08-19 21:38:55 +00:00
|
|
|
INT ret = 1;
|
2007-09-24 16:23:42 +00:00
|
|
|
DC *dc = get_dc_ptr( hdc );
|
2000-05-18 00:52:08 +00:00
|
|
|
if(!dc) return SP_ERROR;
|
1999-07-25 11:25:59 +00:00
|
|
|
|
|
|
|
if(dc->funcs->pStartPage)
|
2002-03-28 22:22:05 +00:00
|
|
|
ret = dc->funcs->pStartPage( dc->physDev );
|
2000-08-19 21:38:55 +00:00
|
|
|
else
|
|
|
|
FIXME("stub\n");
|
2007-09-24 16:23:42 +00:00
|
|
|
release_dc_ptr( dc );
|
2000-08-19 21:38:55 +00:00
|
|
|
return ret;
|
1998-12-08 09:44:30 +00:00
|
|
|
}
|
|
|
|
|
Release 970415
Mon Apr 14 11:22:54 1997 John Harvey <john@division.co.uk>
* [graphics/win16drv/init.c]
Minor changes to help debug problems.
* [if1632/dummy.c] [if1632/gdi.spec]
Dummy routines for StartPage, EndPage, SetAbortProc, AbortProc.
* [misc/printdrv.c] [if1632/gdi.spec] [include/windows.h]
StartDoc16, EndDoc16 new functions.
Sun Apr 13 11:18:35 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [memory/virtual.c]
Implemented MapViewOfFile.
* [debugger/dbg.y]
Added 'info maps' command.
Fri Apr 11 16:34:08 1997 Frans van Dorsselaer <devel@rulhmpc58.LeidenUniv.nl>
* [controls/edit.c] [controls/EDIT.TODO]
Started restructuring. Performance improvements.
Fixed: wordwrap, scrollbar handling, scrolling, painting,
EditWndProc() is now reentrant, wordbreak procs,
better compliance to specs.
New: margins, format rectangle.
* [controls/widgets.c]
Changed the cursor for the edit control class to an I-beam.
* [include/callback.h]
Added 32 bit wordbreak callback.
Mon Apr 7 20:53:28 1997 Albrecht Kleine <kleine@ak.sax.de>
* [objects/metafile.c]
Added handling of some more metafile records:
META_CREATEREGION, META_INVERTREGION etc.
Sat Apr 5 09:23:02 MET DST 1997 Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
* [loader/signal.c]
Define kernel sigaction ourselves instead of getting it
from the kernel source.
Wed Apr 2 21:05:00 1997 Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
* [control/menu.c]
Fix return value range for GetMenuState.
* [files/file.c]
Always fill out ofs->szPathName in FILE_DoOpenFile.
* [memory/string.c]
Add debug option string.
* [objects/cursoricon.c]
Fix return value for DestroyIcon32.
Mon Mar 31 17:16:12 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [DEVELOPERS-HINTS] [misc/*] [windows/*] [graphics/*]
Added description of the source tree. Moved several
files to fit it.
* [misc/shell.c]
Use Win32 heap functions.
1997-04-15 17:19:52 +00:00
|
|
|
|
1998-12-08 09:44:30 +00:00
|
|
|
/******************************************************************
|
2001-06-11 20:16:11 +00:00
|
|
|
* EndPage [GDI32.@]
|
1998-12-08 09:44:30 +00:00
|
|
|
*
|
|
|
|
*/
|
1999-07-25 11:25:59 +00:00
|
|
|
INT WINAPI EndPage(HDC hdc)
|
1998-12-08 09:44:30 +00:00
|
|
|
{
|
2001-07-29 20:25:14 +00:00
|
|
|
INT ret = 0;
|
2007-09-24 16:23:42 +00:00
|
|
|
DC *dc = get_dc_ptr( hdc );
|
2000-05-18 00:52:08 +00:00
|
|
|
if(!dc) return SP_ERROR;
|
1999-07-25 11:25:59 +00:00
|
|
|
|
2002-03-28 22:22:05 +00:00
|
|
|
if (dc->funcs->pEndPage) ret = dc->funcs->pEndPage( dc->physDev );
|
2007-09-24 16:23:42 +00:00
|
|
|
release_dc_ptr( dc );
|
2000-08-19 21:38:55 +00:00
|
|
|
return ret;
|
1998-12-08 09:44:30 +00:00
|
|
|
}
|
|
|
|
|
1998-12-11 10:17:31 +00:00
|
|
|
|
|
|
|
/******************************************************************************
|
2001-06-11 20:16:11 +00:00
|
|
|
* AbortDoc [GDI32.@]
|
1998-12-11 10:17:31 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
INT WINAPI AbortDoc(HDC hdc)
|
1998-12-11 10:17:31 +00:00
|
|
|
{
|
2001-07-29 20:25:14 +00:00
|
|
|
INT ret = 0;
|
2007-09-24 16:23:42 +00:00
|
|
|
DC *dc = get_dc_ptr( hdc );
|
2000-05-18 00:52:08 +00:00
|
|
|
if(!dc) return SP_ERROR;
|
1999-07-25 11:25:59 +00:00
|
|
|
|
2002-03-28 22:22:05 +00:00
|
|
|
if (dc->funcs->pAbortDoc) ret = dc->funcs->pAbortDoc( dc->physDev );
|
2007-09-24 16:23:42 +00:00
|
|
|
release_dc_ptr( dc );
|
2000-08-19 21:38:55 +00:00
|
|
|
return ret;
|
1999-05-17 16:20:51 +00:00
|
|
|
}
|
2009-02-16 21:09:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* SetAbortProc (GDI32.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
INT WINAPI SetAbortProc(HDC hdc, ABORTPROC abrtprc)
|
|
|
|
{
|
|
|
|
DC *dc = get_dc_ptr( hdc );
|
|
|
|
|
|
|
|
if (!dc) return FALSE;
|
|
|
|
dc->pAbortProc = abrtprc;
|
|
|
|
release_dc_ptr( dc );
|
|
|
|
return TRUE;
|
|
|
|
}
|