VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/Raster.h@ 62425

最後變更 在這個檔案從62425是 51223,由 vboxsync 提交於 11 年 前

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.8 KB
 
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
11Permission is hereby granted, free of charge, to any person obtaining a copy
12of this software and associated documentation files (the "Software"), to deal
13in the Software without restriction, including without limitation the rights
14to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15copies of the Software, and to permit persons to whom the Software is
16furnished to do so, subject to the following conditions:
17
18The above copyright notice and this permission notice shall be included in
19all copies or substantial portions of the Software.
20
21THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
25IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
28Except as contained in this notice, the names of the copyright holders shall
29not be used in advertising or otherwise to promote the sale, use or other
30dealings in this Software without prior written authorization from said
31copyright 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
59typedef 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
88typedef struct {
89 char *pBits;
90 CreateWindowProcPtr CreateWindow;
91 ChangeWindowAttributesProcPtr ChangeWindowAttributes;
92 DestroyWindowProcPtr DestroyWindow;
93 CloseScreenProcPtr CloseScreen;
94} RasterScreenPrivRec, *RasterScreenPrivPtr;
95
96typedef 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
113extern XpValidatePoolsRec RasterValidatePoolsRec;
114
115extern Bool InitializeRasterDriver(int ndx, ScreenPtr pScreen, int argc,
116 char **argv);
117
118#endif /* _RASTER_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette