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.

439 lines
12 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.0"
  7. *GPDFileName: "OKD192P.GPD"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Okidata ML 193 Plus"
  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(11880, 1584)
  108. *PrintableOrigin: PAIR(360, 0)
  109. }
  110. *case: AUTO
  111. {
  112. *PrintableArea: PAIR(11880, 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(11880, 2016)
  130. *PrintableOrigin: PAIR(360, 0)
  131. }
  132. *case: AUTO
  133. {
  134. *PrintableArea: PAIR(11880, 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(11549, 1683)
  147. *PrintableOrigin: PAIR(360, 0)
  148. *switch: Resolution
  149. {
  150. *case: Option1
  151. {
  152. *PrintableArea: PAIR(11545, 1683)
  153. }
  154. *case: Option2
  155. {
  156. *PrintableArea: PAIR(11540, 1683)
  157. }
  158. *case: Option3
  159. {
  160. *PrintableArea: PAIR(11540, 1682)
  161. }
  162. }
  163. }
  164. *case: AUTO
  165. {
  166. *PrintableArea: PAIR(11549, 1323)
  167. *PrintableOrigin: PAIR(360, 144)
  168. *switch: Resolution
  169. {
  170. *case: Option1
  171. {
  172. *PrintableArea: PAIR(11545, 1323)
  173. }
  174. *case: Option2
  175. {
  176. *PrintableArea: PAIR(11540, 1323)
  177. }
  178. *case: Option3
  179. {
  180. *PrintableArea: PAIR(11540, 1322)
  181. }
  182. }
  183. }
  184. }
  185. }
  186. *Option: B5
  187. {
  188. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  189. *switch: InputBin
  190. {
  191. *case: TRACTOR
  192. {
  193. *PrintableArea: PAIR(9965, 1457)
  194. *PrintableOrigin: PAIR(360, 0)
  195. *switch: Resolution
  196. {
  197. *case: Option2
  198. {
  199. *PrintableArea: PAIR(9960, 1457)
  200. }
  201. *case: Option3
  202. {
  203. *PrintableArea: PAIR(9960, 1456)
  204. }
  205. }
  206. }
  207. *case: AUTO
  208. {
  209. *PrintableArea: PAIR(9965, 1097)
  210. *PrintableOrigin: PAIR(360, 144)
  211. *switch: Resolution
  212. {
  213. *case: Option2
  214. {
  215. *PrintableArea: PAIR(9960, 1097)
  216. }
  217. *case: Option3
  218. {
  219. *PrintableArea: PAIR(9960, 1096)
  220. }
  221. }
  222. }
  223. }
  224. }
  225. *Option: CUSTOMSIZE
  226. {
  227. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  228. *MinSize: PAIR(4320, 144)
  229. *MaxSize: PAIR(23040, 32767)
  230. *MaxPrintableWidth: 19580
  231. *MinLeftMargin: 0
  232. *CenterPrintable?: FALSE
  233. *switch: InputBin
  234. {
  235. *case: TRACTOR
  236. {
  237. *TopMargin: 0
  238. *BottomMargin: 0
  239. }
  240. *case: AUTO
  241. {
  242. *TopMargin: 144
  243. *BottomMargin: 216
  244. }
  245. }
  246. }
  247. *Option: 11X17
  248. {
  249. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  250. *switch: InputBin
  251. {
  252. *case: TRACTOR
  253. {
  254. *PrintableArea: PAIR(15480, 2448)
  255. *PrintableOrigin: PAIR(360, 0)
  256. }
  257. *case: AUTO
  258. {
  259. *PrintableArea: PAIR(15480, 2088)
  260. *PrintableOrigin: PAIR(360, 144)
  261. }
  262. }
  263. }
  264. *Option: ENV_10
  265. {
  266. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  267. *switch: InputBin
  268. {
  269. *case: TRACTOR
  270. {
  271. *PrintableArea: PAIR(5587, 1368)
  272. *PrintableOrigin: PAIR(360, 0)
  273. *switch: Resolution
  274. {
  275. *case: Option1
  276. {
  277. *PrintableArea: PAIR(5585, 1368)
  278. }
  279. *case: Option2
  280. {
  281. *PrintableArea: PAIR(5580, 1368)
  282. }
  283. *case: Option3
  284. {
  285. *PrintableArea: PAIR(5580, 1368)
  286. }
  287. }
  288. }
  289. *case: AUTO
  290. {
  291. *PrintableArea: PAIR(5587, 1008)
  292. *PrintableOrigin: PAIR(360, 144)
  293. *switch: Resolution
  294. {
  295. *case: Option1
  296. {
  297. *PrintableArea: PAIR(5585, 1008)
  298. }
  299. *case: Option2
  300. {
  301. *PrintableArea: PAIR(5580, 1008)
  302. }
  303. *case: Option3
  304. {
  305. *PrintableArea: PAIR(5580, 1008)
  306. }
  307. }
  308. }
  309. }
  310. }
  311. }
  312. *Feature: PrintQuality
  313. {
  314. *rcNameID: =TEXT_QUALITY_DISPLAY
  315. *DefaultOption: LETTER_QUALITY
  316. *Option: LETTER_QUALITY
  317. {
  318. *rcNameID: =LETTER_QUALITY_DISPLAY
  319. *Command: CmdSelect
  320. {
  321. *Order: DOC_SETUP.6
  322. *Cmd: "<1B>1"
  323. }
  324. }
  325. *Option: NEAR_LETTER_QUALITY
  326. {
  327. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  328. *Command: CmdSelect
  329. {
  330. *Order: DOC_SETUP.6
  331. *Cmd: "<1B>0"
  332. }
  333. }
  334. *Option: DRAFT_QUALITY
  335. {
  336. *rcNameID: =DRAFT_QUALITY_DISPLAY
  337. *Command: CmdSelect
  338. {
  339. *Order: DOC_SETUP.6
  340. *Cmd: "<1B>#0"
  341. }
  342. }
  343. }
  344. *Feature: Halftone
  345. {
  346. *rcNameID: =HALFTONING_DISPLAY
  347. *DefaultOption: HT_PATSIZE_AUTO
  348. *Option: HT_PATSIZE_AUTO
  349. {
  350. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  351. }
  352. *Ifdef: WINNT_50
  353. *Option: HT_PATSIZE_SUPERCELL_M
  354. {
  355. *rcNameID: =HT_SUPERCELL_DISPLAY
  356. }
  357. *Endif:
  358. *Option: HT_PATSIZE_6x6_M
  359. {
  360. *rcNameID: =HT_DITHER6X6_DISPLAY
  361. }
  362. *Option: HT_PATSIZE_8x8_M
  363. {
  364. *rcNameID: =HT_DITHER8X8_DISPLAY
  365. }
  366. }
  367. *Command: CmdStartDoc
  368. {
  369. *Order: DOC_SETUP.1
  370. *Cmd: "<181B>!2<1B>=<1C>"
  371. }
  372. *Command: CmdEndJob
  373. {
  374. *Order: JOB_FINISH.1
  375. *Cmd: "<0D1B18>"
  376. }
  377. *RotateCoordinate?: FALSE
  378. *RotateRaster?: FALSE
  379. *RotateFont?: FALSE
  380. *switch: Orientation
  381. {
  382. *case: PORTRAIT
  383. {
  384. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  385. }
  386. *case: LANDSCAPE_CC270
  387. {
  388. *TextCaps: LIST(TC_RA_ABLE)
  389. }
  390. }
  391. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  392. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  393. *MaxLineSpacing: 127
  394. *XMoveThreshold: 0
  395. *YMoveThreshold: *
  396. *XMoveUnit: 120
  397. *YMoveUnit: 144
  398. *Command: CmdXMoveAbsolute { *Cmd : "<1E1B>%%B" %4d{(DestX / 12) } }
  399. *Command: CmdYMoveRelDown { *Cmd : "<1B>%%5" %c[0,127]{max_repeat(DestYRel )} }
  400. *Command: CmdSetLineSpacing { *Cmd : "<1B>%%9" %c[0,127]{LinefeedSpacing } }
  401. *Command: CmdCR { *Cmd : "<0D1B>%%B0060" }
  402. *Command: CmdLF { *Cmd : "<0A>" }
  403. *Command: CmdFF { *Cmd : "<0C>" }
  404. *Command: CmdUniDirectionOn { *Cmd : "<1B>-" }
  405. *Command: CmdUniDirectionOff { *Cmd : "<1B>=" }
  406. *EjectPageWithFF?: FALSE
  407. *switch: InputBin
  408. {
  409. *case: AUTO
  410. {
  411. *EjectPageWithFF?: TRUE
  412. }
  413. }
  414. *OutputDataFormat: V_BYTE
  415. *OptimizeLeftBound?: TRUE
  416. *CursorXAfterSendBlockData: AT_GRXDATA_END
  417. *CursorYAfterSendBlockData: NO_MOVE
  418. *DefaultFont: 4
  419. *DefaultCTT: -1
  420. *CharPosition: BASELINE
  421. *switch: Orientation
  422. {
  423. *case: PORTRAIT
  424. {
  425. *DeviceFonts: LIST(1,2,3,4,5,6)
  426. }
  427. *case: LANDSCAPE_CC270
  428. {
  429. *DeviceFonts: LIST()
  430. }
  431. }
  432. *Command: CmdBoldOn { *Cmd : "<1B>T" }
  433. *Command: CmdBoldOff { *Cmd : "<1B>I" }
  434. *Command: CmdItalicOn { *Cmd : "<1B>!/" }
  435. *Command: CmdItalicOff { *Cmd : "<1B>!*" }
  436. *Command: CmdUnderlineOn { *Cmd : "<1B>C" }
  437. *Command: CmdUnderlineOff { *Cmd : "<1B>D" }
  438. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>Y" }
  439. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>Z" }