1 | /* $Xorg: Raster.h,v 1.3 2000/08/17 19:48:12 cpqbld Exp $ */
|
---|
2 | /*
|
---|
3 | (c) Copyright 1996 Hewlett-Packard Company
|
---|
4 | (c) Copyright 1996 International Business Machines Corp.
|
---|
5 | (c) Copyright 1996 Sun Microsystems, Inc.
|
---|
6 | (c) Copyright 1996 Novell, Inc.
|
---|
7 | (c) Copyright 1996 Digital Equipment Corp.
|
---|
8 | (c) Copyright 1996 Fujitsu Limited
|
---|
9 | (c) Copyright 1996 Hitachi, Ltd.
|
---|
10 |
|
---|
11 | Permission is hereby granted, free of charge, to any person obtaining a copy
|
---|
12 | of this software and associated documentation files (the "Software"), to deal
|
---|
13 | in the Software without restriction, including without limitation the rights
|
---|
14 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
---|
15 | copies of the Software, and to permit persons to whom the Software is
|
---|
16 | furnished to do so, subject to the following conditions:
|
---|
17 |
|
---|
18 | The above copyright notice and this permission notice shall be included in
|
---|
19 | all copies or substantial portions of the Software.
|
---|
20 |
|
---|
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
22 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
23 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
---|
24 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
---|
25 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
26 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
27 |
|
---|
28 | Except as contained in this notice, the names of the copyright holders shall
|
---|
29 | not be used in advertising or otherwise to promote the sale, use or other
|
---|
30 | dealings in this Software without prior written authorization from said
|
---|
31 | copyright holders.
|
---|
32 | */
|
---|
33 | /*******************************************************************
|
---|
34 | **
|
---|
35 | ** *********************************************************
|
---|
36 | ** *
|
---|
37 | ** * File: printer/Raster.h
|
---|
38 | ** *
|
---|
39 | ** * Contents: defines and includes for the raster layer
|
---|
40 | ** * for a printing X server.
|
---|
41 | ** *
|
---|
42 | ** * Copyright: Copyright 1993 Hewlett-Packard Company
|
---|
43 | ** *
|
---|
44 | ** *********************************************************
|
---|
45 | **
|
---|
46 | ********************************************************************/
|
---|
47 | #ifdef HAVE_DIX_CONFIG_H
|
---|
48 | #include <dix-config.h>
|
---|
49 | #endif
|
---|
50 |
|
---|
51 | #ifndef _RASTER_H_
|
---|
52 | #define _RASTER_H_
|
---|
53 |
|
---|
54 | /*
|
---|
55 | * Some sleazes to force the XrmDB stuff into the server
|
---|
56 | */
|
---|
57 | #ifndef HAVE_XPointer
|
---|
58 | #define HAVE_XPointer 1
|
---|
59 | typedef char *XPointer;
|
---|
60 | #endif
|
---|
61 | #define Status int
|
---|
62 | #define True 1
|
---|
63 | #define False 0
|
---|
64 | #include "misc.h"
|
---|
65 | #include <X11/Xfuncproto.h>
|
---|
66 | #include <X11/Xresource.h>
|
---|
67 | #include "attributes.h"
|
---|
68 |
|
---|
69 | #include <X11/extensions/Printstr.h>
|
---|
70 |
|
---|
71 | #define MAX_TOKEN_LEN 512
|
---|
72 |
|
---|
73 | #define RASTER_PRINT_PAGE_COMMAND "_XP_RASTER_PAGE_PROC_COMMAND"
|
---|
74 |
|
---|
75 | #define RASTER_IN_FILE_STRING "%(InFile)%"
|
---|
76 | #define RASTER_OUT_FILE_STRING "%(OutFile)%"
|
---|
77 |
|
---|
78 | #define RASTER_ALLOWED_COMMANDS_FILE "printCommands"
|
---|
79 |
|
---|
80 | /*
|
---|
81 | * Defines for the "options" in DtPrintDocumentData.
|
---|
82 | */
|
---|
83 | #define PRE_RASTER "PRE-RASTER"
|
---|
84 | #define POST_RASTER "POST-RASTER"
|
---|
85 | #define NO_RASTER "NO-RASTER"
|
---|
86 |
|
---|
87 |
|
---|
88 | typedef struct {
|
---|
89 | char *pBits;
|
---|
90 | CreateWindowProcPtr CreateWindow;
|
---|
91 | ChangeWindowAttributesProcPtr ChangeWindowAttributes;
|
---|
92 | DestroyWindowProcPtr DestroyWindow;
|
---|
93 | CloseScreenProcPtr CloseScreen;
|
---|
94 | } RasterScreenPrivRec, *RasterScreenPrivPtr;
|
---|
95 |
|
---|
96 | typedef struct {
|
---|
97 | XrmDatabase config;
|
---|
98 | char *jobFileName;
|
---|
99 | FILE *pJobFile;
|
---|
100 | char *pageFileName;
|
---|
101 | FILE *pPageFile;
|
---|
102 | char *preRasterFileName; /* Pre-raster document data */
|
---|
103 | FILE *pPreRasterFile;
|
---|
104 | char *noRasterFileName; /* Raster replacement document data */
|
---|
105 | FILE *pNoRasterFile;
|
---|
106 | char *postRasterFileName; /* Post-raster document data */
|
---|
107 | FILE *pPostRasterFile;
|
---|
108 | ClientPtr getDocClient;
|
---|
109 | int getDocBufSize;
|
---|
110 | } RasterContextPrivRec, *RasterContextPrivPtr;
|
---|
111 |
|
---|
112 |
|
---|
113 | extern XpValidatePoolsRec RasterValidatePoolsRec;
|
---|
114 |
|
---|
115 | extern Bool InitializeRasterDriver(int ndx, ScreenPtr pScreen, int argc,
|
---|
116 | char **argv);
|
---|
117 |
|
---|
118 | #endif /* _RASTER_H_ */
|
---|