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.

506 lines
16 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *Include: "StdNames.gpd"
  7. *GPDFileVersion: "1.0"
  8. *GPDFileName: "stjt1clj.gpd"
  9. *CodePage: 1252
  10. *ModelName: "Star JT-100CL ESC/P"
  11. *MasterUnits: PAIR(360, 360)
  12. *ResourceDLL: "stepjres.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: Option2
  31. *Option: Option1
  32. {
  33. *rcNameID: 260
  34. *OptionID: 260
  35. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  36. }
  37. *Option: Option2
  38. {
  39. *rcNameID: 262
  40. *OptionID: 262
  41. }
  42. *Option: Option3
  43. {
  44. *rcNameID: 259
  45. *OptionID: 259
  46. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  47. }
  48. }
  49. *Feature: Resolution
  50. {
  51. *rcNameID: =RESOLUTION_DISPLAY
  52. *DefaultOption: Option1
  53. *Option: Option1
  54. {
  55. *Name: "360 x 360 " =DOTS_PER_INCH
  56. *DPI: PAIR(360, 360)
  57. *TextDPI: PAIR(360, 360)
  58. *PinsPerLogPass: 48
  59. *PinsPerPhysPass: 48
  60. *MinStripBlankPixels: 240
  61. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  62. *SpotDiameter: 120
  63. *Command: CmdSendBlockData { *Cmd : "<1B>*H" %l{NumOfDataBytes / 6} }
  64. }
  65. *Option: Option2
  66. {
  67. *Name: "180 x 180 " =DOTS_PER_INCH
  68. *DPI: PAIR(180, 180)
  69. *TextDPI: PAIR(180, 180)
  70. *PinsPerLogPass: 24
  71. *PinsPerPhysPass: 24
  72. *MinStripBlankPixels: 360
  73. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  74. *SpotDiameter: 140
  75. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  76. }
  77. *Option: Option3
  78. {
  79. *Name: "360 x 180 " =DOTS_PER_INCH
  80. *DPI: PAIR(360, 180)
  81. *TextDPI: PAIR(360, 180)
  82. *PinsPerLogPass: 24
  83. *PinsPerPhysPass: 24
  84. *MinStripBlankPixels: 240
  85. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  86. *SpotDiameter: 120
  87. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  88. }
  89. }
  90. *Feature: PaperSize
  91. {
  92. *rcNameID: =PAPER_SIZE_DISPLAY
  93. *DefaultOption: A4
  94. *Option: A4
  95. {
  96. *rcNameID: =A4_DISPLAY
  97. *Command: CmdSelect
  98. {
  99. *Order: DOC_SETUP.8
  100. *Cmd: "<1B>2<1B>CF"
  101. }
  102. *switch: InputBin
  103. {
  104. *case: Option1
  105. {
  106. *PrintableArea: PAIR(2877, 4088)
  107. *PrintableOrigin: PAIR(50, 120)
  108. *switch: Resolution
  109. {
  110. *case: Option2
  111. {
  112. *% Warning: the following printable width is adjusted (2877->2876) so it is divisible by the resolution X scale.
  113. *PrintableArea: PAIR(2876, 4088)
  114. }
  115. }
  116. }
  117. *case: Option2
  118. {
  119. *PrintableArea: PAIR(2877, 3908)
  120. *PrintableOrigin: PAIR(50, 120)
  121. *switch: Resolution
  122. {
  123. *case: Option2
  124. {
  125. *% Warning: the following printable width is adjusted (2877->2876) so it is divisible by the resolution X scale.
  126. *PrintableArea: PAIR(2876, 3908)
  127. }
  128. }
  129. }
  130. *case: Option3
  131. {
  132. *PrintableArea: PAIR(2877, 3888)
  133. *PrintableOrigin: PAIR(50, 120)
  134. *switch: Resolution
  135. {
  136. *case: Option2
  137. {
  138. *% Warning: the following printable width is adjusted (2877->2876) so it is divisible by the resolution X scale.
  139. *PrintableArea: PAIR(2876, 3888)
  140. }
  141. }
  142. }
  143. }
  144. }
  145. *Option: B5
  146. {
  147. *rcNameID: =B5_DISPLAY
  148. *Command: CmdSelect
  149. {
  150. *Order: DOC_SETUP.8
  151. *Cmd: "<1B>2<1B>C%<"
  152. }
  153. *switch: InputBin
  154. {
  155. *case: Option1
  156. {
  157. *PrintableArea: PAIR(2481, 3523)
  158. *PrintableOrigin: PAIR(50, 120)
  159. *switch: Resolution
  160. {
  161. *case: Option2
  162. {
  163. *% Warning: the following printable width is adjusted (2481->2480) so it is divisible by the resolution X scale.
  164. *% Warning: the following printable length is adjusted (3523->3522) so it is divisible by the resolution Y scale.
  165. *PrintableArea: PAIR(2480, 3522)
  166. }
  167. *case: Option3
  168. {
  169. *% Warning: the following printable length is adjusted (3523->3522) so it is divisible by the resolution Y scale.
  170. *PrintableArea: PAIR(2481, 3522)
  171. }
  172. }
  173. }
  174. *case: Option2
  175. {
  176. *PrintableArea: PAIR(2481, 3343)
  177. *PrintableOrigin: PAIR(50, 120)
  178. *switch: Resolution
  179. {
  180. *case: Option2
  181. {
  182. *% Warning: the following printable width is adjusted (2481->2480) so it is divisible by the resolution X scale.
  183. *% Warning: the following printable length is adjusted (3343->3342) so it is divisible by the resolution Y scale.
  184. *PrintableArea: PAIR(2480, 3342)
  185. }
  186. *case: Option3
  187. {
  188. *% Warning: the following printable length is adjusted (3343->3342) so it is divisible by the resolution Y scale.
  189. *PrintableArea: PAIR(2481, 3342)
  190. }
  191. }
  192. }
  193. *case: Option3
  194. {
  195. *PrintableArea: PAIR(2481, 3323)
  196. *PrintableOrigin: PAIR(50, 120)
  197. *switch: Resolution
  198. {
  199. *case: Option2
  200. {
  201. *% Warning: the following printable width is adjusted (2481->2480) so it is divisible by the resolution X scale.
  202. *% Warning: the following printable length is adjusted (3323->3322) so it is divisible by the resolution Y scale.
  203. *PrintableArea: PAIR(2480, 3322)
  204. }
  205. *case: Option3
  206. {
  207. *% Warning: the following printable length is adjusted (3323->3322) so it is divisible by the resolution Y scale.
  208. *PrintableArea: PAIR(2481, 3322)
  209. }
  210. }
  211. }
  212. }
  213. }
  214. *Option: JAPANESE_POSTCARD
  215. {
  216. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  217. *Command: CmdSelect
  218. {
  219. *Order: DOC_SETUP.8
  220. *Cmd: "<1B>2<1B>C%""
  221. }
  222. *switch: InputBin
  223. {
  224. *case: Option1
  225. {
  226. *PrintableArea: PAIR(1318, 1979)
  227. *PrintableOrigin: PAIR(50, 120)
  228. *switch: Resolution
  229. {
  230. *case: Option2
  231. {
  232. *% Warning: the following printable length is adjusted (1979->1978) so it is divisible by the resolution Y scale.
  233. *PrintableArea: PAIR(1318, 1978)
  234. }
  235. *case: Option3
  236. {
  237. *% Warning: the following printable length is adjusted (1979->1978) so it is divisible by the resolution Y scale.
  238. *PrintableArea: PAIR(1318, 1978)
  239. }
  240. }
  241. }
  242. *case: Option2
  243. {
  244. *PrintableArea: PAIR(1318, 1799)
  245. *PrintableOrigin: PAIR(50, 120)
  246. *switch: Resolution
  247. {
  248. *case: Option2
  249. {
  250. *% Warning: the following printable length is adjusted (1799->1798) so it is divisible by the resolution Y scale.
  251. *PrintableArea: PAIR(1318, 1798)
  252. }
  253. *case: Option3
  254. {
  255. *% Warning: the following printable length is adjusted (1799->1798) so it is divisible by the resolution Y scale.
  256. *PrintableArea: PAIR(1318, 1798)
  257. }
  258. }
  259. }
  260. *case: Option3
  261. {
  262. *PrintableArea: PAIR(1318, 1779)
  263. *PrintableOrigin: PAIR(50, 120)
  264. *switch: Resolution
  265. {
  266. *case: Option2
  267. {
  268. *% Warning: the following printable length is adjusted (1779->1778) so it is divisible by the resolution Y scale.
  269. *PrintableArea: PAIR(1318, 1778)
  270. }
  271. *case: Option3
  272. {
  273. *% Warning: the following printable length is adjusted (1779->1778) so it is divisible by the resolution Y scale.
  274. *PrintableArea: PAIR(1318, 1778)
  275. }
  276. }
  277. }
  278. }
  279. }
  280. *Option: JAPANESE_POSTCARD_ROTATED
  281. {
  282. *rcNameID: =JAPANESE_POSTCARD_ROTATED_DISPLAY
  283. *Command: CmdSelect
  284. {
  285. *Order: DOC_SETUP.8
  286. *Cmd: "<1B>2<1B>C<17>"
  287. }
  288. *switch: InputBin
  289. {
  290. *case: Option1
  291. {
  292. *PrintableArea: PAIR(1999, 1298)
  293. *PrintableOrigin: PAIR(50, 120)
  294. *switch: Resolution
  295. {
  296. *case: Option2
  297. {
  298. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  299. *PrintableArea: PAIR(1998, 1298)
  300. }
  301. }
  302. }
  303. *case: Option2
  304. {
  305. *PrintableArea: PAIR(1999, 1118)
  306. *PrintableOrigin: PAIR(50, 120)
  307. *switch: Resolution
  308. {
  309. *case: Option2
  310. {
  311. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  312. *PrintableArea: PAIR(1998, 1118)
  313. }
  314. }
  315. }
  316. *case: Option3
  317. {
  318. *PrintableArea: PAIR(1999, 1098)
  319. *PrintableOrigin: PAIR(50, 120)
  320. *switch: Resolution
  321. {
  322. *case: Option2
  323. {
  324. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  325. *PrintableArea: PAIR(1998, 1098)
  326. }
  327. }
  328. }
  329. }
  330. }
  331. *Option: CUSTOMSIZE
  332. {
  333. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  334. *MinSize: PAIR(1417, 1417)
  335. *MaxSize: PAIR(3642, 5952)
  336. *MaxPrintableWidth: 3642
  337. *MinLeftMargin: 0
  338. *CenterPrintable?: FALSE
  339. *switch: InputBin
  340. {
  341. *case: Option1
  342. {
  343. *TopMargin: 120
  344. *BottomMargin: 0
  345. }
  346. *case: Option2
  347. {
  348. *TopMargin: 120
  349. *BottomMargin: 180
  350. }
  351. *case: Option3
  352. {
  353. *TopMargin: 120
  354. *BottomMargin: 200
  355. }
  356. }
  357. *Command: CmdSelect
  358. {
  359. *Order: DOC_SETUP.8
  360. *Cmd: "<1B>2<1B>C" %c[0,127]{max_repeat((PhysPaperLength / 60) )}
  361. }
  362. }
  363. }
  364. *InvalidCombination: LIST(InputBin.Option3, PaperSize.CUSTOMSIZE)
  365. *Feature: PrintQuality
  366. {
  367. *rcNameID: =TEXT_QUALITY_DISPLAY
  368. *DefaultOption: LETTER_QUALITY
  369. *Option: LETTER_QUALITY
  370. {
  371. *rcNameID: =LETTER_QUALITY_DISPLAY
  372. *Command: CmdSelect
  373. {
  374. *Order: DOC_SETUP.6
  375. *Cmd: "<1B>x<011C>x<00>"
  376. }
  377. }
  378. }
  379. *Feature: ColorMode
  380. {
  381. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  382. *DefaultOption: Color
  383. *Option: Mono
  384. {
  385. *rcNameID: =MONO_DISPLAY
  386. *DevNumOfPlanes: 1
  387. *DevBPP: 1
  388. *Color? : FALSE
  389. }
  390. *Option: Color
  391. {
  392. *rcNameID: =COLOR_DISPLAY
  393. *DevNumOfPlanes: 4
  394. *DevBPP: 1
  395. *DrvBPP: 4
  396. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  397. *Command: CmdSendYellowData { *Cmd : "<1B>r<04>" }
  398. *Command: CmdSendMagentaData { *Cmd : "<1B>r<01>" }
  399. *Command: CmdSendCyanData { *Cmd : "<1B>r<02>" }
  400. *Command: CmdSendBlackData { *Cmd : "<1B>r<00>" }
  401. *Command: CmdSelectBlackColor { *Cmd : "<1B>r<00>" }
  402. *Command: CmdSelectRedColor { *Cmd : "<1B>r<05>" }
  403. *Command: CmdSelectGreenColor { *Cmd : "<1B>r<06>" }
  404. *Command: CmdSelectYellowColor { *Cmd : "<1B>r<04>" }
  405. *Command: CmdSelectBlueColor { *Cmd : "<1B>r<03>" }
  406. *Command: CmdSelectMagentaColor { *Cmd : "<1B>r<01>" }
  407. *Command: CmdSelectCyanColor { *Cmd : "<1B>r<02>" }
  408. }
  409. }
  410. *Feature: Halftone
  411. {
  412. *rcNameID: =HALFTONING_DISPLAY
  413. *DefaultOption: HT_PATSIZE_AUTO
  414. *Option: HT_PATSIZE_AUTO
  415. {
  416. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  417. }
  418. *Option: HT_PATSIZE_SUPERCELL_M
  419. {
  420. *rcNameID: =HT_SUPERCELL_DISPLAY
  421. }
  422. *Option: HT_PATSIZE_6x6_M
  423. {
  424. *rcNameID: =HT_DITHER6X6_DISPLAY
  425. }
  426. *Option: HT_PATSIZE_8x8_M
  427. {
  428. *rcNameID: =HT_DITHER8X8_DISPLAY
  429. }
  430. }
  431. *Command: CmdStartDoc
  432. {
  433. *Order: DOC_SETUP.1
  434. *Cmd: "<1B>@<181B>t<011B>R<00>"
  435. }
  436. *Command: CmdStartPage
  437. {
  438. *Order: PAGE_SETUP.1
  439. *Cmd: "<0D>"
  440. }
  441. *RotateCoordinate?: FALSE
  442. *RotateRaster?: FALSE
  443. *RotateFont?: FALSE
  444. *switch: Orientation
  445. {
  446. *case: PORTRAIT
  447. {
  448. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_RA_ABLE)
  449. }
  450. *case: LANDSCAPE_CC270
  451. {
  452. *TextCaps: LIST(TC_RA_ABLE)
  453. }
  454. }
  455. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  456. *YMoveAttributes: LIST(SEND_CR_FIRST)
  457. *MaxLineSpacing: 255
  458. *XMoveThreshold: 0
  459. *YMoveThreshold: *
  460. *XMoveUnit: 60
  461. *YMoveUnit: 180
  462. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,815]{max_repeat((DestX / 6) )} }
  463. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  464. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  465. *Command: CmdCR { *Cmd : "<0D>" }
  466. *Command: CmdLF { *Cmd : "<0A>" }
  467. *Command: CmdFF { *Cmd : "<0C>" }
  468. *Command: CmdBackSpace { *Cmd : "<08>" }
  469. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  470. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  471. *EjectPageWithFF?: FALSE
  472. *switch: InputBin
  473. {
  474. *case: Option2
  475. {
  476. *EjectPageWithFF?: TRUE
  477. }
  478. *case: Option3
  479. {
  480. *EjectPageWithFF?: TRUE
  481. }
  482. }
  483. *OutputDataFormat: V_BYTE
  484. *OptimizeLeftBound?: FALSE
  485. *CursorXAfterSendBlockData: AT_GRXDATA_END
  486. *CursorYAfterSendBlockData: NO_MOVE
  487. *DefaultFont: 1
  488. *DefaultCTT: -1
  489. *switch: Orientation
  490. {
  491. *case: PORTRAIT
  492. {
  493. *DeviceFonts: LIST(1,9,13,14,15,16,17)
  494. }
  495. *case: LANDSCAPE_CC270
  496. {
  497. *DeviceFonts: LIST()
  498. }
  499. }
  500. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  501. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  502. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  503. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  504. *Command: CmdSelectSingleByteMode { *Cmd : "<1C0F>" }
  505. *Command: CmdSelectDoubleByteMode { *Cmd : "<1C12>" }
  506. *UseExpColorSelectCmd?: TRUE