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.

454 lines
14 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "NCJ11RCJ.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "NEC PC-PR101/J110R (Color)"
  11. *MasterUnits: PAIR(300, 300)
  12. *ResourceDLL: "hpdjjres.dll"
  13. *PrinterType: SERIAL
  14. *OutputOrderReversed?: TRUE
  15. *Feature: Orientation
  16. {
  17. *rcNameID: =ORIENTATION_DISPLAY
  18. *DefaultOption: PORTRAIT
  19. *Option: PORTRAIT
  20. {
  21. *rcNameID: =PORTRAIT_DISPLAY
  22. }
  23. *Option: LANDSCAPE_CC270
  24. {
  25. *rcNameID: =LANDSCAPE_DISPLAY
  26. }
  27. }
  28. *Feature: InputBin
  29. {
  30. *rcNameID: =PAPER_SOURCE_DISPLAY
  31. *DefaultOption: AUTO
  32. *Option: AUTO
  33. {
  34. *rcNameID: =AUTO_DISPLAY
  35. }
  36. *Option: MANUAL
  37. {
  38. *rcNameID: =MANUAL_FEED_DISPLAY
  39. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  40. }
  41. }
  42. *Feature: Resolution
  43. {
  44. *rcNameID: =RESOLUTION_DISPLAY
  45. *DefaultOption: Option1
  46. *Option: Option1
  47. {
  48. *Name: "300 x 300 dots per inch"
  49. *DPI: PAIR(300, 300)
  50. *TextDPI: PAIR(300, 300)
  51. *MinStripBlankPixels: 8
  52. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  53. *SpotDiameter: 100
  54. *Command: CmdBeginRaster { *Cmd : "<1B>_A<01>" }
  55. *Command: CmdEndRaster { *Cmd : "<1B>_C" }
  56. *Command: CmdSendBlockData { *Cmd : "<1B>_W" %l{NumOfDataBytes} }
  57. *Command: CmdSelect
  58. {
  59. *Order: PAGE_SETUP.7
  60. *Cmd: "<1B>_R,<011B>_P<040D>"
  61. }
  62. }
  63. *Option: Option2
  64. {
  65. *Name: "150 x 150 dots per inch"
  66. *DPI: PAIR(150, 150)
  67. *TextDPI: PAIR(300, 300)
  68. *MinStripBlankPixels: 8
  69. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  70. *SpotDiameter: 100
  71. *Command: CmdBeginRaster { *Cmd : "<1B>_A<01>" }
  72. *Command: CmdEndRaster { *Cmd : "<1B>_C" }
  73. *Command: CmdSendBlockData { *Cmd : "<1B>_W" %l{NumOfDataBytes} }
  74. *Command: CmdSelect
  75. {
  76. *Order: PAGE_SETUP.7
  77. *Cmd: "<1B>_R<96001B>_P<040D>"
  78. }
  79. }
  80. *Option: Option3
  81. {
  82. *Name: "75 x 75 dots per inch"
  83. *DPI: PAIR(75, 75)
  84. *TextDPI: PAIR(300, 300)
  85. *MinStripBlankPixels: 8
  86. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  87. *SpotDiameter: 100
  88. *Command: CmdBeginRaster { *Cmd : "<1B>_A<01>" }
  89. *Command: CmdEndRaster { *Cmd : "<1B>_C" }
  90. *Command: CmdSendBlockData { *Cmd : "<1B>_W" %l{NumOfDataBytes} }
  91. *Command: CmdSelect
  92. {
  93. *Order: PAGE_SETUP.7
  94. *Cmd: "<1B>_RK<001B>_P<040D>"
  95. }
  96. }
  97. }
  98. *Feature: PaperSize
  99. {
  100. *rcNameID: =PAPER_SIZE_DISPLAY
  101. *DefaultOption: A4
  102. *Option: A4
  103. {
  104. *rcNameID: =A4_DISPLAY
  105. *PrintableArea: PAIR(2400, 3220)
  106. *PrintableOrigin: PAIR(38, 113)
  107. *switch: Resolution
  108. {
  109. *case: Option2
  110. {
  111. *% Warning: the following printable length is adjusted (3220->3218) so it is divisible by the resolution Y scale.
  112. *PrintableArea: PAIR(2400, 3218)
  113. *% Warning: the following printable origin Y is adjusted (113->114) so it is divisible by the resolution Y scale.
  114. *PrintableOrigin: PAIR(38, 114)
  115. }
  116. *case: Option3
  117. {
  118. *% Warning: the following printable width is adjusted (2400->2396) so it is divisible by the resolution X scale.
  119. *% Warning: the following printable length is adjusted (3220->3216) so it is divisible by the resolution Y scale.
  120. *PrintableArea: PAIR(2396, 3216)
  121. *% Warning: the following printable origin X is adjusted (38->40) so it is divisible by the resolution X scale.
  122. *% Warning: the following printable origin Y is adjusted (113->116) so it is divisible by the resolution Y scale.
  123. *PrintableOrigin: PAIR(40, 116)
  124. }
  125. }
  126. *Command: CmdSelect
  127. {
  128. *Order: PAGE_SETUP.3
  129. *Cmd: "<1B>_l<1A1B>_N<00>"
  130. }
  131. }
  132. *Option: B5
  133. {
  134. *rcNameID: =B5_DISPLAY
  135. *PrintableArea: PAIR(2071, 2749)
  136. *PrintableOrigin: PAIR(38, 113)
  137. *switch: Resolution
  138. {
  139. *case: Option2
  140. {
  141. *% Warning: the following printable width is adjusted (2071->2070) so it is divisible by the resolution X scale.
  142. *% Warning: the following printable length is adjusted (2749->2748) so it is divisible by the resolution Y scale.
  143. *PrintableArea: PAIR(2070, 2748)
  144. *% Warning: the following printable origin Y is adjusted (113->114) so it is divisible by the resolution Y scale.
  145. *PrintableOrigin: PAIR(38, 114)
  146. }
  147. *case: Option3
  148. {
  149. *% Warning: the following printable width is adjusted (2071->2068) so it is divisible by the resolution X scale.
  150. *% Warning: the following printable length is adjusted (2749->2744) so it is divisible by the resolution Y scale.
  151. *PrintableArea: PAIR(2068, 2744)
  152. *% Warning: the following printable origin X is adjusted (38->40) so it is divisible by the resolution X scale.
  153. *% Warning: the following printable origin Y is adjusted (113->116) so it is divisible by the resolution Y scale.
  154. *PrintableOrigin: PAIR(40, 116)
  155. }
  156. }
  157. *Command: CmdSelect
  158. {
  159. *Order: PAGE_SETUP.3
  160. *Cmd: "<1B>_l-<1B>_N<00>"
  161. }
  162. }
  163. *Option: LETTER
  164. {
  165. *rcNameID: =LETTER_DISPLAY
  166. *PrintableArea: PAIR(2391, 3013)
  167. *PrintableOrigin: PAIR(76, 113)
  168. *switch: Resolution
  169. {
  170. *case: Option2
  171. {
  172. *% Warning: the following printable width is adjusted (2391->2390) so it is divisible by the resolution X scale.
  173. *% Warning: the following printable length is adjusted (3013->3012) so it is divisible by the resolution Y scale.
  174. *PrintableArea: PAIR(2390, 3012)
  175. *% Warning: the following printable origin Y is adjusted (113->114) so it is divisible by the resolution Y scale.
  176. *PrintableOrigin: PAIR(76, 114)
  177. }
  178. *case: Option3
  179. {
  180. *% Warning: the following printable width is adjusted (2391->2388) so it is divisible by the resolution X scale.
  181. *% Warning: the following printable length is adjusted (3013->3008) so it is divisible by the resolution Y scale.
  182. *PrintableArea: PAIR(2388, 3008)
  183. *% Warning: the following printable origin Y is adjusted (113->116) so it is divisible by the resolution Y scale.
  184. *PrintableOrigin: PAIR(76, 116)
  185. }
  186. }
  187. *Command: CmdSelect
  188. {
  189. *Order: PAGE_SETUP.3
  190. *Cmd: "<1B>_l<021B>_N<00>"
  191. }
  192. }
  193. *Option: LEGAL
  194. {
  195. *rcNameID: =LEGAL_DISPLAY
  196. *PrintableArea: PAIR(2388, 3913)
  197. *PrintableOrigin: PAIR(76, 113)
  198. *switch: Resolution
  199. {
  200. *case: Option2
  201. {
  202. *% Warning: the following printable length is adjusted (3913->3912) so it is divisible by the resolution Y scale.
  203. *PrintableArea: PAIR(2388, 3912)
  204. *% Warning: the following printable origin Y is adjusted (113->114) so it is divisible by the resolution Y scale.
  205. *PrintableOrigin: PAIR(76, 114)
  206. }
  207. *case: Option3
  208. {
  209. *% Warning: the following printable length is adjusted (3913->3908) so it is divisible by the resolution Y scale.
  210. *PrintableArea: PAIR(2388, 3908)
  211. *% Warning: the following printable origin Y is adjusted (113->116) so it is divisible by the resolution Y scale.
  212. *PrintableOrigin: PAIR(76, 116)
  213. }
  214. }
  215. *Command: CmdSelect
  216. {
  217. *Order: PAGE_SETUP.3
  218. *Cmd: "<1B>_l<031B>_N<00>"
  219. }
  220. }
  221. *Option: JAPANESE_POSTCARD
  222. {
  223. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  224. *PrintableArea: PAIR(1084, 1462)
  225. *PrintableOrigin: PAIR(38, 113)
  226. *switch: Resolution
  227. {
  228. *case: Option2
  229. {
  230. *% Warning: the following printable length is adjusted (1462->1460) so it is divisible by the resolution Y scale.
  231. *PrintableArea: PAIR(1084, 1460)
  232. *% Warning: the following printable origin Y is adjusted (113->114) so it is divisible by the resolution Y scale.
  233. *PrintableOrigin: PAIR(38, 114)
  234. }
  235. *case: Option3
  236. {
  237. *% Warning: the following printable width is adjusted (1084->1080) so it is divisible by the resolution X scale.
  238. *% Warning: the following printable length is adjusted (1462->1456) so it is divisible by the resolution Y scale.
  239. *PrintableArea: PAIR(1080, 1456)
  240. *% Warning: the following printable origin X is adjusted (38->40) so it is divisible by the resolution X scale.
  241. *% Warning: the following printable origin Y is adjusted (113->116) so it is divisible by the resolution Y scale.
  242. *PrintableOrigin: PAIR(40, 116)
  243. }
  244. }
  245. *Command: CmdSelect
  246. {
  247. *Order: PAGE_SETUP.3
  248. *Cmd: "<1B>_l_<1B>_N<00>"
  249. }
  250. }
  251. *Option: JAPANESE_POSTCARD_ROTATED
  252. {
  253. *rcNameID: =JAPANESE_POSTCARD_ROTATED_DISPLAY
  254. *PrintableArea: PAIR(1626, 895)
  255. *PrintableOrigin: PAIR(38, 113)
  256. *switch: Resolution
  257. {
  258. *case: Option2
  259. {
  260. *% Warning: the following printable length is adjusted (895->894) so it is divisible by the resolution Y scale.
  261. *PrintableArea: PAIR(1626, 894)
  262. *% Warning: the following printable origin Y is adjusted (113->114) so it is divisible by the resolution Y scale.
  263. *PrintableOrigin: PAIR(38, 114)
  264. }
  265. *case: Option3
  266. {
  267. *% Warning: the following printable width is adjusted (1626->1624) so it is divisible by the resolution X scale.
  268. *% Warning: the following printable length is adjusted (895->892) so it is divisible by the resolution Y scale.
  269. *PrintableArea: PAIR(1624, 892)
  270. *% Warning: the following printable origin X is adjusted (38->40) so it is divisible by the resolution X scale.
  271. *% Warning: the following printable origin Y is adjusted (113->116) so it is divisible by the resolution Y scale.
  272. *PrintableOrigin: PAIR(40, 116)
  273. }
  274. }
  275. *Command: CmdSelect
  276. {
  277. *Order: PAGE_SETUP.3
  278. *Cmd: "<1B>_l`<1B>_N<00>"
  279. }
  280. }
  281. }
  282. *Feature: MediaType
  283. {
  284. *rcNameID: =MEDIA_TYPE_DISPLAY
  285. *DefaultOption: Option2
  286. *Option: Option1
  287. {
  288. *rcNameID: 260
  289. *Command: CmdSelect
  290. {
  291. *Order: PAGE_SETUP.8
  292. *Cmd: "<1B>_D<021B>_E<021B>_Q<02>"
  293. }
  294. }
  295. *Option: Option2
  296. {
  297. *rcNameID: 261
  298. *Command: CmdSelect
  299. {
  300. *Order: PAGE_SETUP.8
  301. *Cmd: "<1B>_D<021B>_E<011B>_Q<02>"
  302. }
  303. }
  304. *Option: Option3
  305. {
  306. *rcNameID: 262
  307. *Command: CmdSelect
  308. {
  309. *Order: PAGE_SETUP.8
  310. *Cmd: "<1B>_D<011B>_E<001B>_Q<01>"
  311. }
  312. }
  313. *Option: Option4
  314. {
  315. *rcNameID: 301
  316. *Command: CmdSelect
  317. {
  318. *Order: PAGE_SETUP.8
  319. *Cmd: "<1B>_D<011B>_E<021B>_Q<02>"
  320. }
  321. }
  322. *Option: Option5
  323. {
  324. *rcNameID: 263
  325. *Command: CmdSelect
  326. {
  327. *Order: PAGE_SETUP.8
  328. *Cmd: "<1B>_D<011B>_E<021B>_Q<02>"
  329. }
  330. }
  331. *Option: Option6
  332. {
  333. *rcNameID: 264
  334. *Command: CmdSelect
  335. {
  336. *Order: PAGE_SETUP.8
  337. *Cmd: "<1B>_D<011B>_E<011B>_Q<02>"
  338. }
  339. }
  340. }
  341. *Feature: ColorMode
  342. {
  343. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  344. *DefaultOption: Color
  345. *Option: Mono
  346. {
  347. *rcNameID: =MONO_DISPLAY
  348. *DevNumOfPlanes: 1
  349. *DevBPP: 1
  350. *Color? : FALSE
  351. }
  352. *Option: Color
  353. {
  354. *rcNameID: =COLOR_DISPLAY
  355. *DevNumOfPlanes: 3
  356. *DevBPP: 1
  357. *DrvBPP: 4
  358. EXTERN_GLOBAL: *RasterSendAllData? : TRUE
  359. *ColorPlaneOrder: LIST(CYAN, MAGENTA, YELLOW)
  360. *Command: CmdSendCyanData { *Cmd : "<1B>_V" %l{NumOfDataBytes} }
  361. *Command: CmdSendMagentaData { *Cmd : "<1B>_V" %l{NumOfDataBytes} }
  362. *Command: CmdSendYellowData { *Cmd : "<1B>_W" %l{NumOfDataBytes } }
  363. *Command: CmdSelect
  364. {
  365. *Order: PAGE_SETUP.9
  366. *Cmd: "<1B>_U<FDFF>"
  367. }
  368. }
  369. }
  370. *Feature: Halftone
  371. {
  372. *rcNameID: =HALFTONING_DISPLAY
  373. *DefaultOption: HT_PATSIZE_AUTO
  374. *Option: HT_PATSIZE_AUTO
  375. {
  376. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  377. }
  378. *Option: HT_PATSIZE_SUPERCELL_M
  379. {
  380. *rcNameID: =HT_SUPERCELL_DISPLAY
  381. }
  382. *Option: HT_PATSIZE_6x6_M
  383. {
  384. *rcNameID: =HT_DITHER6X6_DISPLAY
  385. }
  386. *Option: HT_PATSIZE_8x8_M
  387. {
  388. *rcNameID: =HT_DITHER8X8_DISPLAY
  389. }
  390. }
  391. *Command: CmdStartDoc
  392. {
  393. *Order: DOC_SETUP.1
  394. *Cmd: "<0C>"
  395. }
  396. *Command: CmdStartPage
  397. {
  398. *Order: PAGE_SETUP.1
  399. *Cmd: "<1B>@<0C>"
  400. }
  401. *Command: CmdEndJob
  402. {
  403. *Order: JOB_FINISH.1
  404. *Cmd: "<1B>@"
  405. }
  406. *Command: CmdEndPage
  407. {
  408. *Order: PAGE_FINISH.1
  409. *Cmd: "<0D>"
  410. }
  411. *RotateCoordinate?: FALSE
  412. *RotateRaster?: FALSE
  413. *RotateFont?: FALSE
  414. *TextCaps: LIST(TC_OP_CHARACTER,TC_OP_STROKE)
  415. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  416. *XMoveThreshold: 0
  417. *YMoveThreshold: *
  418. *XMoveUnit: 300
  419. *AbsXMovesRightOnly?: TRUE
  420. *% YMoveUnit: 300
  421. *Command: CmdXMoveAbsolute { *Cmd : "<1B>_$" %l{DestX} }
  422. *Command: CmdXMoveRelRight { *Cmd : "<1B>_\" %l{DestXRel} }
  423. *% Error: the above *YMoveUnit value is wrong. It should be dependent on the resolution. Correct it manually.
  424. *switch: Resolution
  425. {
  426. *case: Option1
  427. {
  428. *YMoveUnit: 300
  429. *Command: CmdYMoveRelDown { *Cmd : "<1B>_Y" %l{DestYRel} }
  430. }
  431. *case: Option2
  432. {
  433. *YMoveUnit: 150
  434. *Command: CmdYMoveRelDown { *Cmd : "<1B>_Y" %l{DestYRel / 2} }
  435. }
  436. *case: Option3
  437. {
  438. *YMoveUnit: 75
  439. *Command: CmdYMoveRelDown { *Cmd : "<1B>_Y" %l{DestYRel / 4} }
  440. }
  441. }
  442. *Command: CmdCR { *Cmd : "<0D>" }
  443. *Command: CmdLF { *Cmd : "<0A>" }
  444. *Command: CmdFF { *Cmd : "<0C>" }
  445. *EjectPageWithFF?: TRUE
  446. *Command: CmdEnableTIFF4 { *Cmd : "<1B>_M<02>" }
  447. *Command: CmdDisableCompression { *Cmd : "<1B>_M<00>" }
  448. *OutputDataFormat: H_BYTE
  449. *OptimizeLeftBound?: FALSE
  450. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  451. *CursorYAfterSendBlockData: AUTO_INCREMENT
  452. *LookAheadRegion: 120
  453. *DefaultCTT: 0
  454. *CharPosition: BASELINE