COMMENT @----------------------------------------------------------------------

	Copyright (c) GeoWorks 1991 -- All Rights Reserved

PROJECT:	PC/GEOS
MODULE:		Quattro Pro EPS Import
FILE:		qeps.def

REVISION HISTORY
	Name	Date		Description
	----	----		-----------
	Jim	9/91		Initial version
	Eric	10/91		Moved all QEPS code into this library,
				for use by Importer library and the Viewer app.

DESCRIPTION
	This file contains the equates and the data structures for calls
	to the CD-ROM driver. From the MSCDEX CD-ROM Extensions Version
	2.10 document.

	$Id: qeps.def,v 1.1 97/04/04 14:24:38 newdeal Exp $
-------------------------------------------------------------------------------@

StartLibrary qeps

;------------------------------------------------------------------------------
;		Globals
;------------------------------------------------------------------------------
;VERY IMPORTANT: read the headers for these routines carefully before calling
;them. Some of them require the caller to have initialized a stack frame.
;Those routines will TRASH THE STACK if you do not do so!

global	AssertQEPSFile:far
global	InitPSGString:far
global	InitPSInterpreter:far
global	RunPSInterpreter:far
global	FreePSInterpreter:far

;------------------------------------------------------------------------------
;		Definitions
;------------------------------------------------------------------------------

	; Pattern mapping mode.  
	; Either map to equivalent GEOS patterns or map to solids
PatternMapMode		etype	byte
PMM_MAP_TO_SOLID	enum	PatternMapMode	; map to solid colors
PMM_MAP_TO_PATTERN	enum	PatternMapMode	; map to patterns

	; Font mapping mode.  
	; Either map to equivalent FontID or map to base set of fonts
FontMapMode		etype	byte
FMM_MAP_TO_BASE		enum	FontMapMode	; map to BASE IDs
FMM_MAP_NORMALLY	enum	FontMapMode	; map to equivalent IDs

	; PostScript interpreter options.  Passed to InitPSInterpreter
PSOptions	record
    PSO_FUTURE:14,				; future bits
    PSO_PATTMAP PatternMapMode:1,		; pattern mapping options
    PSO_FONTMAP FontMapMode:1			; font mapping options
PSOptions	end

	; PSInterpreter structure
	; Local variables used in PostScript interpretaion.
PSInterp	struct
    PSI_vmFile	hptr			; VM file handle for result
    PSI_vmBlock	hptr			; initial VM block handle for result
    PSI_bounds	Rectangle		; bounds stored in %%BoundingBox comment
PSInterp	ends

EndLibrary qeps
