1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
|
#ifndef PIPSDEF_H
#define PIPSDEF_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef unsigned char UCHAR;
typedef unsigned short USHORT;
typedef unsigned int UINT;
typedef unsigned long ULONG;
typedef struct _POINT
{
long x;
long y;
} POINT, *LP_POINT;
typedef int BOOL;
typedef void* HANDLE;
typedef struct _DOUBLE_POINT
{
double x;
double y;
} DPOINT, *LP_DPOINT;
/* print$B9=B$BN(B $B0u:~%Q%i%a!<%?$r3JG<$9$k(B */
typedef struct _PP_PRINT_STRUCT
{
UCHAR paper;
UCHAR ink;
UCHAR media_type;
UCHAR qlevel;
int brightness;
int contrast;
int saturation;
POINT ratio;
POINT margin;
POINT paper_size;
POINT paper_area;
POINT default_margin;
int fit_page; /* add -Fri Oct 5 2001 */
UCHAR borderless_print;
} PRT_STRUCT, *LP_PRT_STRUCT;
#ifdef __cplusplus
}
#endif /* __cplusplus */
#define MODE_ITEM 4
enum MODE_OFSET
{
MOFS_PAPER_SIZE = 0,
MOFS_MEDIA,
MOFS_QUALITY,
MOFS_BORDERLESS_PRINT
};
/* output type */
enum eOUTPUT_FORMAT
{
PIPS_OUTPUT_MONO = 1,
PIPS_OUTPUT_CMYKcm = 0
};
/* media size */
#define PM_MSID_A4 0x00
#define PM_MSID_LETTER 0x01
#define PM_MSID_LEGAL 0x02
#define PM_MSID_A5 0x03
#define PM_MSID_A6 0x04
#define PM_MSID_B5 0x05
#define PM_MSID_EXECUTIVE 0x06
#define PM_MSID_HALFLETTER 0x07
#define PM_MSID_PANORAMIC 0x08
#define PM_MSID_TRIM_4X6 0x09
#define PM_MSID_4X6 0x0A
#define PM_MSID_5X8 0x0B
#define PM_MSID_8X10 0x0C
#define PM_MSID_10X15 0x0D
#define PM_MSID_200X300 0x0E
#define PM_MSID_L 0x0F
#define PM_MSID_POSTCARD 0x10
#define PM_MSID_DBLPOSTCARD 0x11
#define PM_MSID_ENV_10_L 0x12
#define PM_MSID_ENV_C6_L 0x13
#define PM_MSID_ENV_DL_L 0x14
#define PM_MSID_NEWEVN_L 0x15
#define PM_MSID_CHOKEI_3 0x16
#define PM_MSID_CHOKEI_4 0x17
#define PM_MSID_YOKEI_1 0x18
#define PM_MSID_YOKEI_2 0x19
#define PM_MSID_YOKEI_3 0x1A
#define PM_MSID_YOKEI_4 0x1B
#define PM_MSID_2L 0x1C
#define PM_MSID_ENV_10 0x1D
#define PM_MSID_ENV_C6 0x1E
#define PM_MSID_ENV_DL 0x1F
#define PM_MSID_NEWENV 0x20
#define PM_MSID_BUZCARD_89X50 0x21
#define PM_MSID_BUZCARD_89X55 0x22
#define PM_MSID_CARD_54X86 0x23
#define PM_MSID_BUZCARD_55X91 0x24
#define PM_MSID_ALBUM_A5 0x25
#define PM_MSID_ALBUM_L 0x26
#define PM_MSID_PALBUM_L_L 0x27
#define PM_MSID_PALBUM_2L 0x28
#define PM_MSID_PALBUM_A5_L 0x29
#define PM_MSID_PALBUM_A4 0x2A
#define PM_MSID_4X7 0x2B
#define PM_MSID_A3NOBI 0x3D
#define PM_MSID_A3 0x3E
#define PM_MSID_B4 0x3F
#define PM_MSID_USB 0x40
#define PM_MSID_11X14 0x41
#define PM_MSID_B3 0x42
#define PM_MSID_A2 0x43
#define PM_MSID_USC 0x44
#define PM_MSID_10X12 0x45
#define PM_MSID_12X12 0x46
#define PM_MSID_USER 0x63
#define PM_MSID_UNKNOWN -2
/* Support media type id */
#define PM_MTID_PLAIN 0x00
#define PM_MTID_360INKJET 0x01
#define PM_MTID_IRON 0x02
#define PM_MTID_PHOTOINKJET 0x03
#define PM_MTID_PHOTOADSHEET 0x04
#define PM_MTID_MATTE 0x05
#define PM_MTID_PHOTO 0x06
#define PM_MTID_PHOTOFILM 0x07
#define PM_MTID_MINIPHOTO 0x08
#define PM_MTID_OHP 0x09
#define PM_MTID_BACKLIGHT 0x0A
#define PM_MTID_PGPHOTO 0x0B
#define PM_MTID_PSPHOTO 0x0C
#define PM_MTID_PLPHOTO 0x0D
#define PM_MTID_MCGLOSSY 0x0E
#define PM_MTID_ARCHMATTE 0x0F
#define PM_MTID_WATERCOLOR 0x10
#define PM_MTID_PROGLOSS 0x11
#define PM_MTID_MATTEBOARD 0x12
#define PM_MTID_PHOTOGLOSS 0x13
#define PM_MTID_SEMIPROOF 0x14
#define PM_MTID_SUPERFINE2 0x15
#define PM_MTID_DSMATTE 0x16
#define PM_MTID_CLPHOTO 0x17
#define PM_MTID_ECOPHOTO 0x18
#define PM_MTID_VELVETFINEART 0x19
#define PM_MTID_PROOFSEMI 0x1A
#define PM_MTID_HAGAKIRECL 0x1B
#define PM_MTID_HAGAKIINKJET 0x1C
#define PM_MTID_PHOTOINKJET2 0x1D
#define PM_MTID_DURABRITE 0x1E
#define PM_MTID_MATTEMEISHI 0x1F
#define PM_MTID_HAGAKIATENA 0x20
#define PM_MTID_PHOTOALBUM 0x21
#define PM_MTID_PHOTOSTAND 0x22
#define PM_MTID_RCB 0x23
#define PM_MTID_PGPHOTOEG 0x24
#define PM_MTID_ENVELOPE 0x25
#define PM_MTID_PLATINA 0x26
#define PM_MTID_ULTRASMOOTH 0x27
/* add Wed Jan 28 2009 v */
#define PM_MTID_SFHAGAKI 0x28 /* "Super Fine Postcard\0" */
#define PM_MTID_PHOTOSTD 0x29 /* "Premium Glossy Photo Paper (Standard)\0" */
#define PM_MTID_GLOSSYHAGAKI 0x2A /* "Glossy Postcard\0" */
#define PM_MTID_GLOSSYPHOTO 0x2B /* "Glossy Photo Paper\0" */
#define PM_MTID_GLOSSYCAST 0x2C /* "Epson Photo\0" */
#define PM_MTID_BUSINESSCOAT 0x2D /* "Business Ink Jet Coat Paper\0" */
/* add Wed Jan 28 2009 ^ */
/* del Wed Jan 28 2009 #define PM_MTID_GPHOTO 0x2B*/
/* del Wed Jan 28 2009 #define PM_MTID_PHOTOEGCP 0x2C*/
#define PM_MTID_CDDVD 0x5B
#define PM_MTID_CDDVDHIGH 0x5C
#define PM_MTID_CLEANING 0x63
#define PM_MTID_UNKNOWN -2
#define SILENT_MASK 0x10000000
/* quality level set pattern bits */
enum eQUALITY
{
PIPS_LV_DRAFT = 0,
PIPS_LV_NORMAL = 1,
PIPS_LV_HIGH = 2
};
/* Ink status */
enum eINK_STATUS
{
ST_INK_NORMAL = 0,
ST_INK_LOW,
ST_INK_END
};
/* Fit to page */
enum eFIT_PAGE
{
PIPS_FP_OFF = 0,
PIPS_FP_ON
};
/* Multi page */
enum eMULTI_PAGE
{
PIPS_MP_1 = 0,
PIPS_MP_2,
PIPS_MP_4
};
/* Borderless Print */
enum eBORDERLESS_PRINT
{
PIPS_BL_OFF = 0,
PIPS_BL_ON
};
typedef int (*func_t)(UCHAR *, void *, void *, void *);
#endif /* PIPSDEF_H */
|