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.

285 lines
8.7 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "NCT3C10J.GPD"
  7. *Include: "STDNAMES.GPD"
  8. *GPDFileVersion: "1.000"
  9. *CodePage: 1252
  10. *ModelName: "NEC PC-PR201/TC100"
  11. *MasterUnits: PAIR(960, 960)
  12. *ResourceDLL: "NCT3JRES.DLL"
  13. *PrinterType: SERIAL
  14. *Feature: Orientation
  15. {
  16. *rcNameID: =ORIENTATION_DISPLAY
  17. *DefaultOption: PORTRAIT
  18. *Option: PORTRAIT
  19. {
  20. *rcNameID: =PORTRAIT_DISPLAY
  21. *Command: CmdSelect
  22. {
  23. *Order: PAGE_SETUP.5
  24. *Cmd: "<1C>fP"
  25. }
  26. }
  27. *Option: LANDSCAPE_CC270
  28. {
  29. *rcNameID: =LANDSCAPE_DISPLAY
  30. *Command: CmdSelect
  31. {
  32. *Order: PAGE_SETUP.5
  33. *Cmd: "<1C>fL"
  34. }
  35. }
  36. }
  37. *Feature: InputBin
  38. {
  39. *rcNameID: =PAPER_SOURCE_DISPLAY
  40. *DefaultOption: Option1
  41. *Option: Option1
  42. {
  43. *rcNameID: 262
  44. }
  45. }
  46. *Feature: Resolution
  47. {
  48. *rcNameID: =RESOLUTION_DISPLAY
  49. *DefaultOption: Option1
  50. *Option: Option1
  51. {
  52. *Name: "320 x 320 dots per inch"
  53. *DPI: PAIR(320, 320)
  54. *TextDPI: PAIR(320, 320)
  55. *PinsPerLogPass: 48
  56. *PinsPerPhysPass: 48
  57. *MinStripBlankPixels: 270
  58. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  59. *% Error: this resolution has RES_BO_OEMGRXFILTER set in GPC. You must port over the custom code.
  60. *SpotDiameter: 120
  61. *Command: CmdSendBlockData { *Cmd : "<1C>bP,48," %4d{(NumOfDataBytes / 6) }"." }
  62. *Command: CmdSelect
  63. {
  64. *Order: DOC_SETUP.1
  65. *Cmd: "<1C>d320.<1B>H"
  66. }
  67. }
  68. *Option: Option2
  69. {
  70. *Name: "160 x 160 dots per inch"
  71. *DPI: PAIR(160, 160)
  72. *TextDPI: PAIR(160, 160)
  73. *PinsPerLogPass: 24
  74. *PinsPerPhysPass: 24
  75. *MinStripBlankPixels: 270
  76. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  77. *% Error: this resolution has RES_BO_OEMGRXFILTER set in GPC. You must port over the custom code.
  78. *SpotDiameter: 120
  79. *Command: CmdSendBlockData { *Cmd : "<1B>J" %4d{NumOfDataBytes / 3} }
  80. *Command: CmdSelect
  81. {
  82. *Order: DOC_SETUP.1
  83. *Cmd: "<1C>d320."
  84. }
  85. }
  86. }
  87. *Feature: PaperSize
  88. {
  89. *rcNameID: =PAPER_SIZE_DISPLAY
  90. *DefaultOption: A4
  91. *Option: A4
  92. {
  93. *rcNameID: =A4_DISPLAY
  94. *PrintableArea: PAIR(7633, 10511)
  95. *PrintableOrigin: PAIR(177, 480)
  96. *switch: Resolution
  97. {
  98. *case: Option1
  99. {
  100. *% Warning: the following printable width is adjusted (7633->7632) so it is divisible by the resolution X scale.
  101. *% Warning: the following printable length is adjusted (10511->10509) so it is divisible by the resolution Y scale.
  102. *PrintableArea: PAIR(7632, 10509)
  103. }
  104. *case: Option2
  105. {
  106. *% Warning: the following printable width is adjusted (7633->7626) so it is divisible by the resolution X scale.
  107. *% Warning: the following printable length is adjusted (10511->10506) so it is divisible by the resolution Y scale.
  108. *PrintableArea: PAIR(7626, 10506)
  109. *% Warning: the following printable origin X is adjusted (177->180) so it is divisible by the resolution X scale.
  110. *PrintableOrigin: PAIR(180, 480)
  111. }
  112. }
  113. *Command: CmdSelect
  114. {
  115. *Order: PAGE_SETUP.6
  116. *Cmd: "A4."
  117. }
  118. }
  119. *Option: B4
  120. {
  121. *rcNameID: =B4_DISPLAY
  122. *PrintableArea: PAIR(9391, 13037)
  123. *PrintableOrigin: PAIR(162, 480)
  124. *switch: Resolution
  125. {
  126. *case: Option1
  127. {
  128. *% Warning: the following printable width is adjusted (9391->9390) so it is divisible by the resolution X scale.
  129. *% Warning: the following printable length is adjusted (13037->13035) so it is divisible by the resolution Y scale.
  130. *PrintableArea: PAIR(9390, 13035)
  131. }
  132. *case: Option2
  133. {
  134. *% Warning: the following printable width is adjusted (9391->9390) so it is divisible by the resolution X scale.
  135. *% Warning: the following printable length is adjusted (13037->13032) so it is divisible by the resolution Y scale.
  136. *PrintableArea: PAIR(9390, 13032)
  137. }
  138. }
  139. *Command: CmdSelect
  140. {
  141. *Order: PAGE_SETUP.6
  142. *Cmd: "B4."
  143. }
  144. }
  145. *Option: JAPANESE_POSTCARD
  146. {
  147. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  148. *PrintableArea: PAIR(3026, 5030)
  149. *PrintableOrigin: PAIR(624, 480)
  150. *switch: Resolution
  151. {
  152. *case: Option1
  153. {
  154. *% Warning: the following printable width is adjusted (3026->3024) so it is divisible by the resolution X scale.
  155. *% Warning: the following printable length is adjusted (5030->5028) so it is divisible by the resolution Y scale.
  156. *PrintableArea: PAIR(3024, 5028)
  157. }
  158. *case: Option2
  159. {
  160. *% Warning: the following printable width is adjusted (3026->3024) so it is divisible by the resolution X scale.
  161. *% Warning: the following printable length is adjusted (5030->5028) so it is divisible by the resolution Y scale.
  162. *PrintableArea: PAIR(3024, 5028)
  163. }
  164. }
  165. *Command: CmdSelect
  166. {
  167. *Order: PAGE_SETUP.6
  168. *Cmd: "A6."
  169. }
  170. }
  171. }
  172. *Feature: ColorMode
  173. {
  174. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  175. *DefaultOption: Color
  176. *Option: Mono
  177. {
  178. *rcNameID: =MONO_DISPLAY
  179. *DevNumOfPlanes: 1
  180. *DevBPP: 1
  181. *Color? : FALSE
  182. }
  183. *Option: Color
  184. {
  185. *rcNameID: =COLOR_DISPLAY
  186. *DevNumOfPlanes: 4
  187. *DevBPP: 1
  188. *DrvBPP: 4
  189. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  190. *Command: CmdSendBlackData { *Cmd : "<1B>C0" }
  191. *Command: CmdSendCyanData { *Cmd : "<1B>C5" }
  192. *Command: CmdSendMagentaData { *Cmd : "<1B>C3" }
  193. *Command: CmdSendYellowData { *Cmd : "<1B>C6" }
  194. *Command: CmdSelectBlackColor { *Cmd : "<1B>C0" }
  195. *Command: CmdSelectRedColor { *Cmd : "<1B>C2" }
  196. *Command: CmdSelectGreenColor { *Cmd : "<1B>C4" }
  197. *Command: CmdSelectYellowColor { *Cmd : "<1B>C6" }
  198. *Command: CmdSelectBlueColor { *Cmd : "<1B>C1" }
  199. *Command: CmdSelectMagentaColor { *Cmd : "<1B>C3" }
  200. *Command: CmdSelectCyanColor { *Cmd : "<1B>C5" }
  201. }
  202. }
  203. *Feature: Halftone
  204. {
  205. *rcNameID: =HALFTONING_DISPLAY
  206. *DefaultOption: HT_PATSIZE_AUTO
  207. *Option: HT_PATSIZE_AUTO
  208. {
  209. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  210. }
  211. *Option: HT_PATSIZE_SUPERCELL_M
  212. {
  213. *rcNameID: =HT_SUPERCELL_DISPLAY
  214. }
  215. *Option: HT_PATSIZE_6x6_M
  216. {
  217. *rcNameID: =HT_DITHER6X6_DISPLAY
  218. }
  219. *Option: HT_PATSIZE_8x8_M
  220. {
  221. *rcNameID: =HT_DITHER8X8_DISPLAY
  222. }
  223. }
  224. *Command: CmdStartPage
  225. {
  226. *Order: PAGE_SETUP.1
  227. *Cmd: "<0D>"
  228. }
  229. *Command: CmdEndJob
  230. {
  231. *Order: JOB_FINISH.1
  232. *Cmd: "<1B>c1"
  233. }
  234. *Command: CmdEndPage
  235. {
  236. *Order: PAGE_FINISH.1
  237. *Cmd: "<0D1B>b"
  238. }
  239. *RotateCoordinate?: FALSE
  240. *RotateRaster?: TRUE
  241. *RotateFont?: TRUE
  242. *switch: Orientation
  243. {
  244. *case: PORTRAIT
  245. {
  246. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  247. }
  248. *case: LANDSCAPE_CC270
  249. {
  250. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE)
  251. }
  252. }
  253. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  254. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  255. *MaxLineSpacing: 792
  256. *XMoveThreshold: 0
  257. *XMoveUnit: 320
  258. *AbsXMovesRightOnly?: TRUE
  259. *Command: CmdXMoveAbsolute { *Cmd : "<1B>F" %4d[0,4480]{max_repeat(DestX / 3)} }
  260. *LineSpacingMoveUnit: 120
  261. *Command: CmdSetLineSpacing { *Cmd : "<1B>T" %2d[0,99]{(LinefeedSpacing / 8) } }
  262. *Command: CmdCR { *Cmd : "<0D>" }
  263. *Command: CmdLF { *Cmd : "<0A>" }
  264. *Command: CmdFF { *Cmd : "<0D0C>" }
  265. *Command: CmdBackSpace { *Cmd : "<08>" }
  266. *EjectPageWithFF?: FALSE
  267. *OutputDataFormat: V_BYTE
  268. *OptimizeLeftBound?: FALSE
  269. *CursorXAfterSendBlockData: AT_GRXDATA_END
  270. *CursorYAfterSendBlockData: NO_MOVE
  271. *DefaultFont: 3
  272. *DefaultCTT: 1
  273. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  274. + 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,
  275. + 33,34,35,36,37,38)
  276. *Command: CmdBoldOn { *Cmd : "<1B>!" }
  277. *Command: CmdBoldOff { *Cmd : "<1B>%"" }
  278. *Command: CmdItalicOn { *Cmd : "<1B>i1" }
  279. *Command: CmdItalicOff { *Cmd : "<1B>i0" }
  280. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  281. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }
  282. *MirrorRasterByte?: TRUE
  283. *MoveToX0BeforeSetColor?: TRUE
  284. *UseExpColorSelectCmd?: TRUE
  285. *ReselectFont: LIST(AFTER_GRXDATA, AFTER_XMOVE, AFTER_FF)