Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

429 lines
12 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "GW5380PC.GPD"
  7. *Include: "STDNAMES.GPD"
  8. *GPDFileVersion: "1.000"
  9. *CodePage: 1252
  10. *ModelName: "Great Wall 5380 plus"
  11. *MasterUnits: PAIR(360, 360)
  12. *ResourceDLL: "GW63CRES.DLL"
  13. *PrinterType: SERIAL
  14. *Feature: Orientation
  15. {
  16. *rcNameID: =ORIENTATION_DISPLAY
  17. *DefaultOption: PORTRAIT
  18. *Option: PORTRAIT
  19. {
  20. *rcNameID: =PORTRAIT_DISPLAY
  21. }
  22. *Option: LANDSCAPE_CC270
  23. {
  24. *rcNameID: =LANDSCAPE_DISPLAY
  25. }
  26. }
  27. *Feature: InputBin
  28. {
  29. *rcNameID: =PAPER_SOURCE_DISPLAY
  30. *DefaultOption: MANUAL
  31. *Option: MANUAL
  32. {
  33. *rcNameID: =MANUAL_FEED_DISPLAY
  34. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  35. }
  36. *Option: Option2
  37. {
  38. *rcNameID: 278
  39. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  40. }
  41. *Option: Option3
  42. {
  43. *rcNameID: 279
  44. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  45. }
  46. }
  47. *Feature: Resolution
  48. {
  49. *rcNameID: =RESOLUTION_DISPLAY
  50. *DefaultOption: Option2
  51. *Option: Option1
  52. {
  53. *Name: "360 x 180 dots per inch"
  54. *DPI: PAIR(360, 180)
  55. *TextDPI: PAIR(360, 180)
  56. *PinsPerLogPass: 24
  57. *PinsPerPhysPass: 24
  58. *MinStripBlankPixels: 360
  59. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  60. *% Warning: this resolution has RES_BO_NO_ADJACENT set in GPC, which is ignored by GPD. Custom code is needed.
  61. *SpotDiameter: 170
  62. *Command: CmdSendBlockData { *Cmd : "<1B>%%I(" %m{(NumOfDataBytes / 3) } }
  63. }
  64. *Option: Option2
  65. {
  66. *Name: "180 x 180 dots per inch"
  67. *DPI: PAIR(180, 180)
  68. *TextDPI: PAIR(180, 180)
  69. *PinsPerLogPass: 24
  70. *PinsPerPhysPass: 24
  71. *MinStripBlankPixels: 180
  72. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  73. *SpotDiameter: 120
  74. *Command: CmdSendBlockData { *Cmd : "<1B>%%1" %m{(NumOfDataBytes / 3) } }
  75. }
  76. }
  77. *Feature: PaperSize
  78. {
  79. *rcNameID: =PAPER_SIZE_DISPLAY
  80. *DefaultOption: A4
  81. *Option: LETTER
  82. {
  83. *rcNameID: =LETTER_DISPLAY
  84. *PrintableArea: PAIR(2820, 3616)
  85. *PrintableOrigin: PAIR(120, 120)
  86. }
  87. *Option: LEGAL
  88. {
  89. *rcNameID: =LEGAL_DISPLAY
  90. *PrintableArea: PAIR(2820, 4696)
  91. *PrintableOrigin: PAIR(120, 120)
  92. }
  93. *Option: A3
  94. {
  95. *rcNameID: =A3_DISPLAY
  96. *PrintableArea: PAIR(3968, 5610)
  97. *PrintableOrigin: PAIR(120, 120)
  98. }
  99. *Option: A4
  100. {
  101. *rcNameID: =A4_DISPLAY
  102. *PrintableArea: PAIR(2737, 3864)
  103. *PrintableOrigin: PAIR(120, 120)
  104. *switch: Resolution
  105. {
  106. *case: Option2
  107. {
  108. *% Warning: the following printable width is adjusted (2737->2736) so it is divisible by the resolution X scale.
  109. *PrintableArea: PAIR(2736, 3864)
  110. }
  111. }
  112. }
  113. *Option: A5
  114. {
  115. *rcNameID: =A5_DISPLAY
  116. *PrintableArea: PAIR(1859, 2633)
  117. *PrintableOrigin: PAIR(120, 120)
  118. *switch: Resolution
  119. {
  120. *case: Option1
  121. {
  122. *% Warning: the following printable length is adjusted (2633->2632) so it is divisible by the resolution Y scale.
  123. *PrintableArea: PAIR(1859, 2632)
  124. }
  125. *case: Option2
  126. {
  127. *% Warning: the following printable width is adjusted (1859->1858) so it is divisible by the resolution X scale.
  128. *% Warning: the following printable length is adjusted (2633->2632) so it is divisible by the resolution Y scale.
  129. *PrintableArea: PAIR(1858, 2632)
  130. }
  131. }
  132. }
  133. *Option: B4
  134. {
  135. *rcNameID: =B4_DISPLAY
  136. *PrintableArea: PAIR(3403, 4815)
  137. *PrintableOrigin: PAIR(120, 120)
  138. *switch: Resolution
  139. {
  140. *case: Option1
  141. {
  142. *% Warning: the following printable length is adjusted (4815->4814) so it is divisible by the resolution Y scale.
  143. *PrintableArea: PAIR(3403, 4814)
  144. }
  145. *case: Option2
  146. {
  147. *% Warning: the following printable width is adjusted (3403->3402) so it is divisible by the resolution X scale.
  148. *% Warning: the following printable length is adjusted (4815->4814) so it is divisible by the resolution Y scale.
  149. *PrintableArea: PAIR(3402, 4814)
  150. }
  151. }
  152. }
  153. *Option: B5
  154. {
  155. *rcNameID: =B5_DISPLAY
  156. *PrintableArea: PAIR(2341, 3299)
  157. *PrintableOrigin: PAIR(120, 120)
  158. *switch: Resolution
  159. {
  160. *case: Option1
  161. {
  162. *% Warning: the following printable length is adjusted (3299->3298) so it is divisible by the resolution Y scale.
  163. *PrintableArea: PAIR(2341, 3298)
  164. }
  165. *case: Option2
  166. {
  167. *% Warning: the following printable width is adjusted (2341->2340) so it is divisible by the resolution X scale.
  168. *% Warning: the following printable length is adjusted (3299->3298) so it is divisible by the resolution Y scale.
  169. *PrintableArea: PAIR(2340, 3298)
  170. }
  171. }
  172. }
  173. *Option: Option8
  174. {
  175. *rcNameID: 258
  176. *PageDimensions: PAIR(2340, 1446)
  177. *PrintableArea: PAIR(2100, 1102)
  178. *PrintableOrigin: PAIR(120, 120)
  179. }
  180. *Option: Option9
  181. {
  182. *rcNameID: 259
  183. *PageDimensions: PAIR(2340, 1446)
  184. *PrintableArea: PAIR(2100, 1102)
  185. *PrintableOrigin: PAIR(120, 120)
  186. }
  187. *Option: Option10
  188. {
  189. *rcNameID: 260
  190. *PageDimensions: PAIR(2496, 1560)
  191. *PrintableArea: PAIR(2256, 1216)
  192. *PrintableOrigin: PAIR(120, 120)
  193. }
  194. *Option: Option11
  195. {
  196. *rcNameID: 261
  197. *PageDimensions: PAIR(2496, 1560)
  198. *PrintableArea: PAIR(2256, 1216)
  199. *PrintableOrigin: PAIR(120, 120)
  200. }
  201. *Option: Option12
  202. {
  203. *rcNameID: 262
  204. *PageDimensions: PAIR(2496, 1774)
  205. *PrintableArea: PAIR(2256, 1430)
  206. *PrintableOrigin: PAIR(120, 120)
  207. }
  208. *Option: Option13
  209. {
  210. *rcNameID: 263
  211. *PageDimensions: PAIR(2496, 1774)
  212. *PrintableArea: PAIR(2256, 1430)
  213. *PrintableOrigin: PAIR(120, 120)
  214. }
  215. *Option: Option14
  216. {
  217. *rcNameID: 264
  218. *PageDimensions: PAIR(2950, 1560)
  219. *PrintableArea: PAIR(2710, 1216)
  220. *PrintableOrigin: PAIR(120, 120)
  221. }
  222. *Option: Option15
  223. {
  224. *rcNameID: 265
  225. *PageDimensions: PAIR(2950, 1560)
  226. *PrintableArea: PAIR(2710, 1216)
  227. *PrintableOrigin: PAIR(120, 120)
  228. }
  229. *Option: Option16
  230. {
  231. *rcNameID: 266
  232. *PageDimensions: PAIR(3120, 1560)
  233. *PrintableArea: PAIR(2880, 1216)
  234. *PrintableOrigin: PAIR(120, 120)
  235. }
  236. *Option: Option17
  237. {
  238. *rcNameID: 267
  239. *PageDimensions: PAIR(3120, 1560)
  240. *PrintableArea: PAIR(2880, 1216)
  241. *PrintableOrigin: PAIR(120, 120)
  242. }
  243. *Option: Option18
  244. {
  245. *rcNameID: 268
  246. *PageDimensions: PAIR(3120, 1560)
  247. *PrintableArea: PAIR(2880, 1216)
  248. *PrintableOrigin: PAIR(120, 120)
  249. }
  250. *Option: Option19
  251. {
  252. *rcNameID: 269
  253. *PageDimensions: PAIR(3120, 1560)
  254. *PrintableArea: PAIR(2880, 1216)
  255. *PrintableOrigin: PAIR(120, 120)
  256. }
  257. *Option: Option20
  258. {
  259. *rcNameID: 270
  260. *PageDimensions: PAIR(2496, 1560)
  261. *PrintableArea: PAIR(2256, 1216)
  262. *PrintableOrigin: PAIR(120, 120)
  263. }
  264. *Option: Option21
  265. {
  266. *rcNameID: 271
  267. *PageDimensions: PAIR(2496, 1560)
  268. *PrintableArea: PAIR(2256, 1216)
  269. *PrintableOrigin: PAIR(120, 120)
  270. }
  271. *Option: Option22
  272. {
  273. *rcNameID: 272
  274. *PageDimensions: PAIR(3262, 2270)
  275. *PrintableArea: PAIR(3022, 1926)
  276. *PrintableOrigin: PAIR(120, 120)
  277. }
  278. *Option: Option23
  279. {
  280. *rcNameID: 273
  281. *PageDimensions: PAIR(3262, 2270)
  282. *PrintableArea: PAIR(3022, 1926)
  283. *PrintableOrigin: PAIR(120, 120)
  284. }
  285. *Option: Option24
  286. {
  287. *rcNameID: 274
  288. *PageDimensions: PAIR(4382, 1702)
  289. *PrintableArea: PAIR(4142, 1358)
  290. *PrintableOrigin: PAIR(120, 120)
  291. }
  292. *Option: Option25
  293. {
  294. *rcNameID: 275
  295. *PageDimensions: PAIR(4382, 1702)
  296. *PrintableArea: PAIR(4142, 1358)
  297. *PrintableOrigin: PAIR(120, 120)
  298. }
  299. *Option: Option26
  300. {
  301. *rcNameID: 276
  302. *PageDimensions: PAIR(4595, 3248)
  303. *PrintableArea: PAIR(4355, 2904)
  304. *PrintableOrigin: PAIR(120, 120)
  305. *switch: Resolution
  306. {
  307. *case: Option2
  308. {
  309. *% Warning: the following printable width is adjusted (4355->4354) so it is divisible by the resolution X scale.
  310. *PrintableArea: PAIR(4354, 2904)
  311. }
  312. }
  313. }
  314. *Option: Option27
  315. {
  316. *rcNameID: 277
  317. *PageDimensions: PAIR(4595, 3248)
  318. *PrintableArea: PAIR(4355, 2904)
  319. *PrintableOrigin: PAIR(120, 120)
  320. *switch: Resolution
  321. {
  322. *case: Option2
  323. {
  324. *% Warning: the following printable width is adjusted (4355->4354) so it is divisible by the resolution X scale.
  325. *PrintableArea: PAIR(4354, 2904)
  326. }
  327. }
  328. }
  329. *Option: CUSTOMSIZE
  330. {
  331. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  332. *MinSize: PAIR(180, 180)
  333. *MaxSize: PAIR(4896, 32767)
  334. *MaxPrintableWidth: 4896
  335. *MinLeftMargin: 0
  336. *CenterPrintable?: FALSE
  337. *TopMargin: 120
  338. *BottomMargin: 224
  339. }
  340. }
  341. *Feature: PrintQuality
  342. {
  343. *rcNameID: =TEXT_QUALITY_DISPLAY
  344. *DefaultOption: LETTER_QUALITY
  345. *Option: LETTER_QUALITY
  346. {
  347. *rcNameID: =LETTER_QUALITY_DISPLAY
  348. }
  349. *Option: DRAFT_QUALITY
  350. {
  351. *rcNameID: =DRAFT_QUALITY_DISPLAY
  352. }
  353. }
  354. *Feature: Halftone
  355. {
  356. *rcNameID: =HALFTONING_DISPLAY
  357. *DefaultOption: HT_PATSIZE_AUTO
  358. *Option: HT_PATSIZE_AUTO
  359. {
  360. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  361. }
  362. *Option: HT_PATSIZE_SUPERCELL_M
  363. {
  364. *rcNameID: =HT_SUPERCELL_DISPLAY
  365. }
  366. *Option: HT_PATSIZE_6x6_M
  367. {
  368. *rcNameID: =HT_DITHER6X6_DISPLAY
  369. }
  370. *Option: HT_PATSIZE_8x8_M
  371. {
  372. *rcNameID: =HT_DITHER8X8_DISPLAY
  373. }
  374. }
  375. *Command: CmdStartPage
  376. {
  377. *Order: PAGE_SETUP.1
  378. *Cmd: "<0D>"
  379. }
  380. *Command: CmdEndJob
  381. {
  382. *Order: JOB_FINISH.1
  383. *Cmd: "<10>B"
  384. }
  385. *RotateCoordinate?: FALSE
  386. *RotateRaster?: FALSE
  387. *RotateFont?: TRUE
  388. *switch: Orientation
  389. {
  390. *case: PORTRAIT
  391. {
  392. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE,TC_RA_ABLE)
  393. }
  394. *case: LANDSCAPE_CC270
  395. {
  396. *TextCaps: LIST(TC_RA_ABLE)
  397. }
  398. }
  399. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  400. *YMoveAttributes: LIST(SEND_CR_FIRST)
  401. *MaxLineSpacing: 255
  402. *XMoveThreshold: *
  403. *YMoveThreshold: *
  404. *XMoveUnit: 180
  405. *YMoveUnit: 120
  406. *Command: CmdXMoveRelRight { *Cmd : "<1B>%%3" %m[1,1908]{(DestXRel / 2)} }
  407. *Command: CmdYMoveRelDown { *Cmd : "<1B>%%5" %c[0,255]{max_repeat(DestYRel / 3)} }
  408. *Command: CmdSetLineSpacing { *Cmd : "<1B>%%9<00>" %c[0,255]{(LinefeedSpacing / 3)} }
  409. *Command: CmdCR { *Cmd : "<0D>" }
  410. *Command: CmdLF { *Cmd : "<0A>" }
  411. *Command: CmdFF { *Cmd : "<0C>" }
  412. *Command: CmdBackSpace { *Cmd : "<08>" }
  413. *Command: CmdUniDirectionOn { *Cmd : "<1B>%%U" }
  414. *Command: CmdUniDirectionOff { *Cmd : "<1B>%%B" }
  415. *EjectPageWithFF?: TRUE
  416. *OutputDataFormat: V_BYTE
  417. *OptimizeLeftBound?: FALSE
  418. *CursorXAfterSendBlockData: AT_GRXDATA_END
  419. *CursorYAfterSendBlockData: NO_MOVE
  420. *DefaultFont: 13
  421. *DefaultCTT: 0
  422. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  423. + 17,20,23,26,29,32,35,38,41,44,47,50,53,56,59)
  424. *Command: CmdBoldOn { *Cmd : "<1B>m" }
  425. *Command: CmdBoldOff { *Cmd : "<1B>n" }
  426. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  427. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }
  428. *Command: CmdVerticalPrintingOn { *Cmd : "<1C>J" }
  429. *Command: CmdVerticalPrintingOff { *Cmd : "<1C>K" }