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.

406 lines
10 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.0"
  7. *GPDFileName: "OKD192.GPD"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Okidata ML 192"
  10. *MasterUnits: PAIR(1440, 144)
  11. *ResourceDLL: "oki9res.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.7
  40. *Cmd: "<1B>S"
  41. }
  42. }
  43. }
  44. *Feature: Resolution
  45. {
  46. *rcNameID: =RESOLUTION_DISPLAY
  47. *DefaultOption: Option1
  48. *Option: Option1
  49. {
  50. *Name: "288 x 144 " =DOTS_PER_INCH
  51. *DPI: PAIR(288, 144)
  52. *TextDPI: PAIR(288, 144)
  53. *PinsPerLogPass: 16
  54. *PinsPerPhysPass: 8
  55. *RequireUniDir?: TRUE
  56. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  57. EXTERN_GLOBAL: *TextYOffset: 14
  58. *SpotDiameter: 160
  59. *Command: CmdSendBlockData { *Cmd : "<1C1B>!0<1B>*rP:<03>" }
  60. *Command: CmdEndBlockData { *Cmd : "<03021B>!2" }
  61. }
  62. *Option: Option2
  63. {
  64. *Name: "144 x 144 " =DOTS_PER_INCH
  65. *DPI: PAIR(144, 144)
  66. *TextDPI: PAIR(144, 144)
  67. *PinsPerLogPass: 16
  68. *PinsPerPhysPass: 8
  69. *RequireUniDir?: TRUE
  70. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  71. EXTERN_GLOBAL: *TextYOffset: 14
  72. *SpotDiameter: 150
  73. *Command: CmdSendBlockData { *Cmd : "<1C1B>!0<1B>*jP:<03>" }
  74. *Command: CmdEndBlockData { *Cmd : "<03021B>!2" }
  75. }
  76. *Option: Option3
  77. {
  78. *Name: "72 x 72 " =DOTS_PER_INCH
  79. *DPI: PAIR(72, 72)
  80. *TextDPI: PAIR(72, 72)
  81. *PinsPerLogPass: 8
  82. *PinsPerPhysPass: 8
  83. *RequireUniDir?: TRUE
  84. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  85. EXTERN_GLOBAL: *TextYOffset: 14
  86. *SpotDiameter: 120
  87. *Command: CmdSendBlockData { *Cmd : "<1C1B>!0<1B>*fP:<03>" }
  88. *Command: CmdEndBlockData { *Cmd : "<03021B>!2" }
  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>G22"
  102. }
  103. *switch: InputBin
  104. {
  105. *case: TRACTOR
  106. {
  107. *PrintableArea: PAIR(11520, 1584)
  108. *PrintableOrigin: PAIR(360, 0)
  109. }
  110. *case: AUTO
  111. {
  112. *PrintableArea: PAIR(11520, 1224)
  113. *PrintableOrigin: PAIR(360, 144)
  114. }
  115. }
  116. }
  117. *Option: LEGAL
  118. {
  119. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  120. *Command: CmdSelect
  121. {
  122. *Order: DOC_SETUP.8
  123. *Cmd: "<1B>G28"
  124. }
  125. *switch: InputBin
  126. {
  127. *case: TRACTOR
  128. {
  129. *PrintableArea: PAIR(11520, 2016)
  130. *PrintableOrigin: PAIR(360, 0)
  131. }
  132. *case: AUTO
  133. {
  134. *PrintableArea: PAIR(11520, 1656)
  135. *PrintableOrigin: PAIR(360, 144)
  136. }
  137. }
  138. }
  139. *Option: A4
  140. {
  141. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  142. *switch: InputBin
  143. {
  144. *case: TRACTOR
  145. {
  146. *PrintableArea: PAIR(11520, 1683)
  147. *PrintableOrigin: PAIR(360, 0)
  148. *switch: Resolution
  149. {
  150. *case: Option3
  151. {
  152. *PrintableArea: PAIR(11520, 1682)
  153. }
  154. }
  155. }
  156. *case: AUTO
  157. {
  158. *PrintableArea: PAIR(11520, 1323)
  159. *PrintableOrigin: PAIR(360, 144)
  160. *switch: Resolution
  161. {
  162. *case: Option3
  163. {
  164. *PrintableArea: PAIR(11520, 1322)
  165. }
  166. }
  167. }
  168. }
  169. }
  170. *Option: B5
  171. {
  172. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  173. *switch: InputBin
  174. {
  175. *case: TRACTOR
  176. {
  177. *PrintableArea: PAIR(9965, 1457)
  178. *PrintableOrigin: PAIR(360, 0)
  179. *switch: Resolution
  180. {
  181. *case: Option2
  182. {
  183. *PrintableArea: PAIR(9960, 1457)
  184. }
  185. *case: Option3
  186. {
  187. *PrintableArea: PAIR(9960, 1456)
  188. }
  189. }
  190. }
  191. *case: AUTO
  192. {
  193. *PrintableArea: PAIR(9965, 1097)
  194. *PrintableOrigin: PAIR(360, 144)
  195. *switch: Resolution
  196. {
  197. *case: Option2
  198. {
  199. *PrintableArea: PAIR(9960, 1097)
  200. }
  201. *case: Option3
  202. {
  203. *PrintableArea: PAIR(9960, 1096)
  204. }
  205. }
  206. }
  207. }
  208. }
  209. *Option: CUSTOMSIZE
  210. {
  211. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  212. *MinSize: PAIR(4320, 144)
  213. *MaxSize: PAIR(14400, 32767)
  214. *MaxPrintableWidth: 11520
  215. *MinLeftMargin: 0
  216. *CenterPrintable?: FALSE
  217. *switch: InputBin
  218. {
  219. *case: TRACTOR
  220. {
  221. *TopMargin: 0
  222. *BottomMargin: 0
  223. }
  224. *case: AUTO
  225. {
  226. *TopMargin: 144
  227. *BottomMargin: 216
  228. }
  229. }
  230. }
  231. *Option: ENV_10
  232. {
  233. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  234. *switch: InputBin
  235. {
  236. *case: TRACTOR
  237. {
  238. *PrintableArea: PAIR(5587, 1368)
  239. *PrintableOrigin: PAIR(360, 0)
  240. *switch: Resolution
  241. {
  242. *case: Option1
  243. {
  244. *PrintableArea: PAIR(5585, 1368)
  245. }
  246. *case: Option2
  247. {
  248. *PrintableArea: PAIR(5580, 1368)
  249. }
  250. *case: Option3
  251. {
  252. *PrintableArea: PAIR(5580, 1368)
  253. }
  254. }
  255. }
  256. *case: AUTO
  257. {
  258. *PrintableArea: PAIR(5587, 1008)
  259. *PrintableOrigin: PAIR(360, 144)
  260. *switch: Resolution
  261. {
  262. *case: Option1
  263. {
  264. *PrintableArea: PAIR(5585, 1008)
  265. }
  266. *case: Option2
  267. {
  268. *PrintableArea: PAIR(5580, 1008)
  269. }
  270. *case: Option3
  271. {
  272. *PrintableArea: PAIR(5580, 1008)
  273. }
  274. }
  275. }
  276. }
  277. }
  278. }
  279. *Feature: PrintQuality
  280. {
  281. *rcNameID: =TEXT_QUALITY_DISPLAY
  282. *DefaultOption: LETTER_QUALITY
  283. *Option: LETTER_QUALITY
  284. {
  285. *rcNameID: =LETTER_QUALITY_DISPLAY
  286. *Command: CmdSelect
  287. {
  288. *Order: DOC_SETUP.6
  289. *Cmd: "<1B>1"
  290. }
  291. }
  292. *Option: NEAR_LETTER_QUALITY
  293. {
  294. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  295. *Command: CmdSelect
  296. {
  297. *Order: DOC_SETUP.6
  298. *Cmd: "<1B>0"
  299. }
  300. }
  301. *Option: DRAFT_QUALITY
  302. {
  303. *rcNameID: =DRAFT_QUALITY_DISPLAY
  304. *Command: CmdSelect
  305. {
  306. *Order: DOC_SETUP.6
  307. *Cmd: "<1B>#0"
  308. }
  309. }
  310. }
  311. *Feature: Halftone
  312. {
  313. *rcNameID: =HALFTONING_DISPLAY
  314. *DefaultOption: HT_PATSIZE_AUTO
  315. *Option: HT_PATSIZE_AUTO
  316. {
  317. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  318. }
  319. *Ifdef: WINNT_50
  320. *Option: HT_PATSIZE_SUPERCELL_M
  321. {
  322. *rcNameID: =HT_SUPERCELL_DISPLAY
  323. }
  324. *Endif:
  325. *Option: HT_PATSIZE_6x6_M
  326. {
  327. *rcNameID: =HT_DITHER6X6_DISPLAY
  328. }
  329. *Option: HT_PATSIZE_8x8_M
  330. {
  331. *rcNameID: =HT_DITHER8X8_DISPLAY
  332. }
  333. }
  334. *Command: CmdStartDoc
  335. {
  336. *Order: DOC_SETUP.1
  337. *Cmd: "<181B>!2<1B>=<1C>"
  338. }
  339. *Command: CmdEndJob
  340. {
  341. *Order: JOB_FINISH.1
  342. *Cmd: "<0D1B18>"
  343. }
  344. *RotateCoordinate?: FALSE
  345. *RotateRaster?: FALSE
  346. *RotateFont?: FALSE
  347. *switch: Orientation
  348. {
  349. *case: PORTRAIT
  350. {
  351. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  352. }
  353. *case: LANDSCAPE_CC270
  354. {
  355. *TextCaps: LIST(TC_RA_ABLE)
  356. }
  357. }
  358. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  359. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  360. *MaxLineSpacing: 127
  361. *XMoveThreshold: 0
  362. *YMoveThreshold: *
  363. *XMoveUnit: 120
  364. *YMoveUnit: 144
  365. *Command: CmdXMoveAbsolute { *Cmd : "<1E1B>%%B" %4d{(DestX / 12) } }
  366. *Command: CmdYMoveRelDown { *Cmd : "<1B>%%5" %c[0,127]{max_repeat(DestYRel )} }
  367. *Command: CmdSetLineSpacing { *Cmd : "<1B>%%9" %c[0,127]{LinefeedSpacing } }
  368. *Command: CmdCR { *Cmd : "<0D1B>%%B0060" }
  369. *Command: CmdLF { *Cmd : "<0A>" }
  370. *Command: CmdFF { *Cmd : "<0C>" }
  371. *Command: CmdUniDirectionOn { *Cmd : "<1B>-" }
  372. *Command: CmdUniDirectionOff { *Cmd : "<1B>=" }
  373. *EjectPageWithFF?: FALSE
  374. *switch: InputBin
  375. {
  376. *case: AUTO
  377. {
  378. *EjectPageWithFF?: TRUE
  379. }
  380. }
  381. *OutputDataFormat: V_BYTE
  382. *OptimizeLeftBound?: TRUE
  383. *CursorXAfterSendBlockData: AT_GRXDATA_END
  384. *CursorYAfterSendBlockData: NO_MOVE
  385. *DefaultFont: 4
  386. *DefaultCTT: -1
  387. *CharPosition: BASELINE
  388. *switch: Orientation
  389. {
  390. *case: PORTRAIT
  391. {
  392. *DeviceFonts: LIST(1,2,3,4,5,6)
  393. }
  394. *case: LANDSCAPE_CC270
  395. {
  396. *DeviceFonts: LIST()
  397. }
  398. }
  399. *Command: CmdBoldOn { *Cmd : "<1B>T" }
  400. *Command: CmdBoldOff { *Cmd : "<1B>I" }
  401. *Command: CmdItalicOn { *Cmd : "<1B>!/" }
  402. *Command: CmdItalicOff { *Cmd : "<1B>!*" }
  403. *Command: CmdUnderlineOn { *Cmd : "<1B>C" }
  404. *Command: CmdUnderlineOff { *Cmd : "<1B>D" }
  405. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>Y" }
  406. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>Z" }