1
/* $XConsortium: Print.h /main/13 1996/10/31 02:09:08 cde-hp $ */
5
/* (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
7
* (c) Copyright 1989, 1996 DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
8
* (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1995, 1996,
9
* HEWLETT-PACKARD COMPANY
10
* (c) Copyright 1996 International Business Machines Corp.
11
* (c) Copyright 1996 Sun Microsystems, Inc.
12
* (c) Copyright 1996 Novell, Inc.
13
* (c) Copyright 1996 FUJITSU LIMITED.
14
* (c) Copyright 1996 Hitachi.
20
#include <X11/extensions/Print.h>
27
* Class record constants
29
externalref WidgetClass dtPrintSetupBoxWidgetClass;
31
typedef struct _DtPrintSetupBoxClassRec * DtPrintSetupBoxWidgetClass;
32
typedef struct _DtPrintSetupBoxRec * DtPrintSetupBoxWidget;
35
#ifndef DtIsPrintSetupBox
36
#define DtIsPrintSetupBox(w) (XtIsSubclass (w, dtPrintSetupBoxWidgetClass))
42
#define DtNcancelCallback "cancelCallback"
43
#define DtNclosePrintDisplayCallback "closePrintDisplayCallback"
44
#define DtNcopies "copies"
45
#define DtNdescription "description"
46
#define DtNdestroyContextCallback "destroyContextCallback"
47
#define DtNfileName "fileName"
48
#ifndef DtNminimizeButtons
49
# define DtNminimizeButtons "minimizeButtons"
51
#define DtNoptionCount "optionCount"
52
#define DtNoptions "options"
53
#define DtNprintCallback "printCallback"
54
#define DtNprintDestination "printDestination"
55
#define DtNprinterInfoProc "printerInfoProc"
56
#define DtNprinterName "printerName"
57
#define DtNprintSetupMode "printSetupMode"
58
#define DtNselectFileProc "selectFileProc"
59
#define DtNselectPrinterProc "selectPrinterProc"
60
#define DtNsetupCallback "setupCallback"
61
#define DtNverifyPrinterProc "verifyPrinterProc"
62
#define DtNworkAreaLocation "workAreaLocation"
64
#define DtCCancelCallback "CancelCallback"
65
#define DtCClosePrintDisplayCallback "ClosePrintDisplayCallback"
66
#define DtCCopies "Copies"
67
#define DtCDescription "Description"
68
#define DtCDestroyContextCallback "DestroyContextCallback"
69
#define DtCFileName "FileName"
70
#ifndef DtCMinimizeButtons
71
# define DtCMinimizeButtons "MinimizeButtons"
73
#define DtCOptionCount "OptionCount"
74
#define DtCOptions "Options"
75
#define DtCPrintCallback "PrintCallback"
76
#define DtCPrintDestination "PrintDestination"
77
#define DtCPrinterInfoProc "PrinterInfoProc"
78
#define DtCPrinterName "PrinterName"
79
#define DtCPrintSetupMode "PrintSetupMode"
80
#define DtCSelectFileProc "SelectFileProc"
81
#define DtCSelectPrinterProc "SelectPrinterProc"
82
#define DtCSetupCallback "SetupCallback"
83
#define DtCVerifyPrinterProc "VerifyPrinterProc"
84
#define DtCWorkAreaLocation "WorkAreaLocation"
86
#define DtRPrintSetupProc "PrintSetupProc"
89
* DtNsetupMode Resource Values
97
* DtNworkAreaLocation Resource Values
102
DtWORK_AREA_TOP_AND_BOTTOM,
107
* DtNprintDestination Resource Values
109
enum { DtPRINT_NO_DESTINATION, DtPRINT_TO_PRINTER, DtPRINT_TO_FILE };
112
* DtNprinterNameMode Resource Values
114
enum { DtSHORT_NAME, DtMEDIUM_NAME, DtLONG_NAME };
117
* Mode values for DtPrintSetupBoxResetConnection()
120
DtPRINT_CLOSE_CONNECTION,
121
DtPRINT_RELEASE_CONNECTION
122
} DtPrintResetConnectionMode;
130
DtPRINT_CR_CLOSE_PRINT_DISPLAY,
136
* DtPrint proecdure return values
142
DtPRINT_INVALID_DISPLAY,
143
DtPRINT_NOT_XP_DISPLAY,
144
DtPRINT_NO_CONNECTION,
146
DtPRINT_NO_DEFAULT_DISPLAY,
148
DtPRINT_PRINTER_MISSING
152
DtPRINT_HINT_MESSAGES_OK,
153
DtPRINT_HINT_NO_MESSAGES
157
* PrintSetupBox Callback Structure Definition
159
typedef struct _DtPrintSetupData
162
Display *print_display;
163
XPContext print_context;
166
XtEnum messages_hint;
169
typedef struct _DtPrintSetupCallbackStruct
173
DtPrintSetupData *print_data;
174
} DtPrintSetupCallbackStruct;
177
* PrintSetupBox Procedure Resource Type Definition
179
typedef XtEnum (*DtPrintSetupProc)(Widget, DtPrintSetupData*);
182
* Public Function Declarations
184
extern Widget DtCreatePrintSetupBox(
189
extern Widget DtCreatePrintSetupDialog(
194
extern DtPrintSetupData* DtPrintCopySetupData(
195
DtPrintSetupData* target,
196
const DtPrintSetupData* source);
197
extern XtEnum DtPrintFillSetupData(
199
DtPrintSetupData* print_data);
200
extern void DtPrintFreeSetupData(
201
DtPrintSetupData* target);
202
extern XtEnum DtPrintResetConnection(
204
DtPrintResetConnectionMode m);
207
} /* Close scope of 'extern "C"' declaration which encloses file. */
210
#endif /* _DtPrint_h */
211
/* DON'T ADD ANYTHING AFTER THIS #endif */