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.

457 lines
11 KiB

  1. *GPDSpecVersion: "1.0"
  2. *CodePage: 1252
  3. *ModelName: "NEC PC-PR100/40"
  4. *MasterUnits: PAIR(480, 480)
  5. *ResourceDLL: "nc11jres.dll"
  6. *PrinterType: SERIAL
  7. *FontCartSlots: 1
  8. *PrintRateUnit: CPS
  9. *PrintRate: 60
  10. *GPDFileName: "NC1140J.GPD"
  11. *Include: "STDNAMES.GPD"
  12. *GPDFileVersion: "1.000"
  13. *HelpFile: "nc11jres.hlp"
  14. *% *Macros: HelpIDs
  15. *% {
  16. *% PAPER SETTING */
  17. *% POP_11_PAPSET2 :1151
  18. *% PRINT QUALITIES */
  19. *% POP_11_PQUALITIESNEW :1167
  20. *% }
  21. *%======== Orientation ========
  22. *Feature: Orientation
  23. {
  24. *rcNameID: =ORIENTATION_DISPLAY
  25. *DefaultOption: PORTRAIT
  26. *Option: PORTRAIT
  27. {
  28. *rcNameID: =PORTRAIT_DISPLAY
  29. }
  30. *Option: LANDSCAPE_CC270
  31. {
  32. *rcNameID: =LANDSCAPE_DISPLAY
  33. }
  34. }
  35. *%======== InputBin ========
  36. *Feature: InputBin
  37. {
  38. *rcNameID: =PAPER_SOURCE_DISPLAY
  39. *DefaultOption: SheetGuide
  40. *Option: SheetGuide
  41. {
  42. *rcNameID: 260
  43. }
  44. *Option: SheetFeeder
  45. {
  46. *rcNameID: 263
  47. *Constraints: PaperSize.B4
  48. *Constraints: PaperSize.B5
  49. *Constraints: PaperSize.B5_JIS_ROTATED
  50. *Constraints: PaperSize.JAPANESE_POSTCARD
  51. *Constraints: PaperSize.JAPANESE_POSTCARD_ROTATED
  52. *Constraints: PaperSize.CUSTOMSIZE
  53. }
  54. }
  55. *%======== Resolution ========
  56. *Feature: Resolution
  57. {
  58. *rcNameID: =RESOLUTION_DISPLAY
  59. *DefaultOption: Option1
  60. *Option: Option1
  61. {
  62. *Name: "160 x 160 dots per inch"
  63. *DPI: PAIR(160, 160)
  64. *TextDPI: PAIR(160, 160)
  65. *PinsPerLogPass: 24
  66. *PinsPerPhysPass: 24
  67. *MinStripBlankPixels: 120
  68. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  69. *SpotDiameter: 120
  70. *Command: CmdSendBlockData { *Cmd : "<1B>H<1B>e11<1B>J" %4d{NumOfDataBytes / 3} }
  71. }
  72. }
  73. *%======== PaperSize ========
  74. *Feature: PaperSize
  75. {
  76. *rcNameID: =PAPER_SIZE_DISPLAY
  77. *DefaultOption: A4
  78. *Option: A4
  79. {
  80. *rcNameID: =A4_DISPLAY
  81. *PrintableArea: PAIR(3537, 5304)
  82. *PrintableOrigin: PAIR(216, 117)
  83. *switch: KyuusiIti
  84. {
  85. *case: Center
  86. {
  87. *Command: CmdSelect
  88. {
  89. *Order: DOC_SETUP.4
  90. *Cmd: "<1B>H<1B>L003" %v{(PhysPaperLength / 80) + 15}
  91. }
  92. }
  93. *case: Left
  94. {
  95. *Command: CmdSelect
  96. {
  97. *Order: DOC_SETUP.4
  98. *Cmd: "<1B>H<1B>L000" %v{(PhysPaperLength / 80) + 15}
  99. }
  100. }
  101. }
  102. }
  103. *Option: B4
  104. {
  105. *rcNameID: =B4_DISPLAY
  106. *PrintableArea: PAIR(3840, 6570)
  107. *PrintableOrigin: PAIR(507, 117)
  108. *Command: CmdSelect
  109. {
  110. *Order: DOC_SETUP.4
  111. *Cmd: "<1B>H<1B>L000" %v{(PhysPaperLength / 80) + 15}
  112. }
  113. }
  114. *Option: B5
  115. {
  116. *rcNameID: =B5_DISPLAY
  117. *PrintableArea: PAIR(3009, 4551)
  118. *PrintableOrigin: PAIR(216, 117)
  119. *switch: KyuusiIti
  120. {
  121. *case: Center
  122. {
  123. *Command: CmdSelect
  124. {
  125. *Order: DOC_SETUP.4
  126. *Cmd: "<1B>H<1B>L008" %v{(PhysPaperLength / 80) + 15}
  127. }
  128. }
  129. *case: Left
  130. {
  131. *Command: CmdSelect
  132. {
  133. *Order: DOC_SETUP.4
  134. *Cmd: "<1B>H<1B>L000" %v{(PhysPaperLength / 80) + 15}
  135. }
  136. }
  137. }
  138. }
  139. *Option: B5_JIS_ROTATED
  140. {
  141. *rcNameID: =B5_JIS_ROTATED_DISPLAY
  142. *PrintableArea: PAIR(3840, 3135)
  143. *PrintableOrigin: PAIR(507, 117)
  144. *Command: CmdSelect
  145. {
  146. *Order: DOC_SETUP.4
  147. *Cmd: "<1B>H<1B>L000" %v{(PhysPaperLength / 80) + 15}
  148. }
  149. }
  150. *Option: JAPANESE_POSTCARD
  151. {
  152. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  153. *PrintableArea: PAIR(1479, 2304)
  154. *PrintableOrigin: PAIR(216, 183)
  155. *Command: CmdSelect
  156. {
  157. *Order: DOC_SETUP.4
  158. *Cmd: "<1B>H<1B>L022" %v{(PhysPaperLength / 80) + 15}
  159. }
  160. }
  161. *Option: JAPANESE_POSTCARD_ROTATED
  162. {
  163. *rcNameID: =JAPANESE_POSTCARD_ROTATED_DISPLAY
  164. *PrintableArea: PAIR(2385, 1404)
  165. *PrintableOrigin: PAIR(216, 183)
  166. *Command: CmdSelect
  167. {
  168. *Order: DOC_SETUP.4
  169. *Cmd: "<1B>H<1B>L022" %v{(PhysPaperLength / 80) + 15}
  170. }
  171. }
  172. *Option: CUSTOMSIZE
  173. {
  174. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  175. *MinSize: PAIR(960, 480)
  176. *MaxSize: PAIR(4857, 10224)
  177. *MaxPrintableWidth: 3840
  178. *MinLeftMargin: 0
  179. *CenterPrintable?: FALSE
  180. *switch: InputBin
  181. {
  182. *case: SheetGuide
  183. {
  184. *CustCursorOriginX: %d{0}
  185. *CustCursorOriginY: %d{117}
  186. *CustPrintableOriginX: %d{0}
  187. *CustPrintableOriginY: %d{117}
  188. *CustPrintableSizeX: %d{min(3840, PhysPaperWidth)}
  189. *CustPrintableSizeY: %d{PhysPaperLength-(117+189)}
  190. }
  191. *case: SheetFeeder
  192. {
  193. *CustCursorOriginX: %d{0}
  194. *CustCursorOriginY: %d{117}
  195. *CustPrintableOriginX: %d{0}
  196. *CustPrintableOriginY: %d{117}
  197. *CustPrintableSizeX: %d{min(3840, PhysPaperWidth)}
  198. *CustPrintableSizeY: %d{PhysPaperLength-(117+189)}
  199. }
  200. }
  201. *Command: CmdSelect
  202. {
  203. *Order: DOC_SETUP.4
  204. *Cmd: %v{(PhysPaperLength / 80) }
  205. }
  206. }
  207. }
  208. *%======== Paperfeed Pos ========
  209. *Feature: KyuusiIti
  210. {
  211. *rcNameID: 283
  212. *DefaultOption: Center
  213. *HelpIndex: 1151
  214. *Option: Center
  215. {
  216. *rcNameID: 258
  217. *Constraints: PaperSize.CUSTOMSIZE
  218. }
  219. *Option: Left
  220. {
  221. *rcNameID: 259
  222. *Constraints: InputBin.SheetFeeder
  223. }
  224. }
  225. *%======== PrintQuality ========
  226. *Feature: PrintQuality
  227. {
  228. *rcNameID: =TEXT_QUALITY_DISPLAY
  229. *DefaultOption: Option2
  230. *HelpIndex: 1167
  231. *Option: Option1
  232. {
  233. *rcNameID: 268
  234. *Command: CmdSelect
  235. {
  236. *Order: DOC_SETUP.2
  237. *Cmd: "<1B>d1<1B><3E>"
  238. }
  239. }
  240. *Option: Option2
  241. {
  242. *rcNameID: 269
  243. *Command: CmdSelect
  244. {
  245. *Order: DOC_SETUP.2
  246. *Cmd: "<1B>d1<1B>]"
  247. }
  248. }
  249. *Option: Option3
  250. {
  251. *rcNameID: 270
  252. *Command: CmdSelect
  253. {
  254. *Order: DOC_SETUP.2
  255. *Cmd: "<1B>d0<1B><3E>"
  256. }
  257. }
  258. *Option: Option4
  259. {
  260. *rcNameID: 271
  261. *Command: CmdSelect
  262. {
  263. *Order: DOC_SETUP.2
  264. *Cmd: "<1B>d0<1B>]"
  265. }
  266. }
  267. }
  268. *%======== TextHalftoneThreshold ========
  269. *Feature: TextHalftoneThreshold
  270. {
  271. *rcNameID: =TEXTHALFTONE_DISPLAY
  272. *DefaultOption: Option1
  273. *HelpIndex: 1180
  274. *Option: NONE
  275. {
  276. *rcNameID: =NONE_DISPLAY
  277. }
  278. *Option: Option1
  279. {
  280. *Name: "160"
  281. EXTERN_GLOBAL: *TextHalftoneThreshold: 160
  282. }
  283. }
  284. *%======== Halftone ========
  285. *Feature: Halftone
  286. {
  287. *rcNameID: =HALFTONING_DISPLAY
  288. *DefaultOption: HT_PATSIZE_AUTO
  289. *Option: HT_PATSIZE_AUTO
  290. {
  291. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  292. }
  293. *Option: HT_PATSIZE_SUPERCELL_M
  294. {
  295. *rcNameID: =HT_SUPERCELL_DISPLAY
  296. }
  297. *Option: HT_PATSIZE_6x6_M
  298. {
  299. *rcNameID: =HT_DITHER6X6_DISPLAY
  300. }
  301. *Option: HT_PATSIZE_8x8_M
  302. {
  303. *rcNameID: =HT_DITHER8X8_DISPLAY
  304. }
  305. }
  306. *%======== StartJob ========
  307. *Command: CmdStartJob
  308. {
  309. *Order: JOB_SETUP.1
  310. *Cmd: "<180F><1B>$<1B>s0<1B>l-<1B>_1<1C>04LS12<1C>w0,0.<1B>M<1B>2"
  311. + "<1B>/080<1B>h0<1C>A<1B>f"
  312. }
  313. *%======== StartDoc ========
  314. *Command: CmdStartDoc
  315. {
  316. *Order: DOC_SETUP.1
  317. *Cmd: "<1B>H<1B>e11<1B221B>Y<1B>L000<1B>A<1B>O0<1C>c,,0."
  318. }
  319. *%======== StartPage ========
  320. *switch: InputBin
  321. {
  322. *case: SheetGuide
  323. {
  324. *Command: CmdStartPage
  325. {
  326. *Order: PAGE_SETUP.1
  327. *Cmd: "<0D><1B>H<FF><0D>"
  328. }
  329. }
  330. *case: SheetFeeder
  331. {
  332. *Command: CmdStartPage
  333. {
  334. *Order: PAGE_SETUP.1
  335. *Cmd: "<0D><1B>a"
  336. }
  337. }
  338. }
  339. *%======== EndPage ========
  340. *switch: InputBin
  341. {
  342. *case: SheetGuide
  343. {
  344. *EjectPageWithFF?: TRUE
  345. }
  346. *case: SheetFeeder
  347. {
  348. *EjectPageWithFF?: FALSE
  349. *Command: CmdEndPage
  350. {
  351. *Order: PAGE_FINISH.1
  352. *Cmd: "<1B>b"
  353. }
  354. }
  355. }
  356. *%======== capabilities ========
  357. *RotateCoordinate?: FALSE
  358. *RotateRaster?: FALSE
  359. *RotateFont?: FALSE
  360. *switch: Orientation
  361. {
  362. *case: PORTRAIT
  363. {
  364. *TextCaps: LIST(TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  365. }
  366. *case: LANDSCAPE_CC270
  367. {
  368. *TextCaps: LIST(TC_RA_ABLE)
  369. }
  370. }
  371. *ReselectFont: LIST(AFTER_GRXDATA, AFTER_XMOVE)
  372. *%======== Cursor Control ========
  373. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  374. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  375. *MaxLineSpacing: 396
  376. *XMoveThreshold: 0
  377. *XMoveUnit: 160
  378. *AbsXMovesRightOnly?: TRUE
  379. *Command: CmdXMoveAbsolute { *Cmd : "<1B>H<1B>e11<1B>F" %4d[0,1280]{max_repeat((DestX / 3) )} }
  380. *LineSpacingMoveUnit: 120
  381. *Command: CmdSetLineSpacing { *Cmd : "<1B>T" %2d[0,99]{(LinefeedSpacing / 4) } }
  382. *Command: CmdCR { *Cmd : "<0D>" }
  383. *Command: CmdLF { *Cmd : "<0A>" }
  384. *Command: CmdFF { *Cmd : "<0D0C>" }
  385. *Command: CmdBackSpace { *Cmd : "<08>" }
  386. *%======== Raster Data ========
  387. *OutputDataFormat: V_BYTE
  388. *OptimizeLeftBound?: FALSE
  389. *CursorXAfterSendBlockData: AT_GRXDATA_END
  390. *CursorYAfterSendBlockData: NO_MOVE
  391. *MirrorRasterByte?: TRUE
  392. *%======== Device Font ========
  393. *DefaultFont: 1
  394. *DefaultCTT: 1
  395. *switch: Orientation
  396. {
  397. *case: PORTRAIT
  398. {
  399. *DeviceFonts: LIST(1,9,17,18,19,20,21,22,23,24,25,26,27,28,29,30,
  400. + 31,32,33,34,35,36)
  401. }
  402. *case: LANDSCAPE_CC270
  403. {
  404. *DeviceFonts: LIST()
  405. }
  406. }
  407. *FontCartridge: FC1
  408. {
  409. *rcCartridgeNameID: 274
  410. *PortraitFonts: LIST(5,13)
  411. *LandscapeFonts: LIST()
  412. }
  413. *FontCartridge: FC2
  414. {
  415. *rcCartridgeNameID: 275
  416. *PortraitFonts: LIST(6,14)
  417. *LandscapeFonts: LIST()
  418. }
  419. *FontCartridge: FC3
  420. {
  421. *rcCartridgeNameID: 276
  422. *PortraitFonts: LIST(7,15)
  423. *LandscapeFonts: LIST()
  424. }
  425. *FontCartridge: FC4
  426. {
  427. *rcCartridgeNameID: 277
  428. *PortraitFonts: LIST(8,16)
  429. *LandscapeFonts: LIST()
  430. }
  431. *%======== Font Simulation ========
  432. *Command: CmdBoldOn { *Cmd : "<1C>c,,1." }
  433. *Command: CmdItalicOn { *Cmd : "<1C>c,,2." }
  434. *Command: CmdClearAllFontAttribs { *Cmd : "<1C>c,,0." }
  435. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  436. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }