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.

533 lines
14 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "SK2400.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Seikosha SP-2400"
  10. *MasterUnits: PAIR(720, 432)
  11. *ResourceDLL: "sek9res.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: TRACTOR
  30. *Option: TRACTOR
  31. {
  32. *rcNameID: =TRACTOR_DISPLAY
  33. }
  34. *Option: AUTO
  35. {
  36. *rcNameID: =AUTO_DISPLAY
  37. *Command: CmdSelect
  38. {
  39. *Order: DOC_SETUP.3
  40. *Cmd: "<1B1904>"
  41. }
  42. }
  43. *Option: MANUAL
  44. {
  45. *rcNameID: =MANUAL_FEED_DISPLAY
  46. *Command: CmdSelect
  47. {
  48. *Order: DOC_SETUP.3
  49. *Cmd: "<1B1900>"
  50. }
  51. }
  52. }
  53. *Feature: Resolution
  54. {
  55. *rcNameID: =RESOLUTION_DISPLAY
  56. *DefaultOption: Option1
  57. *Option: Option1
  58. {
  59. *Name: "240 x 144 " =DOTS_PER_INCH
  60. *DPI: PAIR(240, 144)
  61. *TextDPI: PAIR(240, 144)
  62. *PinsPerLogPass: 16
  63. *PinsPerPhysPass: 8
  64. *MinStripBlankPixels: 240
  65. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  66. *SpotDiameter: 170
  67. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  68. }
  69. *Option: Option2
  70. {
  71. *Name: "120 x 144 " =DOTS_PER_INCH
  72. *DPI: PAIR(120, 144)
  73. *TextDPI: PAIR(120, 144)
  74. *PinsPerLogPass: 16
  75. *PinsPerPhysPass: 8
  76. *MinStripBlankPixels: 120
  77. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  78. *SpotDiameter: 140
  79. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  80. }
  81. *Option: Option3
  82. {
  83. *Name: "120 x 72 " =DOTS_PER_INCH
  84. *DPI: PAIR(120, 72)
  85. *TextDPI: PAIR(120, 72)
  86. *PinsPerLogPass: 8
  87. *PinsPerPhysPass: 8
  88. *MinStripBlankPixels: 120
  89. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  90. *SpotDiameter: 100
  91. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  92. }
  93. }
  94. *Feature: PaperSize
  95. {
  96. *rcNameID: =PAPER_SIZE_DISPLAY
  97. *DefaultOption: A4
  98. *Option: A4
  99. {
  100. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  101. *Command: CmdSelect
  102. {
  103. *Order: DOC_SETUP.4
  104. *Cmd: "<1B>2<1B>CF"
  105. }
  106. *switch: InputBin
  107. {
  108. *case: TRACTOR
  109. {
  110. *PrintableArea: PAIR(5760, 5050)
  111. *PrintableOrigin: PAIR(180, 0)
  112. *switch: Resolution
  113. {
  114. *case: Option1
  115. {
  116. *PrintableArea: PAIR(5760, 5049)
  117. }
  118. *case: Option2
  119. {
  120. *PrintableArea: PAIR(5760, 5049)
  121. }
  122. *case: Option3
  123. {
  124. *PrintableArea: PAIR(5760, 5046)
  125. }
  126. }
  127. }
  128. *case: AUTO
  129. {
  130. *PrintableArea: PAIR(5760, 4267)
  131. *PrintableOrigin: PAIR(180, 423)
  132. *switch: Resolution
  133. {
  134. *case: Option1
  135. {
  136. *PrintableArea: PAIR(5760, 4266)
  137. }
  138. *case: Option2
  139. {
  140. *PrintableArea: PAIR(5760, 4266)
  141. }
  142. *case: Option3
  143. {
  144. *PrintableArea: PAIR(5760, 4260)
  145. *PrintableOrigin: PAIR(180, 426)
  146. }
  147. }
  148. }
  149. *case: MANUAL
  150. {
  151. *PrintableArea: PAIR(5760, 4267)
  152. *PrintableOrigin: PAIR(180, 423)
  153. *switch: Resolution
  154. {
  155. *case: Option1
  156. {
  157. *PrintableArea: PAIR(5760, 4266)
  158. }
  159. *case: Option2
  160. {
  161. *PrintableArea: PAIR(5760, 4266)
  162. }
  163. *case: Option3
  164. {
  165. *PrintableArea: PAIR(5760, 4260)
  166. *PrintableOrigin: PAIR(180, 426)
  167. }
  168. }
  169. }
  170. }
  171. }
  172. *Option: LETTER
  173. {
  174. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  175. *Command: CmdSelect
  176. {
  177. *Order: DOC_SETUP.4
  178. *Cmd: "<1B>2<1B>CB"
  179. }
  180. *switch: InputBin
  181. {
  182. *case: TRACTOR
  183. {
  184. *PrintableArea: PAIR(5760, 4752)
  185. *PrintableOrigin: PAIR(180, 0)
  186. }
  187. *case: AUTO
  188. {
  189. *PrintableArea: PAIR(5760, 3969)
  190. *PrintableOrigin: PAIR(180, 423)
  191. *switch: Resolution
  192. {
  193. *case: Option3
  194. {
  195. *PrintableArea: PAIR(5760, 3966)
  196. *PrintableOrigin: PAIR(180, 426)
  197. }
  198. }
  199. }
  200. *case: MANUAL
  201. {
  202. *PrintableArea: PAIR(5760, 3969)
  203. *PrintableOrigin: PAIR(180, 423)
  204. *switch: Resolution
  205. {
  206. *case: Option3
  207. {
  208. *PrintableArea: PAIR(5760, 3966)
  209. *PrintableOrigin: PAIR(180, 426)
  210. }
  211. }
  212. }
  213. }
  214. }
  215. *Option: LEGAL
  216. {
  217. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  218. *RotateSize? : TRUE
  219. *Command: CmdSelect
  220. {
  221. *Order: DOC_SETUP.4
  222. *Cmd: "<1B>2<1B>CT"
  223. }
  224. *switch: InputBin
  225. {
  226. *case: TRACTOR
  227. {
  228. *PrintableArea: PAIR(5760, 6120)
  229. *PrintableOrigin: PAIR(180, 0)
  230. }
  231. *case: AUTO
  232. {
  233. *PrintableArea: PAIR(5760, 5337)
  234. *PrintableOrigin: PAIR(180, 423)
  235. *switch: Resolution
  236. {
  237. *case: Option3
  238. {
  239. *PrintableArea: PAIR(5760, 5334)
  240. *PrintableOrigin: PAIR(180, 426)
  241. }
  242. }
  243. }
  244. *case: MANUAL
  245. {
  246. *PrintableArea: PAIR(5760, 5337)
  247. *PrintableOrigin: PAIR(180, 423)
  248. *switch: Resolution
  249. {
  250. *case: Option3
  251. {
  252. *PrintableArea: PAIR(5760, 5334)
  253. *PrintableOrigin: PAIR(180, 426)
  254. }
  255. }
  256. }
  257. }
  258. }
  259. *Option: B5
  260. {
  261. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  262. *Command: CmdSelect
  263. {
  264. *Order: DOC_SETUP.4
  265. *Cmd: "<1B>2<1B>C="
  266. }
  267. *switch: InputBin
  268. {
  269. *case: TRACTOR
  270. {
  271. *PrintableArea: PAIR(4982, 4372)
  272. *PrintableOrigin: PAIR(180, 0)
  273. *switch: Resolution
  274. {
  275. *case: Option1
  276. {
  277. *PrintableArea: PAIR(4980, 4371)
  278. }
  279. *case: Option2
  280. {
  281. *PrintableArea: PAIR(4980, 4371)
  282. }
  283. *case: Option3
  284. {
  285. *PrintableArea: PAIR(4980, 4368)
  286. }
  287. }
  288. }
  289. *case: AUTO
  290. {
  291. *PrintableArea: PAIR(4982, 3589)
  292. *PrintableOrigin: PAIR(180, 423)
  293. *switch: Resolution
  294. {
  295. *case: Option1
  296. {
  297. *PrintableArea: PAIR(4980, 3588)
  298. }
  299. *case: Option2
  300. {
  301. *PrintableArea: PAIR(4980, 3588)
  302. }
  303. *case: Option3
  304. {
  305. *PrintableArea: PAIR(4980, 3582)
  306. *PrintableOrigin: PAIR(180, 426)
  307. }
  308. }
  309. }
  310. *case: MANUAL
  311. {
  312. *PrintableArea: PAIR(4982, 3589)
  313. *PrintableOrigin: PAIR(180, 423)
  314. *switch: Resolution
  315. {
  316. *case: Option1
  317. {
  318. *PrintableArea: PAIR(4980, 3588)
  319. }
  320. *case: Option2
  321. {
  322. *PrintableArea: PAIR(4980, 3588)
  323. }
  324. *case: Option3
  325. {
  326. *PrintableArea: PAIR(4980, 3582)
  327. *PrintableOrigin: PAIR(180, 426)
  328. }
  329. }
  330. }
  331. }
  332. }
  333. *Option: Option5
  334. {
  335. *rcNameID: 258
  336. *PageDimensions: PAIR(6120, 5184)
  337. *Command: CmdSelect
  338. {
  339. *Order: DOC_SETUP.4
  340. *Cmd: "<1B>2<1B>CH"
  341. }
  342. *switch: InputBin
  343. {
  344. *case: TRACTOR
  345. {
  346. *PrintableArea: PAIR(5760, 5184)
  347. *PrintableOrigin: PAIR(180, 0)
  348. }
  349. *case: AUTO
  350. {
  351. *PrintableArea: PAIR(5760, 4401)
  352. *PrintableOrigin: PAIR(180, 423)
  353. *switch: Resolution
  354. {
  355. *case: Option3
  356. {
  357. *PrintableArea: PAIR(5760, 4398)
  358. *PrintableOrigin: PAIR(180, 426)
  359. }
  360. }
  361. }
  362. *case: MANUAL
  363. {
  364. *PrintableArea: PAIR(5760, 4401)
  365. *PrintableOrigin: PAIR(180, 423)
  366. *switch: Resolution
  367. {
  368. *case: Option3
  369. {
  370. *PrintableArea: PAIR(5760, 4398)
  371. *PrintableOrigin: PAIR(180, 426)
  372. }
  373. }
  374. }
  375. }
  376. }
  377. *Option: CUSTOMSIZE
  378. {
  379. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  380. *MinSize: PAIR(720, 432)
  381. *MaxSize: PAIR(6120, 9504)
  382. *MaxPrintableWidth: 5760
  383. *MinLeftMargin: 180
  384. *CenterPrintable?: FALSE
  385. *switch: InputBin
  386. {
  387. *case: TRACTOR
  388. {
  389. *TopMargin: 0
  390. *BottomMargin: 0
  391. }
  392. *case: AUTO
  393. {
  394. *TopMargin: 423
  395. *BottomMargin: 360
  396. }
  397. *case: MANUAL
  398. {
  399. *TopMargin: 423
  400. *BottomMargin: 360
  401. }
  402. }
  403. *Command: CmdSelect
  404. {
  405. *Order: DOC_SETUP.4
  406. *Cmd: "<1B>2"
  407. }
  408. }
  409. }
  410. *Feature: PrintQuality
  411. {
  412. *rcNameID: =TEXT_QUALITY_DISPLAY
  413. *DefaultOption: NEAR_LETTER_QUALITY
  414. *Option: NEAR_LETTER_QUALITY
  415. {
  416. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  417. *Command: CmdSelect
  418. {
  419. *Order: DOC_SETUP.2
  420. *Cmd: "<1B>x<01>"
  421. }
  422. }
  423. *Option: DRAFT_QUALITY
  424. {
  425. *rcNameID: =DRAFT_QUALITY_DISPLAY
  426. *Command: CmdSelect
  427. {
  428. *Order: DOC_SETUP.2
  429. *Cmd: "<1B>x<00>"
  430. }
  431. }
  432. }
  433. *Feature: Halftone
  434. {
  435. *rcNameID: =HALFTONING_DISPLAY
  436. *DefaultOption: HT_PATSIZE_AUTO
  437. *Option: HT_PATSIZE_AUTO
  438. {
  439. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  440. }
  441. *Ifdef: WINNT_50
  442. *Option: HT_PATSIZE_SUPERCELL_M
  443. {
  444. *rcNameID: =HT_SUPERCELL_DISPLAY
  445. }
  446. *Endif:
  447. *Option: HT_PATSIZE_6x6_M
  448. {
  449. *rcNameID: =HT_DITHER6X6_DISPLAY
  450. }
  451. *Option: HT_PATSIZE_8x8_M
  452. {
  453. *rcNameID: =HT_DITHER8X8_DISPLAY
  454. }
  455. }
  456. *Command: CmdStartDoc
  457. {
  458. *Order: DOC_SETUP.1
  459. *Cmd: "<1B>@<1B>t<011B>6<0D>"
  460. }
  461. *Command: CmdStartPage
  462. {
  463. *Order: PAGE_SETUP.1
  464. *Cmd: "<0D>"
  465. }
  466. *RotateCoordinate?: FALSE
  467. *RotateRaster?: FALSE
  468. *RotateFont?: FALSE
  469. *switch: Orientation
  470. {
  471. *case: PORTRAIT
  472. {
  473. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  474. }
  475. *case: LANDSCAPE_CC270
  476. {
  477. *TextCaps: LIST(TC_RA_ABLE)
  478. }
  479. }
  480. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  481. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  482. *MaxLineSpacing: 255
  483. *XMoveThreshold: 0
  484. *YMoveThreshold: *
  485. *XMoveUnit: 60
  486. *YMoveUnit: 216
  487. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 12) } }
  488. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  489. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[2,255]{(LinefeedSpacing / 2) } }
  490. *Command: CmdCR { *Cmd : "<0D>" }
  491. *Command: CmdLF { *Cmd : "<0A>" }
  492. *Command: CmdFF { *Cmd : "<0C>" }
  493. *Command: CmdBackSpace { *Cmd : "<08>" }
  494. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  495. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  496. *EjectPageWithFF?: FALSE
  497. *switch: InputBin
  498. {
  499. *case: AUTO
  500. {
  501. *EjectPageWithFF?: TRUE
  502. }
  503. *case: MANUAL
  504. {
  505. *EjectPageWithFF?: TRUE
  506. }
  507. }
  508. *OutputDataFormat: V_BYTE
  509. *OptimizeLeftBound?: FALSE
  510. *CursorXAfterSendBlockData: AT_GRXDATA_END
  511. *CursorYAfterSendBlockData: NO_MOVE
  512. *DefaultFont: 1
  513. *DefaultCTT: 1
  514. *switch: Orientation
  515. {
  516. *case: PORTRAIT
  517. {
  518. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  519. + 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31)
  520. }
  521. *case: LANDSCAPE_CC270
  522. {
  523. *DeviceFonts: LIST()
  524. }
  525. }
  526. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  527. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  528. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  529. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  530. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  531. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  532. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>P1" }
  533. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>P0" }