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.

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