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.

396 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: "fudp83ec.gpd"
  9. *CodePage: 1252
  10. *ModelName: "Fujitsu DPK8300E"
  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(4309, 3768)
  232. *PrintableOrigin: PAIR(0, 72)
  233. *switch: Resolution
  234. {
  235. *case: Option1
  236. {
  237. *% Warning: the following printable width is adjusted (4309->4308) so it is divisible by the resolution X scale.
  238. *PrintableArea: PAIR(4308, 3768)
  239. }
  240. }
  241. }
  242. *case: TRACTOR
  243. {
  244. *PrintableArea: PAIR(4309, 3960)
  245. *PrintableOrigin: PAIR(0, 0)
  246. *switch: Resolution
  247. {
  248. *case: Option1
  249. {
  250. *% Warning: the following printable width is adjusted (4309->4308) so it is divisible by the resolution X scale.
  251. *PrintableArea: PAIR(4308, 3960)
  252. }
  253. }
  254. *Command: CmdSelect
  255. {
  256. *Order: DOC_SETUP.3
  257. *Cmd: "<1B>F<08><08>"
  258. }
  259. }
  260. }
  261. }
  262. *Option: CUSTOMSIZE
  263. {
  264. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  265. *MinSize: PAIR(780, 1275)
  266. *MaxSize: PAIR(4309, 5159)
  267. *MaxPrintableWidth: 4309
  268. *MinLeftMargin: 0
  269. *CenterPrintable?: FALSE
  270. *switch: InputBin
  271. {
  272. *case: MANUAL
  273. {
  274. *TopMargin: 72
  275. *BottomMargin: 120
  276. }
  277. *case: TRACTOR
  278. {
  279. *TopMargin: 0
  280. *BottomMargin: 0
  281. *Command: CmdSelect
  282. {
  283. *Order: DOC_SETUP.3
  284. *Cmd: "<1B>F" %c[0,15]{(PhysPaperLength*8)/3600} %c[0,15]{(PhysPaperLength*8/360) MOD 10}
  285. }
  286. }
  287. }
  288. }
  289. }
  290. *Feature: PrintQuality
  291. {
  292. *rcNameID: =TEXT_QUALITY_DISPLAY
  293. *DefaultOption: LETTER_QUALITY
  294. *Option: LETTER_QUALITY
  295. {
  296. *rcNameID: =LETTER_QUALITY_DISPLAY
  297. *Command: CmdSelect
  298. {
  299. *Order: DOC_SETUP.2
  300. *Cmd: "<1B>I"
  301. }
  302. }
  303. *Option: DRAFT_QUALITY
  304. {
  305. *rcNameID: =DRAFT_QUALITY_DISPLAY
  306. *Command: CmdSelect
  307. {
  308. *Order: DOC_SETUP.2
  309. *Cmd: "<1B>0"
  310. }
  311. }
  312. }
  313. *Feature: Halftone
  314. {
  315. *rcNameID: =HALFTONING_DISPLAY
  316. *DefaultOption: HT_PATSIZE_AUTO
  317. *Option: HT_PATSIZE_AUTO
  318. {
  319. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  320. }
  321. *Option: HT_PATSIZE_SUPERCELL_M
  322. {
  323. *rcNameID: =HT_SUPERCELL_DISPLAY
  324. }
  325. *Option: HT_PATSIZE_6x6_M
  326. {
  327. *rcNameID: =HT_DITHER6X6_DISPLAY
  328. }
  329. *Option: HT_PATSIZE_8x8_M
  330. {
  331. *rcNameID: =HT_DITHER8X8_DISPLAY
  332. }
  333. }
  334. *Command: CmdStartDoc
  335. {
  336. *Order: DOC_SETUP.1
  337. *Cmd: "<1B>N"
  338. }
  339. *Command: CmdStartPage
  340. {
  341. *Order: PAGE_SETUP.1
  342. *Cmd: "<0D>"
  343. }
  344. *RotateCoordinate?: FALSE
  345. *RotateRaster?: FALSE
  346. *RotateFont?: FALSE
  347. *switch: Orientation
  348. {
  349. *case: PORTRAIT
  350. {
  351. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  352. }
  353. *case: LANDSCAPE_CC270
  354. {
  355. *TextCaps: LIST(TC_RA_ABLE)
  356. }
  357. }
  358. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  359. *YMoveAttributes: LIST(SEND_CR_FIRST)
  360. *MaxLineSpacing: 255
  361. *XMoveThreshold: *
  362. *YMoveThreshold: *
  363. *XMoveUnit: 180
  364. *YMoveUnit: 120
  365. *Command: CmdXMoveRelRight { *Cmd : "<1B>%%3" %m[0,255]{max_repeat((DestXRel / 2) )} }
  366. *Command: CmdXMoveRelLeft { *Cmd : "<1B>%%4" %m[0,255]{max_repeat((DestXRel / 2) )} }
  367. *Command: CmdYMoveRelDown { *Cmd : "<1B>%%5" %c[0,255]{max_repeat((DestYRel / 3) )} }
  368. *Command: CmdSetLineSpacing { *Cmd : "<1B>%%9" %m[0,255]{(LinefeedSpacing / 3) } }
  369. *Command: CmdCR { *Cmd : "<0D>" }
  370. *Command: CmdLF { *Cmd : "<0A>" }
  371. *Command: CmdFF { *Cmd : "<0C>" }
  372. *Command: CmdBackSpace { *Cmd : "<08>" }
  373. *Command: CmdUniDirectionOn { *Cmd : "<1B>%%U" }
  374. *Command: CmdUniDirectionOff { *Cmd : "<1B>%%B" }
  375. *EjectPageWithFF?: TRUE
  376. *OutputDataFormat: V_BYTE
  377. *OptimizeLeftBound?: FALSE
  378. *CursorXAfterSendBlockData: AT_GRXDATA_END
  379. *CursorYAfterSendBlockData: NO_MOVE
  380. *DefaultFont: 5
  381. *DefaultCTT: 1
  382. *switch: Orientation
  383. {
  384. *case: PORTRAIT
  385. {
  386. *DeviceFonts: LIST(1,2,3,4,5,6)
  387. }
  388. *case: LANDSCAPE_CC270
  389. {
  390. *DeviceFonts: LIST()
  391. }
  392. }
  393. *Command: CmdBoldOn { *Cmd : "<1B>I" }
  394. *Command: CmdBoldOff { *Cmd : "<1B>0" }
  395. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  396. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }