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.

505 lines
14 KiB

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