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.

541 lines
14 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "OK182EIB.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Oki ML 182 Elite (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: AUTO
  39. {
  40. *rcNameID: =AUTO_DISPLAY
  41. *Command: CmdSelect
  42. {
  43. *Order: DOC_SETUP.7
  44. *Cmd: "<1B19>I<1B>C<00FF>"
  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. }
  91. *Feature: PaperSize
  92. {
  93. *rcNameID: =PAPER_SIZE_DISPLAY
  94. *DefaultOption: LETTER
  95. *Option: LETTER
  96. {
  97. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  98. *Command: CmdSelect
  99. {
  100. *Order: DOC_SETUP.8
  101. *Cmd: "<1B>C<000B>"
  102. }
  103. *switch: InputBin
  104. {
  105. *case: TRACTOR
  106. {
  107. *PrintableArea: PAIR(5760, 2376)
  108. *PrintableOrigin: PAIR(180, 0)
  109. }
  110. *case: MANUAL
  111. {
  112. *PrintableArea: PAIR(5760, 1998)
  113. *PrintableOrigin: PAIR(180, 189)
  114. }
  115. *case: AUTO
  116. {
  117. *PrintableArea: PAIR(5760, 2110)
  118. *PrintableOrigin: PAIR(180, 108)
  119. *switch: Resolution
  120. {
  121. *case: Option1
  122. {
  123. *PrintableArea: PAIR(5760, 2109)
  124. }
  125. *case: Option2
  126. {
  127. *PrintableArea: PAIR(5760, 2109)
  128. }
  129. }
  130. }
  131. }
  132. }
  133. *Option: LEGAL
  134. {
  135. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  136. *Command: CmdSelect
  137. {
  138. *Order: DOC_SETUP.8
  139. *Cmd: "<1B>C<000E>"
  140. }
  141. *switch: InputBin
  142. {
  143. *case: TRACTOR
  144. {
  145. *PrintableArea: PAIR(5760, 3024)
  146. *PrintableOrigin: PAIR(180, 0)
  147. }
  148. *case: MANUAL
  149. {
  150. *PrintableArea: PAIR(5760, 2646)
  151. *PrintableOrigin: PAIR(180, 189)
  152. }
  153. *case: AUTO
  154. {
  155. *PrintableArea: PAIR(5760, 2758)
  156. *PrintableOrigin: PAIR(180, 108)
  157. *switch: Resolution
  158. {
  159. *case: Option1
  160. {
  161. *PrintableArea: PAIR(5760, 2757)
  162. }
  163. *case: Option2
  164. {
  165. *PrintableArea: PAIR(5760, 2757)
  166. }
  167. }
  168. }
  169. }
  170. }
  171. *Option: A4
  172. {
  173. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  174. *Command: CmdSelect
  175. {
  176. *Order: DOC_SETUP.8
  177. *Cmd: "<1B>2<1B>CF"
  178. }
  179. *switch: InputBin
  180. {
  181. *case: TRACTOR
  182. {
  183. *PrintableArea: PAIR(5760, 2525)
  184. *PrintableOrigin: PAIR(180, 0)
  185. *switch: Resolution
  186. {
  187. *case: Option1
  188. {
  189. *PrintableArea: PAIR(5760, 2523)
  190. }
  191. *case: Option2
  192. {
  193. *PrintableArea: PAIR(5760, 2523)
  194. }
  195. }
  196. }
  197. *case: MANUAL
  198. {
  199. *PrintableArea: PAIR(5760, 2147)
  200. *PrintableOrigin: PAIR(180, 189)
  201. *switch: Resolution
  202. {
  203. *case: Option1
  204. {
  205. *PrintableArea: PAIR(5760, 2145)
  206. }
  207. *case: Option2
  208. {
  209. *PrintableArea: PAIR(5760, 2145)
  210. }
  211. }
  212. }
  213. *case: AUTO
  214. {
  215. *PrintableArea: PAIR(5760, 2259)
  216. *PrintableOrigin: PAIR(180, 108)
  217. }
  218. }
  219. }
  220. *Option: B5
  221. {
  222. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  223. *Command: CmdSelect
  224. {
  225. *Order: DOC_SETUP.8
  226. *Cmd: "<1B>2<1B>C%<"
  227. }
  228. *switch: InputBin
  229. {
  230. *case: TRACTOR
  231. {
  232. *PrintableArea: PAIR(4982, 2186)
  233. *PrintableOrigin: PAIR(180, 0)
  234. *switch: Resolution
  235. {
  236. *case: Option1
  237. {
  238. *PrintableArea: PAIR(4980, 2184)
  239. }
  240. *case: Option2
  241. {
  242. *PrintableArea: PAIR(4980, 2184)
  243. }
  244. *case: Option3
  245. {
  246. *PrintableArea: PAIR(4980, 2186)
  247. }
  248. }
  249. }
  250. *case: MANUAL
  251. {
  252. *PrintableArea: PAIR(4982, 1808)
  253. *PrintableOrigin: PAIR(180, 189)
  254. *switch: Resolution
  255. {
  256. *case: Option1
  257. {
  258. *PrintableArea: PAIR(4980, 1806)
  259. }
  260. *case: Option2
  261. {
  262. *PrintableArea: PAIR(4980, 1806)
  263. }
  264. *case: Option3
  265. {
  266. *PrintableArea: PAIR(4980, 1808)
  267. }
  268. }
  269. }
  270. *case: AUTO
  271. {
  272. *PrintableArea: PAIR(4982, 1920)
  273. *PrintableOrigin: PAIR(180, 108)
  274. *switch: Resolution
  275. {
  276. *case: Option1
  277. {
  278. *PrintableArea: PAIR(4980, 1920)
  279. }
  280. *case: Option2
  281. {
  282. *PrintableArea: PAIR(4980, 1920)
  283. }
  284. *case: Option3
  285. {
  286. *PrintableArea: PAIR(4980, 1920)
  287. }
  288. }
  289. }
  290. }
  291. }
  292. *Option: Option5
  293. {
  294. *rcNameID: 259
  295. *PageDimensions: PAIR(6120, 2592)
  296. *Command: CmdSelect
  297. {
  298. *Order: DOC_SETUP.8
  299. *Cmd: "<1B>C<000C>"
  300. }
  301. *switch: InputBin
  302. {
  303. *case: TRACTOR
  304. {
  305. *PrintableArea: PAIR(5760, 2592)
  306. *PrintableOrigin: PAIR(180, 0)
  307. }
  308. *case: MANUAL
  309. {
  310. *PrintableArea: PAIR(5760, 2214)
  311. *PrintableOrigin: PAIR(180, 189)
  312. }
  313. *case: AUTO
  314. {
  315. *PrintableArea: PAIR(5760, 2326)
  316. *PrintableOrigin: PAIR(180, 108)
  317. *switch: Resolution
  318. {
  319. *case: Option1
  320. {
  321. *PrintableArea: PAIR(5760, 2325)
  322. }
  323. *case: Option2
  324. {
  325. *PrintableArea: PAIR(5760, 2325)
  326. }
  327. }
  328. }
  329. }
  330. }
  331. *Option: Option6
  332. {
  333. *rcNameID: 260
  334. *PageDimensions: PAIR(6120, 2592)
  335. *Command: CmdSelect
  336. {
  337. *Order: DOC_SETUP.8
  338. *Cmd: "<1B>C<000D>"
  339. }
  340. *switch: InputBin
  341. {
  342. *case: TRACTOR
  343. {
  344. *PrintableArea: PAIR(5760, 2592)
  345. *PrintableOrigin: PAIR(180, 0)
  346. }
  347. *case: MANUAL
  348. {
  349. *PrintableArea: PAIR(5760, 2214)
  350. *PrintableOrigin: PAIR(180, 189)
  351. }
  352. *case: AUTO
  353. {
  354. *PrintableArea: PAIR(5760, 2326)
  355. *PrintableOrigin: PAIR(180, 108)
  356. *switch: Resolution
  357. {
  358. *case: Option1
  359. {
  360. *PrintableArea: PAIR(5760, 2325)
  361. }
  362. *case: Option2
  363. {
  364. *PrintableArea: PAIR(5760, 2325)
  365. }
  366. }
  367. }
  368. }
  369. }
  370. *Option: Option7
  371. {
  372. *rcNameID: 261
  373. *PageDimensions: PAIR(6235, 935)
  374. *Command: CmdSelect
  375. {
  376. *Order: DOC_SETUP.8
  377. *Cmd: "<1B>2<1B>C<1A>"
  378. }
  379. *switch: InputBin
  380. {
  381. *case: TRACTOR
  382. {
  383. *PrintableArea: PAIR(5760, 935)
  384. *PrintableOrigin: PAIR(180, 0)
  385. *switch: Resolution
  386. {
  387. *case: Option1
  388. {
  389. *PrintableArea: PAIR(5760, 933)
  390. }
  391. *case: Option2
  392. {
  393. *PrintableArea: PAIR(5760, 933)
  394. }
  395. }
  396. }
  397. *case: MANUAL
  398. {
  399. *PrintableArea: PAIR(5760, 557)
  400. *PrintableOrigin: PAIR(180, 189)
  401. *switch: Resolution
  402. {
  403. *case: Option1
  404. {
  405. *PrintableArea: PAIR(5760, 555)
  406. }
  407. *case: Option2
  408. {
  409. *PrintableArea: PAIR(5760, 555)
  410. }
  411. }
  412. }
  413. *case: AUTO
  414. {
  415. *PrintableArea: PAIR(5760, 669)
  416. *PrintableOrigin: PAIR(180, 108)
  417. }
  418. }
  419. }
  420. *Option: CUSTOMSIZE
  421. {
  422. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  423. *MinSize: PAIR(720, 216)
  424. *MaxSize: PAIR(6120, 4752)
  425. *MaxPrintableWidth: 5760
  426. *MinLeftMargin: 180
  427. *CenterPrintable?: FALSE
  428. *switch: InputBin
  429. {
  430. *case: TRACTOR
  431. {
  432. *TopMargin: 0
  433. *BottomMargin: 0
  434. }
  435. *case: MANUAL
  436. {
  437. *TopMargin: 189
  438. *BottomMargin: 189
  439. }
  440. *case: AUTO
  441. {
  442. *TopMargin: 108
  443. *BottomMargin: 158
  444. }
  445. }
  446. }
  447. }
  448. *Feature: Halftone
  449. {
  450. *rcNameID: =HALFTONING_DISPLAY
  451. *DefaultOption: HT_PATSIZE_AUTO
  452. *Option: HT_PATSIZE_AUTO
  453. {
  454. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  455. }
  456. *Ifdef: WINNT_50
  457. *Option: HT_PATSIZE_SUPERCELL_M
  458. {
  459. *rcNameID: =HT_SUPERCELL_DISPLAY
  460. }
  461. *Endif:
  462. *Option: HT_PATSIZE_6x6_M
  463. {
  464. *rcNameID: =HT_DITHER6X6_DISPLAY
  465. }
  466. *Option: HT_PATSIZE_8x8_M
  467. {
  468. *rcNameID: =HT_DITHER8X8_DISPLAY
  469. }
  470. }
  471. *Command: CmdStartDoc
  472. {
  473. *Order: DOC_SETUP.1
  474. *Cmd: "<181B>6<121B>W<00>"
  475. }
  476. *Command: CmdStartPage
  477. {
  478. *Order: PAGE_SETUP.1
  479. *Cmd: "<0D>"
  480. }
  481. *Command: CmdEndJob
  482. {
  483. *Order: JOB_FINISH.1
  484. *Cmd: "<1B>@"
  485. }
  486. *RotateCoordinate?: FALSE
  487. *RotateRaster?: FALSE
  488. *RotateFont?: FALSE
  489. *switch: Orientation
  490. {
  491. *case: PORTRAIT
  492. {
  493. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_RA_ABLE)
  494. }
  495. *case: LANDSCAPE_CC270
  496. {
  497. *TextCaps: LIST(TC_RA_ABLE)
  498. }
  499. }
  500. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  501. *YMoveAttributes: LIST(SEND_CR_FIRST)
  502. *YMoveThreshold: *
  503. *YMoveUnit: 216
  504. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat(DestYRel )} }
  505. *Command: CmdCR { *Cmd : "<0D>" }
  506. *Command: CmdLF { *Cmd : "<0A>" }
  507. *Command: CmdFF { *Cmd : "<0C>" }
  508. *Command: CmdBackSpace { *Cmd : "<08>" }
  509. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  510. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  511. *EjectPageWithFF?: FALSE
  512. *switch: InputBin
  513. {
  514. *case: MANUAL
  515. {
  516. *EjectPageWithFF?: TRUE
  517. }
  518. *case: AUTO
  519. {
  520. *EjectPageWithFF?: TRUE
  521. }
  522. }
  523. *OutputDataFormat: V_BYTE
  524. *OptimizeLeftBound?: FALSE
  525. *CursorXAfterSendBlockData: AT_GRXDATA_END
  526. *CursorYAfterSendBlockData: NO_MOVE
  527. *DefaultFont: 58
  528. *DefaultCTT: 1
  529. *switch: Orientation
  530. {
  531. *case: PORTRAIT
  532. {
  533. *DeviceFonts: LIST(56,57,58,59,64,65,66,67,68,69)
  534. }
  535. *case: LANDSCAPE_CC270
  536. {
  537. *DeviceFonts: LIST()
  538. }
  539. }
  540. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  541. *Command: CmdBoldOff { *Cmd : "<1B>H" }