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.

302 lines
8.1 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "OK608A2J.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "OKI OPP6008AII"
  11. *MasterUnits: PAIR(360, 360)
  12. *ResourceDLL: "OKEPJRES.DLL"
  13. *PrinterType: SERIAL
  14. *MaxCopies: 99
  15. *FontCartSlots: 1
  16. *Feature: Orientation
  17. {
  18. *rcNameID: =ORIENTATION_DISPLAY
  19. *DefaultOption: PORTRAIT
  20. *Option: PORTRAIT
  21. {
  22. *rcNameID: =PORTRAIT_DISPLAY
  23. *Command: CmdSelect
  24. {
  25. *Order: DOC_SETUP.2
  26. *Cmd: "<1B>|<80010000>"
  27. }
  28. }
  29. *Option: LANDSCAPE_CC270
  30. {
  31. *rcNameID: =LANDSCAPE_DISPLAY
  32. *Command: CmdSelect
  33. {
  34. *Order: DOC_SETUP.2
  35. *Cmd: "<1B>|<80010001>"
  36. }
  37. }
  38. }
  39. *Feature: InputBin
  40. {
  41. *rcNameID: =PAPER_SOURCE_DISPLAY
  42. *DefaultOption: Option1
  43. *Option: Option1
  44. {
  45. *rcNameID: 275
  46. *Command: CmdSelect
  47. {
  48. *Order: DOC_SETUP.7
  49. *Cmd: "<1B19>4<1B19>1"
  50. }
  51. }
  52. *Option: Option2
  53. {
  54. *rcNameID: 276
  55. *Command: CmdSelect
  56. {
  57. *Order: DOC_SETUP.7
  58. *Cmd: "<1B19>4<1B19>2"
  59. }
  60. }
  61. *Option: MANUAL
  62. {
  63. *rcNameID: =MANUAL_FEED_DISPLAY
  64. *Command: CmdSelect
  65. {
  66. *Order: DOC_SETUP.7
  67. *Cmd: "<1B19>0"
  68. }
  69. }
  70. }
  71. *Feature: Resolution
  72. {
  73. *rcNameID: =RESOLUTION_DISPLAY
  74. *DefaultOption: Option1
  75. *Option: Option1
  76. {
  77. *Name: "180 x 180 dots per inch"
  78. *DPI: PAIR(180, 180)
  79. *TextDPI: PAIR(180, 180)
  80. *PinsPerLogPass: 24
  81. *PinsPerPhysPass: 24
  82. *MinStripBlankPixels: 360
  83. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  84. *SpotDiameter: 140
  85. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  86. }
  87. }
  88. *Feature: PaperSize
  89. {
  90. *rcNameID: =PAPER_SIZE_DISPLAY
  91. *DefaultOption: A4
  92. *Option: A4
  93. {
  94. *rcNameID: =A4_DISPLAY
  95. *PrintableArea: PAIR(2705, 3930)
  96. *PrintableOrigin: PAIR(136, 66)
  97. *switch: Resolution
  98. {
  99. *case: Option1
  100. {
  101. *% Warning: the following printable width is adjusted (2705->2704) so it is divisible by the resolution X scale.
  102. *PrintableArea: PAIR(2704, 3930)
  103. }
  104. }
  105. *Command: CmdSelect
  106. {
  107. *Order: DOC_SETUP.8
  108. *Cmd: "<1B>|<87010000>"
  109. }
  110. }
  111. *Option: A5
  112. {
  113. *rcNameID: =A5_DISPLAY
  114. *PrintableArea: PAIR(1819, 2699)
  115. *PrintableOrigin: PAIR(140, 66)
  116. *switch: Resolution
  117. {
  118. *case: Option1
  119. {
  120. *% Warning: the following printable width is adjusted (1819->1818) so it is divisible by the resolution X scale.
  121. *% Warning: the following printable length is adjusted (2699->2698) so it is divisible by the resolution Y scale.
  122. *PrintableArea: PAIR(1818, 2698)
  123. }
  124. }
  125. *Command: CmdSelect
  126. {
  127. *Order: DOC_SETUP.8
  128. *Cmd: "<1B>2<1B>C4"
  129. }
  130. }
  131. *Option: B4
  132. {
  133. *rcNameID: =B4_DISPLAY
  134. *PrintableArea: PAIR(3371, 4881)
  135. *PrintableOrigin: PAIR(136, 66)
  136. *switch: Resolution
  137. {
  138. *case: Option1
  139. {
  140. *% Warning: the following printable width is adjusted (3371->3370) so it is divisible by the resolution X scale.
  141. *% Warning: the following printable length is adjusted (4881->4880) so it is divisible by the resolution Y scale.
  142. *PrintableArea: PAIR(3370, 4880)
  143. }
  144. }
  145. *Command: CmdSelect
  146. {
  147. *Order: DOC_SETUP.8
  148. *Cmd: "<1B>|<87010000>"
  149. }
  150. }
  151. *Option: B5
  152. {
  153. *rcNameID: =B5_DISPLAY
  154. *PrintableArea: PAIR(2355, 3409)
  155. *PrintableOrigin: PAIR(90, 66)
  156. *switch: Resolution
  157. {
  158. *case: Option1
  159. {
  160. *% Warning: the following printable width is adjusted (2355->2354) so it is divisible by the resolution X scale.
  161. *% Warning: the following printable length is adjusted (3409->3408) so it is divisible by the resolution Y scale.
  162. *PrintableArea: PAIR(2354, 3408)
  163. }
  164. }
  165. *Command: CmdSelect
  166. {
  167. *Order: DOC_SETUP.8
  168. *Cmd: "<1B>|<87010000>"
  169. }
  170. }
  171. *Option: JAPANESE_POSTCARD
  172. {
  173. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  174. *PrintableArea: PAIR(1086, 1743)
  175. *PrintableOrigin: PAIR(196, 66)
  176. *switch: Resolution
  177. {
  178. *case: Option1
  179. {
  180. *% Warning: the following printable length is adjusted (1743->1742) so it is divisible by the resolution Y scale.
  181. *PrintableArea: PAIR(1086, 1742)
  182. }
  183. }
  184. *Command: CmdSelect
  185. {
  186. *Order: DOC_SETUP.8
  187. *Cmd: "<1B>|<87010000>"
  188. }
  189. }
  190. *Option: CUSTOMSIZE
  191. {
  192. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  193. *MinSize: PAIR(1192, 1816)
  194. *MaxSize: PAIR(3960, 4896)
  195. *MaxPrintableWidth: 3960
  196. *MinLeftMargin: 0
  197. *CenterPrintable?: FALSE
  198. *CustCursorOriginX: %d{70}
  199. *CustCursorOriginY: %d{66}
  200. *CustPrintableOriginX: %d{70}
  201. *CustPrintableOriginY: %d{66}
  202. *CustPrintableSizeX: %d{PhysPaperWidth - (70+70)}
  203. *CustPrintableSizeY: %d{PhysPaperLength - (66+168)}
  204. *Command: CmdSelect
  205. {
  206. *Order: DOC_SETUP.8
  207. *Cmd: "<1B>2<1B>C" %c[0,127]{(PhysPaperLength / 60) }
  208. }
  209. }
  210. }
  211. *InvalidCombination: LIST(InputBin.Option1, PaperSize.CUSTOMSIZE)
  212. *InvalidCombination: LIST(InputBin.Option2, PaperSize.CUSTOMSIZE)
  213. *Feature: Halftone
  214. {
  215. *rcNameID: =HALFTONING_DISPLAY
  216. *DefaultOption: HT_PATSIZE_AUTO
  217. *Option: HT_PATSIZE_AUTO
  218. {
  219. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  220. }
  221. *Option: HT_PATSIZE_SUPERCELL_M
  222. {
  223. *rcNameID: =HT_SUPERCELL_DISPLAY
  224. }
  225. *Option: HT_PATSIZE_6x6_M
  226. {
  227. *rcNameID: =HT_DITHER6X6_DISPLAY
  228. }
  229. *Option: HT_PATSIZE_8x8_M
  230. {
  231. *rcNameID: =HT_DITHER8X8_DISPLAY
  232. }
  233. }
  234. *Command: CmdStartDoc
  235. {
  236. *Order: DOC_SETUP.1
  237. *Cmd: "<1B>S<1B1B>S<1C1B>@<181B>t<011B>R<00>"
  238. }
  239. *Command: CmdStartPage
  240. {
  241. *Order: PAGE_SETUP.1
  242. *Cmd: "<0D>"
  243. }
  244. *Command: CmdEndJob
  245. {
  246. *Order: JOB_FINISH.1
  247. *Cmd: "<1B>S<1B1B>SK"
  248. }
  249. *Command: CmdCopies
  250. {
  251. *Order: DOC_SETUP.3
  252. *Cmd: "<1B>|<830200>" %c[1,99]{NumOfCopies}"<01>"
  253. }
  254. *RotateCoordinate?: FALSE
  255. *RotateRaster?: TRUE
  256. *RotateFont?: TRUE
  257. *switch: Orientation
  258. {
  259. *case: PORTRAIT
  260. {
  261. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_RA_ABLE)
  262. }
  263. *case: LANDSCAPE_CC270
  264. {
  265. *TextCaps: LIST(TC_RA_ABLE)
  266. }
  267. }
  268. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  269. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  270. *MaxLineSpacing: 255
  271. *XMoveThreshold: 0
  272. *YMoveThreshold: *
  273. *XMoveUnit: 60
  274. *YMoveUnit: 180
  275. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,5940]{max_repeat((DestX / 6) )} }
  276. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  277. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  278. *Command: CmdCR { *Cmd : "<0D>" }
  279. *Command: CmdLF { *Cmd : "<0A>" }
  280. *Command: CmdFF { *Cmd : "<0C>" }
  281. *Command: CmdBackSpace { *Cmd : "<08>" }
  282. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  283. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  284. *EjectPageWithFF?: TRUE
  285. *OutputDataFormat: V_BYTE
  286. *OptimizeLeftBound?: TRUE
  287. *CursorXAfterSendBlockData: AT_GRXDATA_END
  288. *CursorYAfterSendBlockData: NO_MOVE
  289. *DefaultFont: 32
  290. *DefaultCTT: -1
  291. *DeviceFonts: LIST(32)
  292. *FontCartridge: FC1
  293. {
  294. *rcCartridgeNameID: 284
  295. *Fonts: LIST(7,8,9,10)
  296. }
  297. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  298. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  299. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  300. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  301. *Command: CmdSelectSingleByteMode { *Cmd : "<1C0F>" }
  302. *Command: CmdSelectDoubleByteMode { *Cmd : "<1C12>" }