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.

518 lines
14 KiB

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