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.

635 lines
18 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "OKD292IB.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Okidata ML 292-IBM"
  10. *MasterUnits: PAIR(720, 216)
  11. *ResourceDLL: "ok9ibres.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: MANUAL
  35. {
  36. *rcNameID: =MANUAL_FEED_DISPLAY
  37. }
  38. *Option: Option3
  39. {
  40. *rcNameID: 262
  41. *Command: CmdSelect
  42. {
  43. *Order: DOC_SETUP.7
  44. *Cmd: "<1B1901>"
  45. }
  46. }
  47. }
  48. *Feature: Resolution
  49. {
  50. *rcNameID: =RESOLUTION_DISPLAY
  51. *DefaultOption: Option1
  52. *Option: Option1
  53. {
  54. *Name: "120 x 72 " =DOTS_PER_INCH
  55. *DPI: PAIR(120, 72)
  56. *TextDPI: PAIR(120, 72)
  57. *PinsPerLogPass: 8
  58. *PinsPerPhysPass: 8
  59. *RequireUniDir?: TRUE
  60. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  61. EXTERN_GLOBAL: *TextYOffset: 14
  62. *SpotDiameter: 100
  63. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  64. }
  65. *Option: Option2
  66. {
  67. *Name: "60 x 72 " =DOTS_PER_INCH
  68. *DPI: PAIR(60, 72)
  69. *TextDPI: PAIR(60, 72)
  70. *PinsPerLogPass: 8
  71. *PinsPerPhysPass: 8
  72. *RequireUniDir?: TRUE
  73. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  74. *SpotDiameter: 100
  75. *Command: CmdSendBlockData { *Cmd : "<1B>K" %l{NumOfDataBytes} }
  76. }
  77. *Option: Option3
  78. {
  79. *Name: "240 x 216 " =DOTS_PER_INCH
  80. *DPI: PAIR(240, 216)
  81. *TextDPI: PAIR(240, 216)
  82. *PinsPerLogPass: 24
  83. *PinsPerPhysPass: 8
  84. *MinStripBlankPixels: 240
  85. *RequireUniDir?: TRUE
  86. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  87. *SpotDiameter: 170
  88. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  89. }
  90. *Option: Option4
  91. {
  92. *Name: "240 x 72 " =DOTS_PER_INCH
  93. *DPI: PAIR(240, 72)
  94. *TextDPI: PAIR(240, 72)
  95. *PinsPerLogPass: 8
  96. *PinsPerPhysPass: 8
  97. *MinStripBlankPixels: 240
  98. *RequireUniDir?: TRUE
  99. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  100. *SpotDiameter: 170
  101. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  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.8
  114. *Cmd: "<1B>C<000B>"
  115. }
  116. *switch: InputBin
  117. {
  118. *case: TRACTOR
  119. {
  120. *PrintableArea: PAIR(5760, 2376)
  121. *PrintableOrigin: PAIR(180, 0)
  122. }
  123. *case: MANUAL
  124. {
  125. *PrintableArea: PAIR(5760, 1957)
  126. *PrintableOrigin: PAIR(180, 189)
  127. *switch: Resolution
  128. {
  129. *case: Option1
  130. {
  131. *PrintableArea: PAIR(5760, 1956)
  132. }
  133. *case: Option2
  134. {
  135. *PrintableArea: PAIR(5760, 1956)
  136. }
  137. *case: Option4
  138. {
  139. *PrintableArea: PAIR(5760, 1956)
  140. }
  141. }
  142. }
  143. *case: Option3
  144. {
  145. *PrintableArea: PAIR(5760, 2110)
  146. *PrintableOrigin: PAIR(180, 108)
  147. *switch: Resolution
  148. {
  149. *case: Option1
  150. {
  151. *PrintableArea: PAIR(5760, 2109)
  152. }
  153. *case: Option2
  154. {
  155. *PrintableArea: PAIR(5760, 2109)
  156. }
  157. *case: Option4
  158. {
  159. *PrintableArea: PAIR(5760, 2109)
  160. }
  161. }
  162. }
  163. }
  164. }
  165. *Option: LEGAL
  166. {
  167. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  168. *Command: CmdSelect
  169. {
  170. *Order: DOC_SETUP.8
  171. *Cmd: "<1B>C<000E>"
  172. }
  173. *switch: InputBin
  174. {
  175. *case: TRACTOR
  176. {
  177. *PrintableArea: PAIR(5760, 3024)
  178. *PrintableOrigin: PAIR(180, 0)
  179. }
  180. *case: MANUAL
  181. {
  182. *PrintableArea: PAIR(5760, 2605)
  183. *PrintableOrigin: PAIR(180, 189)
  184. *switch: Resolution
  185. {
  186. *case: Option1
  187. {
  188. *PrintableArea: PAIR(5760, 2604)
  189. }
  190. *case: Option2
  191. {
  192. *PrintableArea: PAIR(5760, 2604)
  193. }
  194. *case: Option4
  195. {
  196. *PrintableArea: PAIR(5760, 2604)
  197. }
  198. }
  199. }
  200. *case: Option3
  201. {
  202. *PrintableArea: PAIR(5760, 2758)
  203. *PrintableOrigin: PAIR(180, 108)
  204. *switch: Resolution
  205. {
  206. *case: Option1
  207. {
  208. *PrintableArea: PAIR(5760, 2757)
  209. }
  210. *case: Option2
  211. {
  212. *PrintableArea: PAIR(5760, 2757)
  213. }
  214. *case: Option4
  215. {
  216. *PrintableArea: PAIR(5760, 2757)
  217. }
  218. }
  219. }
  220. }
  221. }
  222. *Option: A4
  223. {
  224. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  225. *Command: CmdSelect
  226. {
  227. *Order: DOC_SETUP.8
  228. *Cmd: "<1B>2<1B>CF"
  229. }
  230. *switch: InputBin
  231. {
  232. *case: TRACTOR
  233. {
  234. *PrintableArea: PAIR(5760, 2525)
  235. *PrintableOrigin: PAIR(180, 0)
  236. *switch: Resolution
  237. {
  238. *case: Option1
  239. {
  240. *PrintableArea: PAIR(5760, 2523)
  241. }
  242. *case: Option2
  243. {
  244. *PrintableArea: PAIR(5760, 2523)
  245. }
  246. *case: Option4
  247. {
  248. *PrintableArea: PAIR(5760, 2523)
  249. }
  250. }
  251. }
  252. *case: MANUAL
  253. {
  254. *PrintableArea: PAIR(5760, 2106)
  255. *PrintableOrigin: PAIR(180, 189)
  256. }
  257. *case: Option3
  258. {
  259. *PrintableArea: PAIR(5760, 2259)
  260. *PrintableOrigin: PAIR(180, 108)
  261. }
  262. }
  263. }
  264. *Option: B5
  265. {
  266. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  267. *Command: CmdSelect
  268. {
  269. *Order: DOC_SETUP.8
  270. *Cmd: "<1B>2<1B>C%<"
  271. }
  272. *switch: InputBin
  273. {
  274. *case: TRACTOR
  275. {
  276. *PrintableArea: PAIR(4982, 2186)
  277. *PrintableOrigin: PAIR(180, 0)
  278. *switch: Resolution
  279. {
  280. *case: Option1
  281. {
  282. *PrintableArea: PAIR(4980, 2184)
  283. }
  284. *case: Option2
  285. {
  286. *PrintableArea: PAIR(4980, 2184)
  287. }
  288. *case: Option3
  289. {
  290. *PrintableArea: PAIR(4980, 2186)
  291. }
  292. *case: Option4
  293. {
  294. *PrintableArea: PAIR(4980, 2184)
  295. }
  296. }
  297. }
  298. *case: MANUAL
  299. {
  300. *PrintableArea: PAIR(4982, 1767)
  301. *PrintableOrigin: PAIR(180, 189)
  302. *switch: Resolution
  303. {
  304. *case: Option1
  305. {
  306. *PrintableArea: PAIR(4980, 1767)
  307. }
  308. *case: Option2
  309. {
  310. *PrintableArea: PAIR(4980, 1767)
  311. }
  312. *case: Option3
  313. {
  314. *PrintableArea: PAIR(4980, 1767)
  315. }
  316. *case: Option4
  317. {
  318. *PrintableArea: PAIR(4980, 1767)
  319. }
  320. }
  321. }
  322. *case: Option3
  323. {
  324. *PrintableArea: PAIR(4982, 1920)
  325. *PrintableOrigin: PAIR(180, 108)
  326. *switch: Resolution
  327. {
  328. *case: Option1
  329. {
  330. *PrintableArea: PAIR(4980, 1920)
  331. }
  332. *case: Option2
  333. {
  334. *PrintableArea: PAIR(4980, 1920)
  335. }
  336. *case: Option3
  337. {
  338. *PrintableArea: PAIR(4980, 1920)
  339. }
  340. *case: Option4
  341. {
  342. *PrintableArea: PAIR(4980, 1920)
  343. }
  344. }
  345. }
  346. }
  347. }
  348. *Option: Option5
  349. {
  350. *rcNameID: 259
  351. *PageDimensions: PAIR(6120, 2592)
  352. *Command: CmdSelect
  353. {
  354. *Order: DOC_SETUP.8
  355. *Cmd: "<1B>C<000C>"
  356. }
  357. *switch: InputBin
  358. {
  359. *case: TRACTOR
  360. {
  361. *PrintableArea: PAIR(5760, 2592)
  362. *PrintableOrigin: PAIR(180, 0)
  363. }
  364. *case: MANUAL
  365. {
  366. *PrintableArea: PAIR(5760, 2173)
  367. *PrintableOrigin: PAIR(180, 189)
  368. *switch: Resolution
  369. {
  370. *case: Option1
  371. {
  372. *PrintableArea: PAIR(5760, 2172)
  373. }
  374. *case: Option2
  375. {
  376. *PrintableArea: PAIR(5760, 2172)
  377. }
  378. *case: Option4
  379. {
  380. *PrintableArea: PAIR(5760, 2172)
  381. }
  382. }
  383. }
  384. *case: Option3
  385. {
  386. *PrintableArea: PAIR(5760, 2326)
  387. *PrintableOrigin: PAIR(180, 108)
  388. *switch: Resolution
  389. {
  390. *case: Option1
  391. {
  392. *PrintableArea: PAIR(5760, 2325)
  393. }
  394. *case: Option2
  395. {
  396. *PrintableArea: PAIR(5760, 2325)
  397. }
  398. *case: Option4
  399. {
  400. *PrintableArea: PAIR(5760, 2325)
  401. }
  402. }
  403. }
  404. }
  405. }
  406. *Option: Option6
  407. {
  408. *rcNameID: 260
  409. *PageDimensions: PAIR(6120, 2592)
  410. *Command: CmdSelect
  411. {
  412. *Order: DOC_SETUP.8
  413. *Cmd: "<1B>C<000D>"
  414. }
  415. *switch: InputBin
  416. {
  417. *case: TRACTOR
  418. {
  419. *PrintableArea: PAIR(5760, 2592)
  420. *PrintableOrigin: PAIR(180, 0)
  421. }
  422. *case: MANUAL
  423. {
  424. *PrintableArea: PAIR(5760, 2173)
  425. *PrintableOrigin: PAIR(180, 189)
  426. *switch: Resolution
  427. {
  428. *case: Option1
  429. {
  430. *PrintableArea: PAIR(5760, 2172)
  431. }
  432. *case: Option2
  433. {
  434. *PrintableArea: PAIR(5760, 2172)
  435. }
  436. *case: Option4
  437. {
  438. *PrintableArea: PAIR(5760, 2172)
  439. }
  440. }
  441. }
  442. *case: Option3
  443. {
  444. *PrintableArea: PAIR(5760, 2326)
  445. *PrintableOrigin: PAIR(180, 108)
  446. *switch: Resolution
  447. {
  448. *case: Option1
  449. {
  450. *PrintableArea: PAIR(5760, 2325)
  451. }
  452. *case: Option2
  453. {
  454. *PrintableArea: PAIR(5760, 2325)
  455. }
  456. *case: Option4
  457. {
  458. *PrintableArea: PAIR(5760, 2325)
  459. }
  460. }
  461. }
  462. }
  463. }
  464. *Option: Option7
  465. {
  466. *rcNameID: 261
  467. *PageDimensions: PAIR(6235, 935)
  468. *Command: CmdSelect
  469. {
  470. *Order: DOC_SETUP.8
  471. *Cmd: "<1B>2<1B>C<1A>"
  472. }
  473. *switch: InputBin
  474. {
  475. *case: TRACTOR
  476. {
  477. *PrintableArea: PAIR(5760, 935)
  478. *PrintableOrigin: PAIR(180, 0)
  479. *switch: Resolution
  480. {
  481. *case: Option1
  482. {
  483. *PrintableArea: PAIR(5760, 933)
  484. }
  485. *case: Option2
  486. {
  487. *PrintableArea: PAIR(5760, 933)
  488. }
  489. *case: Option4
  490. {
  491. *PrintableArea: PAIR(5760, 933)
  492. }
  493. }
  494. }
  495. *case: MANUAL
  496. {
  497. *PrintableArea: PAIR(5760, 516)
  498. *PrintableOrigin: PAIR(180, 189)
  499. }
  500. *case: Option3
  501. {
  502. *PrintableArea: PAIR(5760, 669)
  503. *PrintableOrigin: PAIR(180, 108)
  504. }
  505. }
  506. }
  507. *Option: CUSTOMSIZE
  508. {
  509. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  510. *MinSize: PAIR(720, 216)
  511. *MaxSize: PAIR(6120, 4752)
  512. *MaxPrintableWidth: 5760
  513. *MinLeftMargin: 180
  514. *CenterPrintable?: FALSE
  515. *switch: InputBin
  516. {
  517. *case: TRACTOR
  518. {
  519. *TopMargin: 0
  520. *BottomMargin: 0
  521. }
  522. *case: MANUAL
  523. {
  524. *TopMargin: 189
  525. *BottomMargin: 230
  526. }
  527. *case: Option3
  528. {
  529. *TopMargin: 108
  530. *BottomMargin: 158
  531. }
  532. }
  533. }
  534. }
  535. *Feature: Halftone
  536. {
  537. *rcNameID: =HALFTONING_DISPLAY
  538. *DefaultOption: HT_PATSIZE_AUTO
  539. *Option: HT_PATSIZE_AUTO
  540. {
  541. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  542. }
  543. *Ifdef: WINNT_50
  544. *Option: HT_PATSIZE_SUPERCELL_M
  545. {
  546. *rcNameID: =HT_SUPERCELL_DISPLAY
  547. }
  548. *Endif:
  549. *Option: HT_PATSIZE_6x6_M
  550. {
  551. *rcNameID: =HT_DITHER6X6_DISPLAY
  552. }
  553. *Option: HT_PATSIZE_8x8_M
  554. {
  555. *rcNameID: =HT_DITHER8X8_DISPLAY
  556. }
  557. }
  558. *Command: CmdStartDoc
  559. {
  560. *Order: DOC_SETUP.1
  561. *Cmd: "<121B>V<001B>U<011B>6<1B>2<1B>I<031B>W0"
  562. }
  563. *Command: CmdStartPage
  564. {
  565. *Order: PAGE_SETUP.1
  566. *Cmd: "<0D>"
  567. }
  568. *Command: CmdEndJob
  569. {
  570. *Order: JOB_FINISH.1
  571. *Cmd: "<1B>@"
  572. }
  573. *RotateCoordinate?: FALSE
  574. *RotateRaster?: FALSE
  575. *RotateFont?: FALSE
  576. *switch: Orientation
  577. {
  578. *case: PORTRAIT
  579. {
  580. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_SO_ABLE,TC_RA_ABLE)
  581. }
  582. *case: LANDSCAPE_CC270
  583. {
  584. *TextCaps: LIST(TC_RA_ABLE)
  585. }
  586. }
  587. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  588. *YMoveAttributes: LIST(SEND_CR_FIRST)
  589. *YMoveThreshold: *
  590. *YMoveUnit: 216
  591. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat(DestYRel )} }
  592. *Command: CmdCR { *Cmd : "<0D>" }
  593. *Command: CmdLF { *Cmd : "<0A>" }
  594. *Command: CmdFF { *Cmd : "<0C1B19>R" }
  595. *Command: CmdBackSpace { *Cmd : "<08>" }
  596. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  597. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  598. *EjectPageWithFF?: FALSE
  599. *switch: InputBin
  600. {
  601. *case: MANUAL
  602. {
  603. *EjectPageWithFF?: TRUE
  604. }
  605. *case: Option3
  606. {
  607. *EjectPageWithFF?: TRUE
  608. }
  609. }
  610. *OutputDataFormat: V_BYTE
  611. *OptimizeLeftBound?: FALSE
  612. *CursorXAfterSendBlockData: AT_GRXDATA_END
  613. *CursorYAfterSendBlockData: NO_MOVE
  614. *DefaultFont: 17
  615. *DefaultCTT: 1
  616. *CharPosition: BASELINE
  617. *switch: Orientation
  618. {
  619. *case: PORTRAIT
  620. {
  621. *DeviceFonts: LIST(6,9,17,20,25,30)
  622. }
  623. *case: LANDSCAPE_CC270
  624. {
  625. *DeviceFonts: LIST()
  626. }
  627. }
  628. *Command: CmdBoldOn { *Cmd : "<1B>I<011B>G" }
  629. *Command: CmdBoldOff { *Cmd : "<1B>H<1B>I<03>" }
  630. *Command: CmdItalicOn { *Cmd : "<1B>I<011B>%%G" }
  631. *Command: CmdItalicOff { *Cmd : "<1B>%%H<1B>I<03>" }
  632. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  633. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  634. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>P<01>" }
  635. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>P<00>" }