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.

488 lines
14 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "OKML400J.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "OKI MICROLINE 400"
  11. *MasterUnits: PAIR(600, 600)
  12. *ResourceDLL: "okm4jres.dll"
  13. *PrinterType: PAGE
  14. *MaxCopies: 99
  15. *Feature: Orientation
  16. {
  17. *rcNameID: =ORIENTATION_DISPLAY
  18. *DefaultOption: PORTRAIT
  19. *Option: PORTRAIT
  20. {
  21. *rcNameID: =PORTRAIT_DISPLAY
  22. }
  23. *Option: LANDSCAPE_CC270
  24. {
  25. *rcNameID: =LANDSCAPE_DISPLAY
  26. }
  27. }
  28. *Feature: InputBin
  29. {
  30. *rcNameID: =PAPER_SOURCE_DISPLAY
  31. *DefaultOption: Option1
  32. *Option: Option1
  33. {
  34. *rcNameID: 258
  35. *Command: CmdSelect
  36. {
  37. *Order: DOC_SETUP.3
  38. *Cmd: "<1B>|<A0010001>"
  39. }
  40. }
  41. *Option: Option2
  42. {
  43. *rcNameID: 259
  44. *Command: CmdSelect
  45. {
  46. *Order: DOC_SETUP.3
  47. *Cmd: "<1B>|<A0010002>"
  48. }
  49. }
  50. *Option: Option3
  51. {
  52. *rcNameID: 260
  53. *Command: CmdSelect
  54. {
  55. *Order: DOC_SETUP.3
  56. *Cmd: "<1B>|<A0010003>"
  57. }
  58. }
  59. *Option: MANUAL
  60. {
  61. *rcNameID: =MANUAL_FEED_DISPLAY
  62. *Command: CmdSelect
  63. {
  64. *Order: DOC_SETUP.3
  65. *Cmd: "<1B>|<A0010004>"
  66. }
  67. }
  68. }
  69. *Feature: Resolution
  70. {
  71. *rcNameID: =RESOLUTION_DISPLAY
  72. *DefaultOption: Option1
  73. *Option: Option1
  74. {
  75. *Name: "300 x 300 dots per inch"
  76. *DPI: PAIR(300, 300)
  77. *TextDPI: PAIR(300, 300)
  78. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  79. *SpotDiameter: 100
  80. *Command: CmdSendBlockData { *Cmd : "<1B>|<A7>" %m{NumOfDataBytes} }
  81. *Command: CmdSelect
  82. {
  83. *Order: DOC_SETUP.5
  84. *Cmd: "<1B>|<A5020001>,"
  85. }
  86. }
  87. *Option: Option2
  88. {
  89. *Name: "150 x 150 dots per inch"
  90. *DPI: PAIR(150, 150)
  91. *TextDPI: PAIR(150, 150)
  92. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  93. *SpotDiameter: 100
  94. *Command: CmdSendBlockData { *Cmd : "<1B>|<A7>" %m{NumOfDataBytes} }
  95. *Command: CmdSelect
  96. {
  97. *Order: DOC_SETUP.5
  98. *Cmd: "<1B>|<A502000096>"
  99. }
  100. }
  101. *Option: Option3
  102. {
  103. *Name: "75 x 75 dots per inch"
  104. *DPI: PAIR(75, 75)
  105. *TextDPI: PAIR(75, 75)
  106. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  107. *SpotDiameter: 100
  108. *Command: CmdSendBlockData { *Cmd : "<1B>|<A7>" %m{NumOfDataBytes} }
  109. *Command: CmdSelect
  110. {
  111. *Order: DOC_SETUP.5
  112. *Cmd: "<1B>|<A5020000>K"
  113. }
  114. }
  115. }
  116. *Feature: PaperSize
  117. {
  118. *rcNameID: =PAPER_SIZE_DISPLAY
  119. *DefaultOption: A4
  120. *Option: A4
  121. {
  122. *rcNameID: =A4_DISPLAY
  123. *PrintableArea: PAIR(4720, 6776)
  124. *PrintableOrigin: PAIR(120, 120)
  125. *Command: CmdSelect
  126. {
  127. *Order: DOC_SETUP.4
  128. *Cmd: "<1B>|<A1010001>"
  129. }
  130. }
  131. *Option: A5
  132. {
  133. *rcNameID: =A5_DISPLAY
  134. *PrintableArea: PAIR(3256, 4720)
  135. *PrintableOrigin: PAIR(120, 120)
  136. *Command: CmdSelect
  137. {
  138. *Order: DOC_SETUP.4
  139. *Cmd: "<1B>|<A1010002>"
  140. }
  141. }
  142. *Option: A6
  143. {
  144. *rcNameID: =A6_DISPLAY
  145. *PrintableArea: PAIR(2240, 3256)
  146. *PrintableOrigin: PAIR(120, 120)
  147. *Command: CmdSelect
  148. {
  149. *Order: DOC_SETUP.4
  150. *Cmd: "<1B>|<A1010003>"
  151. }
  152. }
  153. *Option: B5
  154. {
  155. *rcNameID: =B5_DISPLAY
  156. *PrintableArea: PAIR(4060, 5832)
  157. *PrintableOrigin: PAIR(120, 120)
  158. *switch: Resolution
  159. {
  160. *case: Option3
  161. {
  162. *% Warning: the following printable width is adjusted (4060->4056) so it is divisible by the resolution X scale.
  163. *PrintableArea: PAIR(4056, 5832)
  164. }
  165. }
  166. *Command: CmdSelect
  167. {
  168. *Order: DOC_SETUP.4
  169. *Cmd: "<1B>|<A1010004>"
  170. }
  171. }
  172. *Option: LETTER
  173. {
  174. *rcNameID: =LETTER_DISPLAY
  175. *PrintableArea: PAIR(4860, 6360)
  176. *PrintableOrigin: PAIR(120, 120)
  177. *switch: Resolution
  178. {
  179. *case: Option3
  180. {
  181. *% Warning: the following printable width is adjusted (4860->4856) so it is divisible by the resolution X scale.
  182. *PrintableArea: PAIR(4856, 6360)
  183. }
  184. }
  185. *Command: CmdSelect
  186. {
  187. *Order: DOC_SETUP.4
  188. *Cmd: "<1B>|<A1010006>"
  189. }
  190. }
  191. *Option: EXECUTIVE
  192. {
  193. *rcNameID: =EXECUTIVE_DISPLAY
  194. *PrintableArea: PAIR(4110, 6060)
  195. *PrintableOrigin: PAIR(120, 120)
  196. *switch: Resolution
  197. {
  198. *case: Option2
  199. {
  200. *% Warning: the following printable width is adjusted (4110->4108) so it is divisible by the resolution X scale.
  201. *PrintableArea: PAIR(4108, 6060)
  202. }
  203. *case: Option3
  204. {
  205. *% Warning: the following printable width is adjusted (4110->4104) so it is divisible by the resolution X scale.
  206. *% Warning: the following printable length is adjusted (6060->6056) so it is divisible by the resolution Y scale.
  207. *PrintableArea: PAIR(4104, 6056)
  208. }
  209. }
  210. *Command: CmdSelect
  211. {
  212. *Order: DOC_SETUP.4
  213. *Cmd: "<1B>|<A1010007>"
  214. }
  215. }
  216. *Option: JAPANESE_POSTCARD
  217. {
  218. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  219. *PrintableArea: PAIR(2122, 3256)
  220. *PrintableOrigin: PAIR(120, 120)
  221. *switch: Resolution
  222. {
  223. *case: Option2
  224. {
  225. *% Warning: the following printable width is adjusted (2122->2120) so it is divisible by the resolution X scale.
  226. *PrintableArea: PAIR(2120, 3256)
  227. }
  228. *case: Option3
  229. {
  230. *% Warning: the following printable width is adjusted (2122->2120) so it is divisible by the resolution X scale.
  231. *PrintableArea: PAIR(2120, 3256)
  232. }
  233. }
  234. *Command: CmdSelect
  235. {
  236. *Order: DOC_SETUP.4
  237. *Cmd: "<1B>|<A1010008>"
  238. }
  239. }
  240. *Option: DBL_JAPANESE_POSTCARD_ROTATED
  241. {
  242. *rcNameID: =DBL_JAPANESE_POSTCARD_ROTATED_DISPLAY
  243. *PrintableArea: PAIR(3256, 4484)
  244. *PrintableOrigin: PAIR(120, 120)
  245. *switch: Resolution
  246. {
  247. *case: Option3
  248. {
  249. *% Warning: the following printable length is adjusted (4484->4480) so it is divisible by the resolution Y scale.
  250. *PrintableArea: PAIR(3256, 4480)
  251. }
  252. }
  253. *Command: CmdSelect
  254. {
  255. *Order: DOC_SETUP.4
  256. *Cmd: "<1B>|<A1010009>"
  257. }
  258. }
  259. *Option: JENV_CHOU3
  260. {
  261. *rcNameID: =JENV_CHOU3_DISPLAY
  262. *PrintableArea: PAIR(2594, 5312)
  263. *PrintableOrigin: PAIR(120, 120)
  264. *switch: Resolution
  265. {
  266. *case: Option2
  267. {
  268. *% Warning: the following printable width is adjusted (2594->2592) so it is divisible by the resolution X scale.
  269. *PrintableArea: PAIR(2592, 5312)
  270. }
  271. *case: Option3
  272. {
  273. *% Warning: the following printable width is adjusted (2594->2592) so it is divisible by the resolution X scale.
  274. *PrintableArea: PAIR(2592, 5312)
  275. }
  276. }
  277. *Command: CmdSelect
  278. {
  279. *Order: DOC_SETUP.4
  280. *Cmd: "<1B>|<A101000A>"
  281. }
  282. }
  283. *Option: JENV_CHOU4
  284. {
  285. *rcNameID: =JENV_CHOU4_DISPLAY
  286. *PrintableArea: PAIR(1886, 4602)
  287. *PrintableOrigin: PAIR(120, 120)
  288. *switch: Resolution
  289. {
  290. *case: Option2
  291. {
  292. *% Warning: the following printable width is adjusted (1886->1884) so it is divisible by the resolution X scale.
  293. *% Warning: the following printable length is adjusted (4602->4600) so it is divisible by the resolution Y scale.
  294. *PrintableArea: PAIR(1884, 4600)
  295. }
  296. *case: Option3
  297. {
  298. *% Warning: the following printable width is adjusted (1886->1880) so it is divisible by the resolution X scale.
  299. *% Warning: the following printable length is adjusted (4602->4600) so it is divisible by the resolution Y scale.
  300. *PrintableArea: PAIR(1880, 4600)
  301. }
  302. }
  303. *Command: CmdSelect
  304. {
  305. *Order: DOC_SETUP.4
  306. *Cmd: "<1B>|<A101000B>"
  307. }
  308. }
  309. *Option: JENV_YOU4
  310. {
  311. *rcNameID: =JENV_YOU4_DISPLAY
  312. *PrintableArea: PAIR(2240, 5312)
  313. *PrintableOrigin: PAIR(120, 120)
  314. *Command: CmdSelect
  315. {
  316. *Order: DOC_SETUP.4
  317. *Cmd: "<1B>|<A101000C>"
  318. }
  319. }
  320. *Option: ENV_DL
  321. {
  322. *rcNameID: =ENV_DL_DISPLAY
  323. *PrintableArea: PAIR(2358, 4956)
  324. *PrintableOrigin: PAIR(120, 120)
  325. *switch: Resolution
  326. {
  327. *case: Option2
  328. {
  329. *% Warning: the following printable width is adjusted (2358->2356) so it is divisible by the resolution X scale.
  330. *PrintableArea: PAIR(2356, 4956)
  331. }
  332. *case: Option3
  333. {
  334. *% Warning: the following printable width is adjusted (2358->2352) so it is divisible by the resolution X scale.
  335. *% Warning: the following printable length is adjusted (4956->4952) so it is divisible by the resolution Y scale.
  336. *PrintableArea: PAIR(2352, 4952)
  337. }
  338. }
  339. *Command: CmdSelect
  340. {
  341. *Order: DOC_SETUP.4
  342. *Cmd: "<1B>|<A101000E>"
  343. }
  344. }
  345. *Option: ENV_C5
  346. {
  347. *rcNameID: =ENV_C5_DISPLAY
  348. *PrintableArea: PAIR(3586, 5170)
  349. *PrintableOrigin: PAIR(120, 120)
  350. *switch: Resolution
  351. {
  352. *case: Option2
  353. {
  354. *% Warning: the following printable width is adjusted (3586->3584) so it is divisible by the resolution X scale.
  355. *% Warning: the following printable length is adjusted (5170->5168) so it is divisible by the resolution Y scale.
  356. *PrintableArea: PAIR(3584, 5168)
  357. }
  358. *case: Option3
  359. {
  360. *% Warning: the following printable width is adjusted (3586->3584) so it is divisible by the resolution X scale.
  361. *% Warning: the following printable length is adjusted (5170->5168) so it is divisible by the resolution Y scale.
  362. *PrintableArea: PAIR(3584, 5168)
  363. }
  364. }
  365. *Command: CmdSelect
  366. {
  367. *Order: DOC_SETUP.4
  368. *Cmd: "<1B>|<A101000F>"
  369. }
  370. }
  371. *Option: ENV_10
  372. {
  373. *rcNameID: =ENV_10_DISPLAY
  374. *PrintableArea: PAIR(2232, 5460)
  375. *PrintableOrigin: PAIR(120, 120)
  376. *switch: Resolution
  377. {
  378. *case: Option3
  379. {
  380. *% Warning: the following printable length is adjusted (5460->5456) so it is divisible by the resolution Y scale.
  381. *PrintableArea: PAIR(2232, 5456)
  382. }
  383. }
  384. *Command: CmdSelect
  385. {
  386. *Order: DOC_SETUP.4
  387. *Cmd: "<1B>|<A1010010>"
  388. }
  389. }
  390. }
  391. *InvalidCombination: LIST(InputBin.Option1, PaperSize.JAPANESE_POSTCARD)
  392. *InvalidCombination: LIST(InputBin.Option1, PaperSize.DBL_JAPANESE_POSTCARD_ROTATED)
  393. *InvalidCombination: LIST(InputBin.Option1, PaperSize.JENV_CHOU3)
  394. *InvalidCombination: LIST(InputBin.Option1, PaperSize.JENV_CHOU4)
  395. *InvalidCombination: LIST(InputBin.Option1, PaperSize.JENV_YOU4)
  396. *InvalidCombination: LIST(InputBin.Option1, PaperSize.ENV_DL)
  397. *InvalidCombination: LIST(InputBin.Option1, PaperSize.ENV_C5)
  398. *InvalidCombination: LIST(InputBin.Option1, PaperSize.ENV_10)
  399. *InvalidCombination: LIST(InputBin.Option2, PaperSize.A6)
  400. *InvalidCombination: LIST(InputBin.Option2, PaperSize.JAPANESE_POSTCARD)
  401. *InvalidCombination: LIST(InputBin.Option2, PaperSize.DBL_JAPANESE_POSTCARD_ROTATED)
  402. *InvalidCombination: LIST(InputBin.Option2, PaperSize.JENV_CHOU3)
  403. *InvalidCombination: LIST(InputBin.Option2, PaperSize.JENV_CHOU4)
  404. *InvalidCombination: LIST(InputBin.Option2, PaperSize.JENV_YOU4)
  405. *InvalidCombination: LIST(InputBin.Option2, PaperSize.ENV_DL)
  406. *InvalidCombination: LIST(InputBin.Option2, PaperSize.ENV_C5)
  407. *InvalidCombination: LIST(InputBin.Option2, PaperSize.ENV_10)
  408. *Feature: Halftone
  409. {
  410. *rcNameID: =HALFTONING_DISPLAY
  411. *DefaultOption: HT_PATSIZE_AUTO
  412. *Option: HT_PATSIZE_AUTO
  413. {
  414. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  415. }
  416. *Option: HT_PATSIZE_SUPERCELL_M
  417. {
  418. *rcNameID: =HT_SUPERCELL_DISPLAY
  419. }
  420. *Option: HT_PATSIZE_6x6_M
  421. {
  422. *rcNameID: =HT_DITHER6X6_DISPLAY
  423. }
  424. *Option: HT_PATSIZE_8x8_M
  425. {
  426. *rcNameID: =HT_DITHER8X8_DISPLAY
  427. }
  428. }
  429. *Feature: Memory
  430. {
  431. *rcNameID: =PRINTER_MEMORY_DISPLAY
  432. *DefaultOption: 1024KB
  433. *Option: 1024KB
  434. {
  435. *Name: "1MB"
  436. *MemoryConfigKB: PAIR(1024, 907)
  437. }
  438. *Option: 5120KB
  439. {
  440. *Name: "5MB"
  441. *MemoryConfigKB: PAIR(5120, 4700)
  442. }
  443. }
  444. *Command: CmdStartDoc
  445. {
  446. *Order: DOC_SETUP.1
  447. *Cmd: "<1B>/<F2>"
  448. }
  449. *Command: CmdEndJob
  450. {
  451. *Order: JOB_FINISH.1
  452. *Cmd: "<1B>/<FE>"
  453. }
  454. *Command: CmdCopies
  455. {
  456. *Order: DOC_SETUP.2
  457. *Cmd: "<1B>|<A20100>" %c[1,99]{NumOfCopies}
  458. }
  459. *RotateCoordinate?: FALSE
  460. *RotateRaster?: FALSE
  461. *RotateFont?: FALSE
  462. *switch: Orientation
  463. {
  464. *case: PORTRAIT
  465. {
  466. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  467. }
  468. *case: LANDSCAPE_CC270
  469. {
  470. *TextCaps: LIST(TC_RA_ABLE)
  471. }
  472. }
  473. *MemoryUsage: LIST(FONT)
  474. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  475. *YMoveThreshold: 0
  476. *YMoveUnit: 300
  477. *Command: CmdYMoveAbsolute { *Cmd : "<1B>|<A40400>" %m{(DestY / 2) }"<0000>" }
  478. *Command: CmdCR { *Cmd : "<0D>" }
  479. *Command: CmdLF { *Cmd : "<0A>" }
  480. *Command: CmdFF { *Cmd : "<0C>" }
  481. *EjectPageWithFF?: TRUE
  482. *Command: CmdEnableTIFF4 { *Cmd : "<1B>|<A6010002>" }
  483. *Command: CmdDisableCompression { *Cmd : "<1B>|<A6010000>" }
  484. *OutputDataFormat: H_BYTE
  485. *OptimizeLeftBound?: FALSE
  486. *CursorXAfterSendBlockData: AT_CURSOR_X_ORIGIN
  487. *CursorYAfterSendBlockData: AUTO_INCREMENT
  488. *DefaultCTT: -1