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.

498 lines
13 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "OL124.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Olivetti DM 124"
  10. *MasterUnits: PAIR(360, 360)
  11. *ResourceDLL: "ol24res.dll"
  12. *PrinterType: SERIAL
  13. *Feature: Orientation
  14. {
  15. *rcNameID: =ORIENTATION_DISPLAY
  16. *DefaultOption: PORTRAIT
  17. *Option: PORTRAIT
  18. {
  19. *rcNameID: =PORTRAIT_DISPLAY
  20. }
  21. *Option: LANDSCAPE_CC270
  22. {
  23. *rcNameID: =LANDSCAPE_DISPLAY
  24. }
  25. }
  26. *Feature: InputBin
  27. {
  28. *rcNameID: =PAPER_SOURCE_DISPLAY
  29. *DefaultOption: AUTO
  30. *Option: AUTO
  31. {
  32. *rcNameID: =AUTO_DISPLAY
  33. *Command: CmdSelect
  34. {
  35. *Order: DOC_SETUP.3
  36. *Cmd: "<1B19>4<1B19>1"
  37. }
  38. }
  39. *Option: MANUAL
  40. {
  41. *rcNameID: =MANUAL_FEED_DISPLAY
  42. *Command: CmdSelect
  43. {
  44. *Order: DOC_SETUP.3
  45. *Cmd: "<1B19>0"
  46. }
  47. }
  48. *Option: TRACTOR
  49. {
  50. *rcNameID: =TRACTOR_DISPLAY
  51. *Command: CmdSelect
  52. {
  53. *Order: DOC_SETUP.3
  54. *Cmd: "<1B19>0"
  55. }
  56. }
  57. }
  58. *Feature: Resolution
  59. {
  60. *rcNameID: =RESOLUTION_DISPLAY
  61. *DefaultOption: Option1
  62. *Option: Option1
  63. {
  64. *Name: "180 x 180 " =DOTS_PER_INCH
  65. *DPI: PAIR(180, 180)
  66. *TextDPI: PAIR(180, 180)
  67. *PinsPerLogPass: 24
  68. *PinsPerPhysPass: 24
  69. *MinStripBlankPixels: 135
  70. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  71. *SpotDiameter: 120
  72. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  73. }
  74. *Option: Option2
  75. {
  76. *Name: "360 x 180 " =DOTS_PER_INCH
  77. *DPI: PAIR(360, 180)
  78. *TextDPI: PAIR(360, 180)
  79. *PinsPerLogPass: 24
  80. *PinsPerPhysPass: 24
  81. *MinStripBlankPixels: 270
  82. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  83. *SpotDiameter: 170
  84. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  85. }
  86. *Option: Option3
  87. {
  88. *Name: "120 x 180 " =DOTS_PER_INCH
  89. *DPI: PAIR(120, 180)
  90. *TextDPI: PAIR(120, 180)
  91. *PinsPerLogPass: 24
  92. *PinsPerPhysPass: 24
  93. *MinStripBlankPixels: 90
  94. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  95. *SpotDiameter: 100
  96. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  97. }
  98. }
  99. *Feature: PaperSize
  100. {
  101. *rcNameID: =PAPER_SIZE_DISPLAY
  102. *DefaultOption: LETTER
  103. *Option: LETTER
  104. {
  105. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  106. *Command: CmdSelect
  107. {
  108. *Order: DOC_SETUP.4
  109. *Cmd: "<1B>2<1B>CB"
  110. }
  111. *switch: InputBin
  112. {
  113. *case: AUTO
  114. {
  115. *PrintableArea: PAIR(2880, 3510)
  116. *PrintableOrigin: PAIR(90, 90)
  117. }
  118. *case: MANUAL
  119. {
  120. *PrintableArea: PAIR(2880, 3510)
  121. *PrintableOrigin: PAIR(90, 90)
  122. }
  123. *case: TRACTOR
  124. {
  125. *PrintableArea: PAIR(2880, 3960)
  126. *PrintableOrigin: PAIR(90, 0)
  127. }
  128. }
  129. }
  130. *Option: LEGAL
  131. {
  132. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  133. *Command: CmdSelect
  134. {
  135. *Order: DOC_SETUP.4
  136. *Cmd: "<1B>2<1B>CT"
  137. }
  138. *switch: InputBin
  139. {
  140. *case: AUTO
  141. {
  142. *PrintableArea: PAIR(2880, 4590)
  143. *PrintableOrigin: PAIR(90, 90)
  144. }
  145. *case: MANUAL
  146. {
  147. *PrintableArea: PAIR(2880, 4590)
  148. *PrintableOrigin: PAIR(90, 90)
  149. }
  150. *case: TRACTOR
  151. {
  152. *PrintableArea: PAIR(2880, 5040)
  153. *PrintableOrigin: PAIR(90, 0)
  154. }
  155. }
  156. }
  157. *Option: A4
  158. {
  159. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  160. *Command: CmdSelect
  161. {
  162. *Order: DOC_SETUP.4
  163. *Cmd: "<1B>2<1B>CF"
  164. }
  165. *switch: InputBin
  166. {
  167. *case: AUTO
  168. {
  169. *PrintableArea: PAIR(2880, 3758)
  170. *PrintableOrigin: PAIR(90, 90)
  171. }
  172. *case: MANUAL
  173. {
  174. *PrintableArea: PAIR(2880, 3758)
  175. *PrintableOrigin: PAIR(90, 90)
  176. }
  177. *case: TRACTOR
  178. {
  179. *PrintableArea: PAIR(2880, 4208)
  180. *PrintableOrigin: PAIR(90, 0)
  181. }
  182. }
  183. }
  184. *Option: A5
  185. {
  186. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  187. *Command: CmdSelect
  188. {
  189. *Order: DOC_SETUP.4
  190. *Cmd: "<1B>2<1B>C2"
  191. }
  192. *switch: InputBin
  193. {
  194. *case: AUTO
  195. {
  196. *PrintableArea: PAIR(2009, 2527)
  197. *PrintableOrigin: PAIR(90, 90)
  198. *switch: Resolution
  199. {
  200. *case: Option1
  201. {
  202. *PrintableArea: PAIR(2008, 2526)
  203. }
  204. *case: Option2
  205. {
  206. *PrintableArea: PAIR(2009, 2526)
  207. }
  208. *case: Option3
  209. {
  210. *PrintableArea: PAIR(2007, 2526)
  211. }
  212. }
  213. }
  214. *case: MANUAL
  215. {
  216. *PrintableArea: PAIR(2009, 2527)
  217. *PrintableOrigin: PAIR(90, 90)
  218. *switch: Resolution
  219. {
  220. *case: Option1
  221. {
  222. *PrintableArea: PAIR(2008, 2526)
  223. }
  224. *case: Option2
  225. {
  226. *PrintableArea: PAIR(2009, 2526)
  227. }
  228. *case: Option3
  229. {
  230. *PrintableArea: PAIR(2007, 2526)
  231. }
  232. }
  233. }
  234. *case: TRACTOR
  235. {
  236. *PrintableArea: PAIR(2009, 2977)
  237. *PrintableOrigin: PAIR(90, 0)
  238. *switch: Resolution
  239. {
  240. *case: Option1
  241. {
  242. *PrintableArea: PAIR(2008, 2976)
  243. }
  244. *case: Option2
  245. {
  246. *PrintableArea: PAIR(2009, 2976)
  247. }
  248. *case: Option3
  249. {
  250. *PrintableArea: PAIR(2007, 2976)
  251. }
  252. }
  253. }
  254. }
  255. }
  256. *Option: B5
  257. {
  258. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  259. *Command: CmdSelect
  260. {
  261. *Order: DOC_SETUP.4
  262. *Cmd: "<1B>2<1B>C="
  263. }
  264. *switch: InputBin
  265. {
  266. *case: AUTO
  267. {
  268. *PrintableArea: PAIR(2491, 3193)
  269. *PrintableOrigin: PAIR(90, 90)
  270. *switch: Resolution
  271. {
  272. *case: Option1
  273. {
  274. *PrintableArea: PAIR(2490, 3192)
  275. }
  276. *case: Option2
  277. {
  278. *PrintableArea: PAIR(2491, 3192)
  279. }
  280. *case: Option3
  281. {
  282. *PrintableArea: PAIR(2490, 3192)
  283. }
  284. }
  285. }
  286. *case: MANUAL
  287. {
  288. *PrintableArea: PAIR(2491, 3193)
  289. *PrintableOrigin: PAIR(90, 90)
  290. *switch: Resolution
  291. {
  292. *case: Option1
  293. {
  294. *PrintableArea: PAIR(2490, 3192)
  295. }
  296. *case: Option2
  297. {
  298. *PrintableArea: PAIR(2491, 3192)
  299. }
  300. *case: Option3
  301. {
  302. *PrintableArea: PAIR(2490, 3192)
  303. }
  304. }
  305. }
  306. *case: TRACTOR
  307. {
  308. *PrintableArea: PAIR(2491, 3643)
  309. *PrintableOrigin: PAIR(90, 0)
  310. *switch: Resolution
  311. {
  312. *case: Option1
  313. {
  314. *PrintableArea: PAIR(2490, 3642)
  315. }
  316. *case: Option2
  317. {
  318. *PrintableArea: PAIR(2491, 3642)
  319. }
  320. *case: Option3
  321. {
  322. *PrintableArea: PAIR(2490, 3642)
  323. }
  324. }
  325. }
  326. }
  327. }
  328. *Option: Option6
  329. {
  330. *rcNameID: 258
  331. *PageDimensions: PAIR(3060, 4320)
  332. *Command: CmdSelect
  333. {
  334. *Order: DOC_SETUP.4
  335. *Cmd: "<1B>2<1B>CH"
  336. }
  337. *switch: InputBin
  338. {
  339. *case: AUTO
  340. {
  341. *PrintableArea: PAIR(2880, 3870)
  342. *PrintableOrigin: PAIR(90, 90)
  343. }
  344. *case: MANUAL
  345. {
  346. *PrintableArea: PAIR(2880, 3870)
  347. *PrintableOrigin: PAIR(90, 90)
  348. }
  349. *case: TRACTOR
  350. {
  351. *PrintableArea: PAIR(2880, 4320)
  352. *PrintableOrigin: PAIR(90, 0)
  353. }
  354. }
  355. }
  356. *Option: CUSTOMSIZE
  357. {
  358. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  359. *MinSize: PAIR(360, 360)
  360. *MaxSize: PAIR(3060, 5040)
  361. *MaxPrintableWidth: 2880
  362. *MinLeftMargin: 90
  363. *CenterPrintable?: FALSE
  364. *switch: InputBin
  365. {
  366. *case: AUTO
  367. {
  368. *TopMargin: 90
  369. *BottomMargin: 360
  370. }
  371. *case: MANUAL
  372. {
  373. *TopMargin: 90
  374. *BottomMargin: 360
  375. }
  376. *case: TRACTOR
  377. {
  378. *TopMargin: 0
  379. *BottomMargin: 0
  380. }
  381. }
  382. *Command: CmdSelect
  383. {
  384. *Order: DOC_SETUP.4
  385. *Cmd: "<1B>2"
  386. }
  387. }
  388. }
  389. *Feature: PrintQuality
  390. {
  391. *rcNameID: =TEXT_QUALITY_DISPLAY
  392. *DefaultOption: LETTER_QUALITY
  393. *Option: LETTER_QUALITY
  394. {
  395. *rcNameID: =LETTER_QUALITY_DISPLAY
  396. *Command: CmdSelect
  397. {
  398. *Order: DOC_SETUP.2
  399. *Cmd: "<1B>x<01>"
  400. }
  401. }
  402. *Option: DRAFT_QUALITY
  403. {
  404. *rcNameID: =DRAFT_QUALITY_DISPLAY
  405. *Command: CmdSelect
  406. {
  407. *Order: DOC_SETUP.2
  408. *Cmd: "<1B>x<00>"
  409. }
  410. }
  411. }
  412. *Feature: Halftone
  413. {
  414. *rcNameID: =HALFTONING_DISPLAY
  415. *DefaultOption: HT_PATSIZE_AUTO
  416. *Option: HT_PATSIZE_AUTO
  417. {
  418. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  419. }
  420. *Ifdef: WINNT_50
  421. *Option: HT_PATSIZE_SUPERCELL_M
  422. {
  423. *rcNameID: =HT_SUPERCELL_DISPLAY
  424. }
  425. *Endif:
  426. *Option: HT_PATSIZE_6x6_M
  427. {
  428. *rcNameID: =HT_DITHER6X6_DISPLAY
  429. }
  430. *Option: HT_PATSIZE_8x8_M
  431. {
  432. *rcNameID: =HT_DITHER8X8_DISPLAY
  433. }
  434. }
  435. *Command: CmdStartDoc
  436. {
  437. *Order: DOC_SETUP.1
  438. *Cmd: "<1B>@<1B>t<011B>I<011B>6<1B>R<001B>O"
  439. }
  440. *Command: CmdEndJob
  441. {
  442. *Order: JOB_FINISH.1
  443. *Cmd: "<1B>@"
  444. }
  445. *RotateCoordinate?: FALSE
  446. *RotateRaster?: FALSE
  447. *RotateFont?: FALSE
  448. *switch: Orientation
  449. {
  450. *case: PORTRAIT
  451. {
  452. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  453. }
  454. *case: LANDSCAPE_CC270
  455. {
  456. *TextCaps: LIST(TC_RA_ABLE)
  457. }
  458. }
  459. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  460. *YMoveAttributes: LIST(SEND_CR_FIRST)
  461. *MaxLineSpacing: 255
  462. *XMoveThreshold: 0
  463. *YMoveThreshold: *
  464. *XMoveUnit: 60
  465. *YMoveUnit: 180
  466. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,765]{max_repeat((DestX / 6) )} }
  467. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  468. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  469. *Command: CmdCR { *Cmd : "<0D>" }
  470. *Command: CmdLF { *Cmd : "<0A>" }
  471. *Command: CmdFF { *Cmd : "<0C>" }
  472. *Command: CmdBackSpace { *Cmd : "<08>" }
  473. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  474. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  475. *EjectPageWithFF?: TRUE
  476. *OutputDataFormat: V_BYTE
  477. *OptimizeLeftBound?: FALSE
  478. *CursorXAfterSendBlockData: AT_GRXDATA_END
  479. *CursorYAfterSendBlockData: NO_MOVE
  480. *DefaultFont: 3
  481. *DefaultCTT: 1
  482. *switch: Orientation
  483. {
  484. *case: PORTRAIT
  485. {
  486. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)
  487. }
  488. *case: LANDSCAPE_CC270
  489. {
  490. *DeviceFonts: LIST()
  491. }
  492. }
  493. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  494. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  495. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  496. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  497. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  498. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }