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.

458 lines
13 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: "fudp84ec.gpd"
  9. *CodePage: 1252
  10. *ModelName: "Fujitsu DPK8400E"
  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: A3
  107. {
  108. *rcNameID: =A3_DISPLAY
  109. *switch: InputBin
  110. {
  111. *case: MANUAL
  112. {
  113. *PrintableArea: PAIR(4064, 5762)
  114. *PrintableOrigin: PAIR(72, 72)
  115. }
  116. *case: TRACTOR
  117. {
  118. *PrintableArea: PAIR(4064, 5762)
  119. *PrintableOrigin: PAIR(72, 72)
  120. *Command: CmdSelect
  121. {
  122. *Order: DOC_SETUP.3
  123. *Cmd: "<1B>F<0D><02>"
  124. }
  125. }
  126. }
  127. }
  128. *Option: A4
  129. {
  130. *rcNameID: =A4_DISPLAY
  131. *switch: InputBin
  132. {
  133. *case: MANUAL
  134. {
  135. *PrintableArea: PAIR(2833, 4016)
  136. *PrintableOrigin: PAIR(72, 72)
  137. *switch: Resolution
  138. {
  139. *case: Option1
  140. {
  141. *% Warning: the following printable width is adjusted (2833->2832) so it is divisible by the resolution X scale.
  142. *PrintableArea: PAIR(2832, 4016)
  143. }
  144. }
  145. }
  146. *case: TRACTOR
  147. {
  148. *PrintableArea: PAIR(2833, 4016)
  149. *PrintableOrigin: PAIR(72, 72)
  150. *switch: Resolution
  151. {
  152. *case: Option1
  153. {
  154. *% Warning: the following printable width is adjusted (2833->2832) so it is divisible by the resolution X scale.
  155. *PrintableArea: PAIR(2832, 4016)
  156. }
  157. }
  158. *Command: CmdSelect
  159. {
  160. *Order: DOC_SETUP.3
  161. *Cmd: "<1B>F<09><03>"
  162. }
  163. }
  164. }
  165. }
  166. *Option: A5
  167. {
  168. *rcNameID: =A5_DISPLAY
  169. *switch: InputBin
  170. {
  171. *case: MANUAL
  172. {
  173. *PrintableArea: PAIR(1955, 2785)
  174. *PrintableOrigin: PAIR(72, 72)
  175. *switch: Resolution
  176. {
  177. *case: Option1
  178. {
  179. *% Warning: the following printable width is adjusted (1955->1954) so it is divisible by the resolution X scale.
  180. *% Warning: the following printable length is adjusted (2785->2784) so it is divisible by the resolution Y scale.
  181. *PrintableArea: PAIR(1954, 2784)
  182. }
  183. }
  184. }
  185. *case: TRACTOR
  186. {
  187. *PrintableArea: PAIR(1955, 2785)
  188. *PrintableOrigin: PAIR(72, 72)
  189. *switch: Resolution
  190. {
  191. *case: Option1
  192. {
  193. *% Warning: the following printable width is adjusted (1955->1954) so it is divisible by the resolution X scale.
  194. *% Warning: the following printable length is adjusted (2785->2784) so it is divisible by the resolution Y scale.
  195. *PrintableArea: PAIR(1954, 2784)
  196. }
  197. }
  198. *Command: CmdSelect
  199. {
  200. *Order: DOC_SETUP.3
  201. *Cmd: "<1B>F<06><06>"
  202. }
  203. }
  204. }
  205. }
  206. *Option: B4
  207. {
  208. *rcNameID: =B4_DISPLAY
  209. *switch: InputBin
  210. {
  211. *case: MANUAL
  212. {
  213. *PrintableArea: PAIR(3499, 4967)
  214. *PrintableOrigin: PAIR(72, 72)
  215. *switch: Resolution
  216. {
  217. *case: Option1
  218. {
  219. *% Warning: the following printable width is adjusted (3499->3498) so it is divisible by the resolution X scale.
  220. *% Warning: the following printable length is adjusted (4967->4966) so it is divisible by the resolution Y scale.
  221. *PrintableArea: PAIR(3498, 4966)
  222. }
  223. }
  224. }
  225. *case: TRACTOR
  226. {
  227. *PrintableArea: PAIR(3499, 4967)
  228. *PrintableOrigin: PAIR(72, 72)
  229. *switch: Resolution
  230. {
  231. *case: Option1
  232. {
  233. *% Warning: the following printable width is adjusted (3499->3498) so it is divisible by the resolution X scale.
  234. *% Warning: the following printable length is adjusted (4967->4966) so it is divisible by the resolution Y scale.
  235. *PrintableArea: PAIR(3498, 4966)
  236. }
  237. }
  238. *Command: CmdSelect
  239. {
  240. *Order: DOC_SETUP.3
  241. *Cmd: "<1B>F<0B><04>"
  242. }
  243. }
  244. }
  245. }
  246. *Option: B5
  247. {
  248. *rcNameID: =B5_DISPLAY
  249. *switch: InputBin
  250. {
  251. *case: MANUAL
  252. {
  253. *PrintableArea: PAIR(2437, 3451)
  254. *PrintableOrigin: PAIR(72, 72)
  255. *switch: Resolution
  256. {
  257. *case: Option1
  258. {
  259. *% Warning: the following printable width is adjusted (2437->2436) so it is divisible by the resolution X scale.
  260. *% Warning: the following printable length is adjusted (3451->3450) so it is divisible by the resolution Y scale.
  261. *PrintableArea: PAIR(2436, 3450)
  262. }
  263. }
  264. }
  265. *case: TRACTOR
  266. {
  267. *PrintableArea: PAIR(2437, 3451)
  268. *PrintableOrigin: PAIR(72, 72)
  269. *switch: Resolution
  270. {
  271. *case: Option1
  272. {
  273. *% Warning: the following printable width is adjusted (2437->2436) so it is divisible by the resolution X scale.
  274. *% Warning: the following printable length is adjusted (3451->3450) so it is divisible by the resolution Y scale.
  275. *PrintableArea: PAIR(2436, 3450)
  276. }
  277. }
  278. *Command: CmdSelect
  279. {
  280. *Order: DOC_SETUP.3
  281. *Cmd: "<1B>F<08><00>"
  282. }
  283. }
  284. }
  285. }
  286. *Option: FANFOLD_US
  287. {
  288. *rcNameID: =FANFOLD_US_DISPLAY
  289. *switch: InputBin
  290. {
  291. *case: MANUAL
  292. {
  293. *PrintableArea: PAIR(5357, 3768)
  294. *PrintableOrigin: PAIR(0, 72)
  295. *switch: Resolution
  296. {
  297. *case: Option1
  298. {
  299. *% Warning: the following printable width is adjusted (5357->5356) so it is divisible by the resolution X scale.
  300. *PrintableArea: PAIR(5356, 3768)
  301. }
  302. }
  303. }
  304. *case: TRACTOR
  305. {
  306. *PrintableArea: PAIR(5357, 3960)
  307. *PrintableOrigin: PAIR(0, 0)
  308. *switch: Resolution
  309. {
  310. *case: Option1
  311. {
  312. *% Warning: the following printable width is adjusted (5357->5356) so it is divisible by the resolution X scale.
  313. *PrintableArea: PAIR(5356, 3960)
  314. }
  315. }
  316. *Command: CmdSelect
  317. {
  318. *Order: DOC_SETUP.3
  319. *Cmd: "<1B>F<08><08>"
  320. }
  321. }
  322. }
  323. }
  324. *Option: CUSTOMSIZE
  325. {
  326. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  327. *MinSize: PAIR(1275, 1275)
  328. *MaxSize: PAIR(4896, 5400)
  329. *MaxPrintableWidth: 5400
  330. *MinLeftMargin: 0
  331. *CenterPrintable?: FALSE
  332. *switch: InputBin
  333. {
  334. *case: MANUAL
  335. {
  336. *TopMargin: 72
  337. *BottomMargin: 120
  338. }
  339. *case: TRACTOR
  340. {
  341. *TopMargin: 0
  342. *BottomMargin: 0
  343. *Command: CmdSelect
  344. {
  345. *Order: DOC_SETUP.3
  346. *Cmd: "<1B>F" %c[0,15]{(PhysPaperLength*8)/3600} %c[0,15]{(PhysPaperLength*8/360) MOD 10}
  347. }
  348. }
  349. }
  350. }
  351. }
  352. *Feature: PrintQuality
  353. {
  354. *rcNameID: =TEXT_QUALITY_DISPLAY
  355. *DefaultOption: LETTER_QUALITY
  356. *Option: LETTER_QUALITY
  357. {
  358. *rcNameID: =LETTER_QUALITY_DISPLAY
  359. *Command: CmdSelect
  360. {
  361. *Order: DOC_SETUP.2
  362. *Cmd: "<1B>I"
  363. }
  364. }
  365. *Option: DRAFT_QUALITY
  366. {
  367. *rcNameID: =DRAFT_QUALITY_DISPLAY
  368. *Command: CmdSelect
  369. {
  370. *Order: DOC_SETUP.2
  371. *Cmd: "<1B>0"
  372. }
  373. }
  374. }
  375. *Feature: Halftone
  376. {
  377. *rcNameID: =HALFTONING_DISPLAY
  378. *DefaultOption: HT_PATSIZE_AUTO
  379. *Option: HT_PATSIZE_AUTO
  380. {
  381. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  382. }
  383. *Option: HT_PATSIZE_SUPERCELL_M
  384. {
  385. *rcNameID: =HT_SUPERCELL_DISPLAY
  386. }
  387. *Option: HT_PATSIZE_6x6_M
  388. {
  389. *rcNameID: =HT_DITHER6X6_DISPLAY
  390. }
  391. *Option: HT_PATSIZE_8x8_M
  392. {
  393. *rcNameID: =HT_DITHER8X8_DISPLAY
  394. }
  395. }
  396. *Command: CmdStartDoc
  397. {
  398. *Order: DOC_SETUP.1
  399. *Cmd: "<1B>N"
  400. }
  401. *Command: CmdStartPage
  402. {
  403. *Order: PAGE_SETUP.1
  404. *Cmd: "<0D>"
  405. }
  406. *RotateCoordinate?: FALSE
  407. *RotateRaster?: FALSE
  408. *RotateFont?: FALSE
  409. *switch: Orientation
  410. {
  411. *case: PORTRAIT
  412. {
  413. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  414. }
  415. *case: LANDSCAPE_CC270
  416. {
  417. *TextCaps: LIST(TC_RA_ABLE)
  418. }
  419. }
  420. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  421. *YMoveAttributes: LIST(SEND_CR_FIRST)
  422. *MaxLineSpacing: 255
  423. *XMoveThreshold: *
  424. *YMoveThreshold: *
  425. *XMoveUnit: 180
  426. *YMoveUnit: 120
  427. *Command: CmdXMoveRelRight { *Cmd : "<1B>%%3" %m[0,255]{max_repeat((DestXRel / 2) )} }
  428. *Command: CmdXMoveRelLeft { *Cmd : "<1B>%%4" %m[0,255]{max_repeat((DestXRel / 2) )} }
  429. *Command: CmdYMoveRelDown { *Cmd : "<1B>%%5" %c[0,255]{max_repeat((DestYRel / 3) )} }
  430. *Command: CmdSetLineSpacing { *Cmd : "<1B>%%9" %m[0,255]{(LinefeedSpacing / 3) } }
  431. *Command: CmdCR { *Cmd : "<0D>" }
  432. *Command: CmdLF { *Cmd : "<0A>" }
  433. *Command: CmdFF { *Cmd : "<0C>" }
  434. *Command: CmdBackSpace { *Cmd : "<08>" }
  435. *Command: CmdUniDirectionOn { *Cmd : "<1B>%%U" }
  436. *Command: CmdUniDirectionOff { *Cmd : "<1B>%%B" }
  437. *EjectPageWithFF?: TRUE
  438. *OutputDataFormat: V_BYTE
  439. *OptimizeLeftBound?: FALSE
  440. *CursorXAfterSendBlockData: AT_GRXDATA_END
  441. *CursorYAfterSendBlockData: NO_MOVE
  442. *DefaultFont: 5
  443. *DefaultCTT: 1
  444. *switch: Orientation
  445. {
  446. *case: PORTRAIT
  447. {
  448. *DeviceFonts: LIST(1,2,3,4,5,6)
  449. }
  450. *case: LANDSCAPE_CC270
  451. {
  452. *DeviceFonts: LIST()
  453. }
  454. }
  455. *Command: CmdBoldOn { *Cmd : "<1B>I" }
  456. *Command: CmdBoldOff { *Cmd : "<1B>0" }
  457. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  458. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }