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.

380 lines
11 KiB

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