1996-08-24 20:26:35 +02:00
|
|
|
/*
|
|
|
|
* Implementation of some printer driver bits
|
|
|
|
*
|
|
|
|
* Copyright 1996 John Harvey
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include "windows.h"
|
|
|
|
#include "win.h"
|
|
|
|
#include "winerror.h"
|
|
|
|
|
|
|
|
|
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 19:19:52 +02:00
|
|
|
INT16 StartDoc16( HDC16 hdc, const DOCINFO16 *lpdoc )
|
|
|
|
{
|
|
|
|
INT16 retVal;
|
|
|
|
printf("In startdoc16(%p)\n", lpdoc );
|
|
|
|
printf("In StartDoc16 %d 0x%lx:0x%p 0x%lx:0x%p\n",lpdoc->cbSize,
|
|
|
|
lpdoc->lpszDocName,PTR_SEG_TO_LIN(lpdoc->lpszDocName),
|
|
|
|
lpdoc->lpszOutput,PTR_SEG_TO_LIN(lpdoc->lpszOutput));
|
|
|
|
printf("In StartDoc16 %d %s %s\n",lpdoc->cbSize,
|
|
|
|
(LPSTR)PTR_SEG_TO_LIN(lpdoc->lpszDocName),
|
|
|
|
(LPSTR)PTR_SEG_TO_LIN(lpdoc->lpszOutput));
|
|
|
|
retVal = Escape16(hdc, STARTDOC, sizeof(DOCINFO16), lpdoc->lpszDocName, 0);
|
|
|
|
printf("Escape16 returned %d\n",retVal);
|
|
|
|
return retVal;
|
|
|
|
}
|
|
|
|
|
|
|
|
INT16
|
|
|
|
EndDoc16(HDC16 hdc)
|
|
|
|
{
|
|
|
|
return Escape16(hdc, ENDDOC, 0, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1996-08-24 20:26:35 +02:00
|
|
|
DWORD
|
|
|
|
DrvGetPrinterData(LPSTR lpPrinter, LPSTR lpProfile, LPDWORD lpType,
|
|
|
|
LPBYTE lpPrinterData, int cbData, LPDWORD lpNeeded)
|
|
|
|
{
|
1997-06-29 20:08:02 +02:00
|
|
|
fprintf(stderr,"In DrvGetPrinterData ");
|
|
|
|
if (HIWORD(lpPrinter))
|
|
|
|
fprintf(stderr,"printer %s ",lpPrinter);
|
|
|
|
else
|
|
|
|
fprintf(stderr,"printer %p ",lpPrinter);
|
|
|
|
if (HIWORD(lpProfile))
|
|
|
|
fprintf(stderr,"profile %s ",lpProfile);
|
|
|
|
else
|
|
|
|
fprintf(stderr,"profile %p ",lpProfile);
|
|
|
|
fprintf(stderr,"lpType %p\n",lpType);
|
1996-08-24 20:26:35 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
DrvSetPrinterData(LPSTR lpPrinter, LPSTR lpProfile, LPDWORD lpType,
|
|
|
|
LPBYTE lpPrinterData, DWORD dwSize)
|
|
|
|
{
|
1997-06-29 20:08:02 +02:00
|
|
|
fprintf(stderr,"In DrvSetPrinterData ");
|
|
|
|
if (HIWORD(lpPrinter))
|
|
|
|
fprintf(stderr,"printer %s ",lpPrinter);
|
|
|
|
else
|
|
|
|
fprintf(stderr,"printer %p ",lpPrinter);
|
|
|
|
if (HIWORD(lpProfile))
|
|
|
|
fprintf(stderr,"profile %s ",lpProfile);
|
|
|
|
else
|
|
|
|
fprintf(stderr,"profile %p ",lpProfile);
|
|
|
|
fprintf(stderr,"lpType %p\n",lpType);
|
1996-08-24 20:26:35 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|