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.

395 lines
11 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "OK553SCC.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "Oki 5530SC"
  11. *MasterUnits: PAIR(360, 360)
  12. *ResourceDLL: "OKISCRES.DLL"
  13. *PrinterType: SERIAL
  14. *FontCartSlots: 1
  15. *% ========== Orientation ==========
  16. *Feature: Orientation
  17. {
  18. *rcNameID: =ORIENTATION_DISPLAY
  19. *DefaultOption: PORTRAIT
  20. *Option: PORTRAIT
  21. {
  22. *rcNameID: =PORTRAIT_DISPLAY
  23. }
  24. *Option: LANDSCAPE_CC270
  25. {
  26. *rcNameID: =LANDSCAPE_DISPLAY
  27. }
  28. }
  29. *% ========== InputBin ==========
  30. *Feature: InputBin
  31. {
  32. *rcNameID: =PAPER_SOURCE_DISPLAY
  33. *DefaultOption: MANUAL
  34. *Option: MANUAL
  35. {
  36. *rcNameID: =MANUAL_FEED_DISPLAY
  37. }
  38. *Option: TRACTOR
  39. {
  40. *rcNameID: =TRACTOR_DISPLAY
  41. }
  42. }
  43. *% ========== Resolution ==========
  44. *Feature: Resolution
  45. {
  46. *rcNameID: =RESOLUTION_DISPLAY
  47. *DefaultOption: Option1
  48. *Option: Option1
  49. {
  50. *Name: "180 x 180 dots per inch"
  51. *DPI: PAIR(180, 180)
  52. *TextDPI: PAIR(180, 180)
  53. *PinsPerLogPass: 24
  54. *PinsPerPhysPass: 24
  55. *MinStripBlankPixels: 180
  56. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  57. *SpotDiameter: 120
  58. *Command: CmdSendBlockData { *Cmd : "<1B>%%1" %m{NumOfDataBytes / 3} }
  59. }
  60. }
  61. *% ========== PaperSize ==========
  62. *Feature: PaperSize
  63. {
  64. *rcNameID: =PAPER_SIZE_DISPLAY
  65. *DefaultOption: LETTER
  66. *Option: LETTER
  67. {
  68. *rcNameID: =LETTER_DISPLAY
  69. *switch: InputBin
  70. {
  71. *case: MANUAL
  72. {
  73. *PrintableArea: PAIR(2916, 3632)
  74. *PrintableOrigin: PAIR(72, 72)
  75. }
  76. *case: TRACTOR
  77. {
  78. *PrintableArea: PAIR(2916, 3960)
  79. *PrintableOrigin: PAIR(72, 0)
  80. *Command: CmdSelect
  81. {
  82. *Order: DOC_SETUP.3
  83. *Cmd: "<1B>F<08><08>"
  84. }
  85. }
  86. }
  87. }
  88. *Option: LEGAL
  89. {
  90. *rcNameID: =LEGAL_DISPLAY
  91. *switch: InputBin
  92. {
  93. *case: MANUAL
  94. {
  95. *PrintableArea: PAIR(2916, 4712)
  96. *PrintableOrigin: PAIR(72, 72)
  97. }
  98. *case: TRACTOR
  99. {
  100. *PrintableArea: PAIR(2916, 5040)
  101. *PrintableOrigin: PAIR(72, 0)
  102. *Command: CmdSelect
  103. {
  104. *Order: DOC_SETUP.3
  105. *Cmd: "<1B>F<0B><02>"
  106. }
  107. }
  108. }
  109. }
  110. *Option: A4
  111. {
  112. *rcNameID: =A4_DISPLAY
  113. *switch: InputBin
  114. {
  115. *case: MANUAL
  116. {
  117. *PrintableArea: PAIR(2833, 3880)
  118. *PrintableOrigin: PAIR(72, 72)
  119. *switch: Resolution
  120. {
  121. *case: Option1
  122. {
  123. *% Warning: the following printable width is adjusted (2833->2832) so it is divisible by the resolution X scale.
  124. *PrintableArea: PAIR(2832, 3880)
  125. }
  126. }
  127. }
  128. *case: TRACTOR
  129. {
  130. *PrintableArea: PAIR(2833, 4208)
  131. *PrintableOrigin: PAIR(72, 0)
  132. *switch: Resolution
  133. {
  134. *case: Option1
  135. {
  136. *% Warning: the following printable width is adjusted (2833->2832) so it is divisible by the resolution X scale.
  137. *PrintableArea: PAIR(2832, 4208)
  138. }
  139. }
  140. *Command: CmdSelect
  141. {
  142. *Order: DOC_SETUP.3
  143. *Cmd: "<1B>F<09><03>"
  144. }
  145. }
  146. }
  147. }
  148. *Option: A5
  149. {
  150. *rcNameID: =A5_DISPLAY
  151. *switch: InputBin
  152. {
  153. *case: MANUAL
  154. {
  155. *PrintableArea: PAIR(1955, 2649)
  156. *PrintableOrigin: PAIR(72, 72)
  157. *switch: Resolution
  158. {
  159. *case: Option1
  160. {
  161. *% Warning: the following printable width is adjusted (1955->1954) so it is divisible by the resolution X scale.
  162. *% Warning: the following printable length is adjusted (2649->2648) so it is divisible by the resolution Y scale.
  163. *PrintableArea: PAIR(1954, 2648)
  164. }
  165. }
  166. }
  167. *case: TRACTOR
  168. {
  169. *PrintableArea: PAIR(1955, 2977)
  170. *PrintableOrigin: PAIR(72, 0)
  171. *switch: Resolution
  172. {
  173. *case: Option1
  174. {
  175. *% Warning: the following printable width is adjusted (1955->1954) so it is divisible by the resolution X scale.
  176. *% Warning: the following printable length is adjusted (2977->2976) so it is divisible by the resolution Y scale.
  177. *PrintableArea: PAIR(1954, 2976)
  178. }
  179. }
  180. *Command: CmdSelect
  181. {
  182. *Order: DOC_SETUP.3
  183. *Cmd: "<1B>F<06><06>"
  184. }
  185. }
  186. }
  187. }
  188. *Option: B5
  189. {
  190. *rcNameID: =B5_DISPLAY
  191. *switch: InputBin
  192. {
  193. *case: MANUAL
  194. {
  195. *PrintableArea: PAIR(2437, 3315)
  196. *PrintableOrigin: PAIR(72, 72)
  197. *switch: Resolution
  198. {
  199. *case: Option1
  200. {
  201. *% Warning: the following printable width is adjusted (2437->2436) so it is divisible by the resolution X scale.
  202. *% Warning: the following printable length is adjusted (3315->3314) so it is divisible by the resolution Y scale.
  203. *PrintableArea: PAIR(2436, 3314)
  204. }
  205. }
  206. }
  207. *case: TRACTOR
  208. {
  209. *PrintableArea: PAIR(2437, 3643)
  210. *PrintableOrigin: PAIR(72, 0)
  211. *switch: Resolution
  212. {
  213. *case: Option1
  214. {
  215. *% Warning: the following printable width is adjusted (2437->2436) so it is divisible by the resolution X scale.
  216. *% Warning: the following printable length is adjusted (3643->3642) so it is divisible by the resolution Y scale.
  217. *PrintableArea: PAIR(2436, 3642)
  218. }
  219. }
  220. *Command: CmdSelect
  221. {
  222. *Order: DOC_SETUP.3
  223. *Cmd: "<1B>F<08><00>"
  224. }
  225. }
  226. }
  227. }
  228. *Option: FANFOLD_US
  229. {
  230. *rcNameID: =FANFOLD_US_DISPLAY
  231. *switch: InputBin
  232. {
  233. *case: MANUAL
  234. {
  235. *PrintableArea: PAIR(4896, 3632)
  236. *PrintableOrigin: PAIR(0, 72)
  237. }
  238. *case: TRACTOR
  239. {
  240. *PrintableArea: PAIR(4896, 3960)
  241. *PrintableOrigin: PAIR(0, 0)
  242. *Command: CmdSelect
  243. {
  244. *Order: DOC_SETUP.3
  245. *Cmd: "<1B>F<08><08>"
  246. }
  247. }
  248. }
  249. }
  250. *Option: CUSTOMSIZE
  251. {
  252. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  253. *MinSize: PAIR(360, 360)
  254. *MaxSize: PAIR(5040, 7920)
  255. *MaxPrintableWidth: 4896
  256. *MinLeftMargin: 0
  257. *CenterPrintable?: FALSE
  258. *switch: InputBin
  259. {
  260. *case: MANUAL
  261. {
  262. *TopMargin: 72
  263. *BottomMargin: 256
  264. }
  265. *case: TRACTOR
  266. {
  267. *TopMargin: 0
  268. *BottomMargin: 0
  269. *Command: CmdSelect
  270. {
  271. *Order: DOC_SETUP.3
  272. *Cmd: "<1B>F" %c[0,15]{(PhysPaperLength*8)/3600} %c[0,15]{(PhysPaperLength*8/360) MOD 10}
  273. }
  274. }
  275. }
  276. }
  277. }
  278. *% ========== PrintQuality ==========
  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.2
  289. *Cmd: "<1B>I"
  290. }
  291. }
  292. *Option: DRAFT_QUALITY
  293. {
  294. *rcNameID: =DRAFT_QUALITY_DISPLAY
  295. *Command: CmdSelect
  296. {
  297. *Order: DOC_SETUP.2
  298. *Cmd: "<1B>0"
  299. }
  300. }
  301. }
  302. *% ========== Halftone ==========
  303. *Feature: Halftone
  304. {
  305. *rcNameID: =HALFTONING_DISPLAY
  306. *DefaultOption: HT_PATSIZE_AUTO
  307. *Option: HT_PATSIZE_AUTO
  308. {
  309. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  310. }
  311. *Option: HT_PATSIZE_SUPERCELL_M
  312. {
  313. *rcNameID: =HT_SUPERCELL_DISPLAY
  314. }
  315. *Option: HT_PATSIZE_6x6_M
  316. {
  317. *rcNameID: =HT_DITHER6X6_DISPLAY
  318. }
  319. *Option: HT_PATSIZE_8x8_M
  320. {
  321. *rcNameID: =HT_DITHER8X8_DISPLAY
  322. }
  323. }
  324. *% ========== Job control command ==========
  325. *Command: CmdStartDoc
  326. {
  327. *Order: DOC_SETUP.1
  328. *Cmd: "<18><1B>l"
  329. }
  330. *Command: CmdStartPage
  331. {
  332. *Order: PAGE_SETUP.1
  333. *Cmd: "<0D>"
  334. }
  335. *% ========== Printer Capabilities ==========
  336. *RotateCoordinate?: FALSE
  337. *RotateRaster?: FALSE
  338. *RotateFont?: FALSE
  339. *switch: Orientation
  340. {
  341. *case: PORTRAIT
  342. {
  343. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  344. }
  345. *case: LANDSCAPE_CC270
  346. {
  347. *TextCaps: LIST(TC_RA_ABLE)
  348. }
  349. }
  350. *% ========== Cursor Control ==========
  351. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  352. *YMoveAttributes: LIST(SEND_CR_FIRST)
  353. *MaxLineSpacing: 255
  354. *XMoveThreshold: *
  355. *YMoveThreshold: *
  356. *XMoveUnit: 180
  357. *YMoveUnit: 120
  358. *Command: CmdXMoveRelRight { *Cmd : "<1B>%%3" %m[0,255]{max_repeat((DestXRel / 2) )} }
  359. *Command: CmdXMoveRelLeft { *Cmd : "<1B>%%4" %m[0,255]{max_repeat((DestXRel / 2) )} }
  360. *Command: CmdYMoveRelDown { *Cmd : "<1B>%%5" %c[0,255]{max_repeat((DestYRel / 3) )} }
  361. *Command: CmdSetLineSpacing { *Cmd : "<1B>%%9" %m[0,255]{(LinefeedSpacing / 3) } }
  362. *Command: CmdCR { *Cmd : "<0D>" }
  363. *Command: CmdLF { *Cmd : "<0A>" }
  364. *Command: CmdFF { *Cmd : "<0C>" }
  365. *Command: CmdBackSpace { *Cmd : "<08>" }
  366. *Command: CmdUniDirectionOn { *Cmd : "<1B>%%U" }
  367. *Command: CmdUniDirectionOff { *Cmd : "<1B>%%B" }
  368. *EjectPageWithFF?: TRUE
  369. *% ========== Raster Data Emission ==========
  370. *OutputDataFormat: V_BYTE
  371. *OptimizeLeftBound?: FALSE
  372. *CursorXAfterSendBlockData: AT_GRXDATA_END
  373. *CursorYAfterSendBlockData: NO_MOVE
  374. *% ========== Text Printing ==========
  375. *DefaultCTT: 0
  376. *% ========== Font Simulation ==========
  377. *Command: CmdBoldOn { *Cmd : "<1B>i" }
  378. *Command: CmdBoldOff { *Cmd : "<1B>j" }
  379. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  380. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }
  381. *DefaultFont: 1
  382. *DeviceFonts: LIST(1,2,3,4,5,6)