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.

412 lines
12 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "GW5360C.GPD"
  7. *Include: "STDNAMES.GPD"
  8. *GPDFileVersion: "1.000"
  9. *CodePage: 1252
  10. *ModelName: "Great Wall 5360 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(2880, 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(2880, 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(2880, 4814)
  144. }
  145. *case: Option2
  146. {
  147. *% Warning: the following printable length is adjusted (4815->4814) so it is divisible by the resolution Y scale.
  148. *PrintableArea: PAIR(2880, 4814)
  149. }
  150. }
  151. }
  152. *Option: B5
  153. {
  154. *rcNameID: =B5_DISPLAY
  155. *PrintableArea: PAIR(2341, 3299)
  156. *PrintableOrigin: PAIR(120, 120)
  157. *switch: Resolution
  158. {
  159. *case: Option1
  160. {
  161. *% Warning: the following printable length is adjusted (3299->3298) so it is divisible by the resolution Y scale.
  162. *PrintableArea: PAIR(2341, 3298)
  163. }
  164. *case: Option2
  165. {
  166. *% Warning: the following printable width is adjusted (2341->2340) so it is divisible by the resolution X scale.
  167. *% Warning: the following printable length is adjusted (3299->3298) so it is divisible by the resolution Y scale.
  168. *PrintableArea: PAIR(2340, 3298)
  169. }
  170. }
  171. }
  172. *Option: Option8
  173. {
  174. *rcNameID: 258
  175. *PageDimensions: PAIR(2340, 1446)
  176. *PrintableArea: PAIR(2100, 1102)
  177. *PrintableOrigin: PAIR(120, 120)
  178. }
  179. *Option: Option9
  180. {
  181. *rcNameID: 259
  182. *PageDimensions: PAIR(2340, 1446)
  183. *PrintableArea: PAIR(2100, 1102)
  184. *PrintableOrigin: PAIR(120, 120)
  185. }
  186. *Option: Option10
  187. {
  188. *rcNameID: 260
  189. *PageDimensions: PAIR(2496, 1560)
  190. *PrintableArea: PAIR(2256, 1216)
  191. *PrintableOrigin: PAIR(120, 120)
  192. }
  193. *Option: Option11
  194. {
  195. *rcNameID: 261
  196. *PageDimensions: PAIR(2496, 1560)
  197. *PrintableArea: PAIR(2256, 1216)
  198. *PrintableOrigin: PAIR(120, 120)
  199. }
  200. *Option: Option12
  201. {
  202. *rcNameID: 262
  203. *PageDimensions: PAIR(2496, 1774)
  204. *PrintableArea: PAIR(2256, 1430)
  205. *PrintableOrigin: PAIR(120, 120)
  206. }
  207. *Option: Option13
  208. {
  209. *rcNameID: 263
  210. *PageDimensions: PAIR(2496, 1774)
  211. *PrintableArea: PAIR(2256, 1430)
  212. *PrintableOrigin: PAIR(120, 120)
  213. }
  214. *Option: Option14
  215. {
  216. *rcNameID: 264
  217. *PageDimensions: PAIR(2950, 1560)
  218. *PrintableArea: PAIR(2710, 1216)
  219. *PrintableOrigin: PAIR(120, 120)
  220. }
  221. *Option: Option15
  222. {
  223. *rcNameID: 265
  224. *PageDimensions: PAIR(2950, 1560)
  225. *PrintableArea: PAIR(2710, 1216)
  226. *PrintableOrigin: PAIR(120, 120)
  227. }
  228. *Option: Option16
  229. {
  230. *rcNameID: 266
  231. *PageDimensions: PAIR(3120, 1560)
  232. *PrintableArea: PAIR(2880, 1216)
  233. *PrintableOrigin: PAIR(120, 120)
  234. }
  235. *Option: Option17
  236. {
  237. *rcNameID: 267
  238. *PageDimensions: PAIR(3120, 1560)
  239. *PrintableArea: PAIR(2880, 1216)
  240. *PrintableOrigin: PAIR(120, 120)
  241. }
  242. *Option: Option18
  243. {
  244. *rcNameID: 268
  245. *PageDimensions: PAIR(3120, 1560)
  246. *PrintableArea: PAIR(2880, 1216)
  247. *PrintableOrigin: PAIR(120, 120)
  248. }
  249. *Option: Option19
  250. {
  251. *rcNameID: 269
  252. *PageDimensions: PAIR(3120, 1560)
  253. *PrintableArea: PAIR(2880, 1216)
  254. *PrintableOrigin: PAIR(120, 120)
  255. }
  256. *Option: Option20
  257. {
  258. *rcNameID: 270
  259. *PageDimensions: PAIR(2496, 1560)
  260. *PrintableArea: PAIR(2256, 1216)
  261. *PrintableOrigin: PAIR(120, 120)
  262. }
  263. *Option: Option21
  264. {
  265. *rcNameID: 271
  266. *PageDimensions: PAIR(2496, 1560)
  267. *PrintableArea: PAIR(2256, 1216)
  268. *PrintableOrigin: PAIR(120, 120)
  269. }
  270. *Option: Option22
  271. {
  272. *rcNameID: 272
  273. *PageDimensions: PAIR(3262, 2270)
  274. *PrintableArea: PAIR(2880, 1926)
  275. *PrintableOrigin: PAIR(120, 120)
  276. }
  277. *Option: Option23
  278. {
  279. *rcNameID: 273
  280. *PageDimensions: PAIR(3262, 2270)
  281. *PrintableArea: PAIR(2880, 1926)
  282. *PrintableOrigin: PAIR(120, 120)
  283. }
  284. *Option: Option24
  285. {
  286. *rcNameID: 274
  287. *PageDimensions: PAIR(4382, 1702)
  288. *PrintableArea: PAIR(2880, 1358)
  289. *PrintableOrigin: PAIR(120, 120)
  290. }
  291. *Option: Option25
  292. {
  293. *rcNameID: 275
  294. *PageDimensions: PAIR(4382, 1702)
  295. *PrintableArea: PAIR(2880, 1358)
  296. *PrintableOrigin: PAIR(120, 120)
  297. }
  298. *Option: Option26
  299. {
  300. *rcNameID: 276
  301. *PageDimensions: PAIR(4595, 3248)
  302. *PrintableArea: PAIR(2880, 2904)
  303. *PrintableOrigin: PAIR(120, 120)
  304. }
  305. *Option: Option27
  306. {
  307. *rcNameID: 277
  308. *PageDimensions: PAIR(4595, 3248)
  309. *PrintableArea: PAIR(2880, 2904)
  310. *PrintableOrigin: PAIR(120, 120)
  311. }
  312. *Option: CUSTOMSIZE
  313. {
  314. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  315. *MinSize: PAIR(180, 180)
  316. *MaxSize: PAIR(2880, 32767)
  317. *MaxPrintableWidth: 2880
  318. *MinLeftMargin: 0
  319. *CenterPrintable?: FALSE
  320. *TopMargin: 120
  321. *BottomMargin: 224
  322. }
  323. }
  324. *Feature: PrintQuality
  325. {
  326. *rcNameID: =TEXT_QUALITY_DISPLAY
  327. *DefaultOption: LETTER_QUALITY
  328. *Option: LETTER_QUALITY
  329. {
  330. *rcNameID: =LETTER_QUALITY_DISPLAY
  331. }
  332. *Option: DRAFT_QUALITY
  333. {
  334. *rcNameID: =DRAFT_QUALITY_DISPLAY
  335. }
  336. }
  337. *Feature: Halftone
  338. {
  339. *rcNameID: =HALFTONING_DISPLAY
  340. *DefaultOption: HT_PATSIZE_AUTO
  341. *Option: HT_PATSIZE_AUTO
  342. {
  343. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  344. }
  345. *Option: HT_PATSIZE_SUPERCELL_M
  346. {
  347. *rcNameID: =HT_SUPERCELL_DISPLAY
  348. }
  349. *Option: HT_PATSIZE_6x6_M
  350. {
  351. *rcNameID: =HT_DITHER6X6_DISPLAY
  352. }
  353. *Option: HT_PATSIZE_8x8_M
  354. {
  355. *rcNameID: =HT_DITHER8X8_DISPLAY
  356. }
  357. }
  358. *Command: CmdStartPage
  359. {
  360. *Order: PAGE_SETUP.1
  361. *Cmd: "<0D>"
  362. }
  363. *Command: CmdEndJob
  364. {
  365. *Order: JOB_FINISH.1
  366. *Cmd: "<10>B"
  367. }
  368. *RotateCoordinate?: FALSE
  369. *RotateRaster?: FALSE
  370. *RotateFont?: TRUE
  371. *switch: Orientation
  372. {
  373. *case: PORTRAIT
  374. {
  375. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE,TC_RA_ABLE)
  376. }
  377. *case: LANDSCAPE_CC270
  378. {
  379. *TextCaps: LIST(TC_RA_ABLE)
  380. }
  381. }
  382. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  383. *YMoveAttributes: LIST(SEND_CR_FIRST)
  384. *MaxLineSpacing: 255
  385. *XMoveThreshold: *
  386. *YMoveThreshold: *
  387. *XMoveUnit: 180
  388. *YMoveUnit: 120
  389. *Command: CmdXMoveRelRight { *Cmd : "<1B>%%3" %m[1,1908]{(DestXRel / 2)} }
  390. *Command: CmdYMoveRelDown { *Cmd : "<1B>%%5" %c[0,255]{max_repeat(DestYRel / 3)} }
  391. *Command: CmdSetLineSpacing { *Cmd : "<1B>%%9<00>" %c[0,255]{(LinefeedSpacing / 3)} }
  392. *Command: CmdCR { *Cmd : "<0D>" }
  393. *Command: CmdLF { *Cmd : "<0A>" }
  394. *Command: CmdFF { *Cmd : "<0C>" }
  395. *Command: CmdBackSpace { *Cmd : "<08>" }
  396. *Command: CmdUniDirectionOn { *Cmd : "<1B>%%U" }
  397. *Command: CmdUniDirectionOff { *Cmd : "<1B>%%B" }
  398. *EjectPageWithFF?: TRUE
  399. *OutputDataFormat: V_BYTE
  400. *OptimizeLeftBound?: FALSE
  401. *CursorXAfterSendBlockData: AT_GRXDATA_END
  402. *CursorYAfterSendBlockData: NO_MOVE
  403. *DefaultFont: 13
  404. *DefaultCTT: 0
  405. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  406. + 17,20,23,26,29,32,35,38,41,44,47,50,53,56,59)
  407. *Command: CmdBoldOn { *Cmd : "<1B>m" }
  408. *Command: CmdBoldOff { *Cmd : "<1B>n" }
  409. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  410. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }
  411. *Command: CmdVerticalPrintingOn { *Cmd : "<1C>J" }
  412. *Command: CmdVerticalPrintingOff { *Cmd : "<1C>K" }