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.

600 lines
16 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "BRM1309.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Brother M-1309"
  10. *MasterUnits: PAIR(720, 432)
  11. *ResourceDLL: "br9res.dll"
  12. *PrintRate: 180
  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: "<1B1900>"
  39. }
  40. }
  41. *Option: AUTO
  42. {
  43. *rcNameID: =AUTO_DISPLAY
  44. *Command: CmdSelect
  45. {
  46. *Order: DOC_SETUP.3
  47. *Cmd: "<1B1904>"
  48. }
  49. }
  50. *Option: MANUAL
  51. {
  52. *rcNameID: =MANUAL_FEED_DISPLAY
  53. *Command: CmdSelect
  54. {
  55. *Order: DOC_SETUP.3
  56. *Cmd: "<1B1900>"
  57. }
  58. }
  59. }
  60. *Feature: Resolution
  61. {
  62. *rcNameID: =RESOLUTION_DISPLAY
  63. *DefaultOption: Option1
  64. *Option: Option1
  65. {
  66. *Name: "120 x 144 " =DOTS_PER_INCH
  67. *DPI: PAIR(120, 144)
  68. *TextDPI: PAIR(120, 144)
  69. *PinsPerLogPass: 16
  70. *PinsPerPhysPass: 8
  71. *MinStripBlankPixels: 120
  72. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  73. *SpotDiameter: 100
  74. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  75. }
  76. *Option: Option2
  77. {
  78. *Name: "240 x 216 " =DOTS_PER_INCH
  79. *DPI: PAIR(240, 216)
  80. *TextDPI: PAIR(240, 216)
  81. *PinsPerLogPass: 24
  82. *PinsPerPhysPass: 8
  83. *MinStripBlankPixels: 240
  84. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  85. *SpotDiameter: 170
  86. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  87. }
  88. *Option: Option3
  89. {
  90. *Name: "240 x 144 " =DOTS_PER_INCH
  91. *DPI: PAIR(240, 144)
  92. *TextDPI: PAIR(240, 144)
  93. *PinsPerLogPass: 16
  94. *PinsPerPhysPass: 8
  95. *MinStripBlankPixels: 240
  96. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  97. *SpotDiameter: 170
  98. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  99. }
  100. *Option: Option4
  101. {
  102. *Name: "120 x 72 " =DOTS_PER_INCH
  103. *DPI: PAIR(120, 72)
  104. *TextDPI: PAIR(120, 72)
  105. *PinsPerLogPass: 8
  106. *PinsPerPhysPass: 8
  107. *MinStripBlankPixels: 120
  108. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  109. *SpotDiameter: 100
  110. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  111. }
  112. }
  113. *Feature: PaperSize
  114. {
  115. *rcNameID: =PAPER_SIZE_DISPLAY
  116. *DefaultOption: LETTER
  117. *Option: LETTER
  118. {
  119. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  120. *Command: CmdSelect
  121. {
  122. *Order: DOC_SETUP.4
  123. *Cmd: "<1B>C<000B>"
  124. }
  125. *switch: InputBin
  126. {
  127. *case: TRACTOR
  128. {
  129. *PrintableArea: PAIR(5760, 4752)
  130. *PrintableOrigin: PAIR(0, 0)
  131. }
  132. *case: AUTO
  133. {
  134. *PrintableArea: PAIR(5760, 3432)
  135. *PrintableOrigin: PAIR(0, 600)
  136. }
  137. *case: MANUAL
  138. {
  139. *PrintableArea: PAIR(5760, 3432)
  140. *PrintableOrigin: PAIR(0, 600)
  141. }
  142. }
  143. }
  144. *Option: LEGAL
  145. {
  146. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  147. *Command: CmdSelect
  148. {
  149. *Order: DOC_SETUP.4
  150. *Cmd: "<1B>C<000E>"
  151. }
  152. *switch: InputBin
  153. {
  154. *case: TRACTOR
  155. {
  156. *PrintableArea: PAIR(5760, 6048)
  157. *PrintableOrigin: PAIR(0, 0)
  158. }
  159. *case: AUTO
  160. {
  161. *PrintableArea: PAIR(5760, 4728)
  162. *PrintableOrigin: PAIR(0, 600)
  163. }
  164. *case: MANUAL
  165. {
  166. *PrintableArea: PAIR(5760, 4728)
  167. *PrintableOrigin: PAIR(0, 600)
  168. }
  169. }
  170. }
  171. *Option: A5
  172. {
  173. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  174. *Command: CmdSelect
  175. {
  176. *Order: DOC_SETUP.4
  177. *Cmd: "<1B>2<1B>C2"
  178. }
  179. *switch: InputBin
  180. {
  181. *case: TRACTOR
  182. {
  183. *PrintableArea: PAIR(4198, 3573)
  184. *PrintableOrigin: PAIR(0, 0)
  185. *switch: Resolution
  186. {
  187. *case: Option1
  188. {
  189. *PrintableArea: PAIR(4194, 3573)
  190. }
  191. *case: Option2
  192. {
  193. *PrintableArea: PAIR(4197, 3572)
  194. }
  195. *case: Option3
  196. {
  197. *PrintableArea: PAIR(4197, 3573)
  198. }
  199. *case: Option4
  200. {
  201. *PrintableArea: PAIR(4194, 3570)
  202. }
  203. }
  204. }
  205. *case: AUTO
  206. {
  207. *PrintableArea: PAIR(4198, 2253)
  208. *PrintableOrigin: PAIR(0, 600)
  209. *switch: Resolution
  210. {
  211. *case: Option1
  212. {
  213. *PrintableArea: PAIR(4194, 2253)
  214. }
  215. *case: Option2
  216. {
  217. *PrintableArea: PAIR(4197, 2252)
  218. }
  219. *case: Option3
  220. {
  221. *PrintableArea: PAIR(4197, 2253)
  222. }
  223. *case: Option4
  224. {
  225. *PrintableArea: PAIR(4194, 2250)
  226. }
  227. }
  228. }
  229. *case: MANUAL
  230. {
  231. *PrintableArea: PAIR(4198, 2253)
  232. *PrintableOrigin: PAIR(0, 600)
  233. *switch: Resolution
  234. {
  235. *case: Option1
  236. {
  237. *PrintableArea: PAIR(4194, 2253)
  238. }
  239. *case: Option2
  240. {
  241. *PrintableArea: PAIR(4197, 2252)
  242. }
  243. *case: Option3
  244. {
  245. *PrintableArea: PAIR(4197, 2253)
  246. }
  247. *case: Option4
  248. {
  249. *PrintableArea: PAIR(4194, 2250)
  250. }
  251. }
  252. }
  253. }
  254. }
  255. *Option: A4
  256. {
  257. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  258. *Command: CmdSelect
  259. {
  260. *Order: DOC_SETUP.4
  261. *Cmd: "<1B>2<1B>CF"
  262. }
  263. *switch: InputBin
  264. {
  265. *case: TRACTOR
  266. {
  267. *PrintableArea: PAIR(5760, 5050)
  268. *PrintableOrigin: PAIR(0, 0)
  269. *switch: Resolution
  270. {
  271. *case: Option1
  272. {
  273. *PrintableArea: PAIR(5760, 5049)
  274. }
  275. *case: Option3
  276. {
  277. *PrintableArea: PAIR(5760, 5049)
  278. }
  279. *case: Option4
  280. {
  281. *PrintableArea: PAIR(5760, 5046)
  282. }
  283. }
  284. }
  285. *case: AUTO
  286. {
  287. *PrintableArea: PAIR(5760, 3730)
  288. *PrintableOrigin: PAIR(0, 600)
  289. *switch: Resolution
  290. {
  291. *case: Option1
  292. {
  293. *PrintableArea: PAIR(5760, 3729)
  294. }
  295. *case: Option3
  296. {
  297. *PrintableArea: PAIR(5760, 3729)
  298. }
  299. *case: Option4
  300. {
  301. *PrintableArea: PAIR(5760, 3726)
  302. }
  303. }
  304. }
  305. *case: MANUAL
  306. {
  307. *PrintableArea: PAIR(5760, 3730)
  308. *PrintableOrigin: PAIR(0, 600)
  309. *switch: Resolution
  310. {
  311. *case: Option1
  312. {
  313. *PrintableArea: PAIR(5760, 3729)
  314. }
  315. *case: Option3
  316. {
  317. *PrintableArea: PAIR(5760, 3729)
  318. }
  319. *case: Option4
  320. {
  321. *PrintableArea: PAIR(5760, 3726)
  322. }
  323. }
  324. }
  325. }
  326. }
  327. *Option: B5
  328. {
  329. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  330. *Command: CmdSelect
  331. {
  332. *Order: DOC_SETUP.4
  333. *Cmd: "<1B>2<1B>C%<"
  334. }
  335. *switch: InputBin
  336. {
  337. *case: TRACTOR
  338. {
  339. *PrintableArea: PAIR(5162, 4372)
  340. *PrintableOrigin: PAIR(0, 0)
  341. *switch: Resolution
  342. {
  343. *case: Option1
  344. {
  345. *PrintableArea: PAIR(5160, 4371)
  346. }
  347. *case: Option2
  348. {
  349. *PrintableArea: PAIR(5160, 4372)
  350. }
  351. *case: Option3
  352. {
  353. *PrintableArea: PAIR(5160, 4371)
  354. }
  355. *case: Option4
  356. {
  357. *PrintableArea: PAIR(5160, 4368)
  358. }
  359. }
  360. }
  361. *case: AUTO
  362. {
  363. *PrintableArea: PAIR(5162, 3052)
  364. *PrintableOrigin: PAIR(0, 600)
  365. *switch: Resolution
  366. {
  367. *case: Option1
  368. {
  369. *PrintableArea: PAIR(5160, 3051)
  370. }
  371. *case: Option2
  372. {
  373. *PrintableArea: PAIR(5160, 3052)
  374. }
  375. *case: Option3
  376. {
  377. *PrintableArea: PAIR(5160, 3051)
  378. }
  379. *case: Option4
  380. {
  381. *PrintableArea: PAIR(5160, 3048)
  382. }
  383. }
  384. }
  385. *case: MANUAL
  386. {
  387. *PrintableArea: PAIR(5162, 3052)
  388. *PrintableOrigin: PAIR(0, 600)
  389. *switch: Resolution
  390. {
  391. *case: Option1
  392. {
  393. *PrintableArea: PAIR(5160, 3051)
  394. }
  395. *case: Option2
  396. {
  397. *PrintableArea: PAIR(5160, 3052)
  398. }
  399. *case: Option3
  400. {
  401. *PrintableArea: PAIR(5160, 3051)
  402. }
  403. *case: Option4
  404. {
  405. *PrintableArea: PAIR(5160, 3048)
  406. }
  407. }
  408. }
  409. }
  410. }
  411. *Option: Option6
  412. {
  413. *rcNameID: 258
  414. *PageDimensions: PAIR(6120, 5184)
  415. *Command: CmdSelect
  416. {
  417. *Order: DOC_SETUP.4
  418. *Cmd: "<1B>C<000C>"
  419. }
  420. *switch: InputBin
  421. {
  422. *case: TRACTOR
  423. {
  424. *PrintableArea: PAIR(5760, 5184)
  425. *PrintableOrigin: PAIR(0, 0)
  426. }
  427. *case: AUTO
  428. {
  429. *PrintableArea: PAIR(5760, 3864)
  430. *PrintableOrigin: PAIR(0, 600)
  431. }
  432. *case: MANUAL
  433. {
  434. *PrintableArea: PAIR(5760, 3864)
  435. *PrintableOrigin: PAIR(0, 600)
  436. }
  437. }
  438. }
  439. *Option: CUSTOMSIZE
  440. {
  441. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  442. *MinSize: PAIR(720, 432)
  443. *MaxSize: PAIR(6120, 32767)
  444. *MaxPrintableWidth: 5760
  445. *MinLeftMargin: 0
  446. *CenterPrintable?: FALSE
  447. *switch: InputBin
  448. {
  449. *case: TRACTOR
  450. {
  451. *TopMargin: 0
  452. *BottomMargin: 0
  453. }
  454. *case: AUTO
  455. {
  456. *TopMargin: 600
  457. *BottomMargin: 720
  458. }
  459. *case: MANUAL
  460. {
  461. *TopMargin: 600
  462. *BottomMargin: 720
  463. }
  464. }
  465. *Command: CmdSelect
  466. {
  467. *Order: DOC_SETUP.4
  468. *Cmd: "<1B>2"
  469. }
  470. }
  471. }
  472. *Feature: PrintQuality
  473. {
  474. *rcNameID: =TEXT_QUALITY_DISPLAY
  475. *DefaultOption: NEAR_LETTER_QUALITY
  476. *Option: NEAR_LETTER_QUALITY
  477. {
  478. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  479. *Command: CmdSelect
  480. {
  481. *Order: DOC_SETUP.2
  482. *Cmd: "<1B>x1"
  483. }
  484. }
  485. *Option: DRAFT_QUALITY
  486. {
  487. *rcNameID: =DRAFT_QUALITY_DISPLAY
  488. *Command: CmdSelect
  489. {
  490. *Order: DOC_SETUP.2
  491. *Cmd: "<1B>x0"
  492. }
  493. }
  494. }
  495. *Feature: Halftone
  496. {
  497. *rcNameID: =HALFTONING_DISPLAY
  498. *DefaultOption: HT_PATSIZE_AUTO
  499. *Option: HT_PATSIZE_AUTO
  500. {
  501. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  502. }
  503. *Ifdef: WINNT_50
  504. *Option: HT_PATSIZE_SUPERCELL_M
  505. {
  506. *rcNameID: =HT_SUPERCELL_DISPLAY
  507. }
  508. *Endif:
  509. *Option: HT_PATSIZE_6x6_M
  510. {
  511. *rcNameID: =HT_DITHER6X6_DISPLAY
  512. }
  513. *Option: HT_PATSIZE_8x8_M
  514. {
  515. *rcNameID: =HT_DITHER8X8_DISPLAY
  516. }
  517. }
  518. *Command: CmdStartDoc
  519. {
  520. *Order: DOC_SETUP.1
  521. *Cmd: "<1B>@<0D1B>t<011B>6<1B>R<00>"
  522. }
  523. *Command: CmdStartPage
  524. {
  525. *Order: PAGE_SETUP.1
  526. *Cmd: "<0D>"
  527. }
  528. *Command: CmdEndJob
  529. {
  530. *Order: JOB_FINISH.1
  531. *Cmd: "<1B>@"
  532. }
  533. *RotateCoordinate?: FALSE
  534. *RotateRaster?: FALSE
  535. *RotateFont?: FALSE
  536. *switch: Orientation
  537. {
  538. *case: PORTRAIT
  539. {
  540. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  541. }
  542. *case: LANDSCAPE_CC270
  543. {
  544. *TextCaps: LIST(TC_RA_ABLE)
  545. }
  546. }
  547. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  548. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  549. *MaxLineSpacing: 255
  550. *XMoveThreshold: 0
  551. *YMoveThreshold: *
  552. *XMoveUnit: 60
  553. *YMoveUnit: 216
  554. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 12) } }
  555. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[1,255]{max_repeat((DestYRel / 2) )} }
  556. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[2,255]{(LinefeedSpacing / 2) } }
  557. *Command: CmdCR { *Cmd : "<0D>" }
  558. *Command: CmdLF { *Cmd : "<0A>" }
  559. *Command: CmdFF { *Cmd : "<0C>" }
  560. *Command: CmdBackSpace { *Cmd : "<08>" }
  561. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  562. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  563. *EjectPageWithFF?: FALSE
  564. *switch: InputBin
  565. {
  566. *case: AUTO
  567. {
  568. *EjectPageWithFF?: TRUE
  569. }
  570. *case: MANUAL
  571. {
  572. *EjectPageWithFF?: TRUE
  573. }
  574. }
  575. *OutputDataFormat: V_BYTE
  576. *OptimizeLeftBound?: TRUE
  577. *CursorXAfterSendBlockData: AT_GRXDATA_END
  578. *CursorYAfterSendBlockData: NO_MOVE
  579. *DefaultFont: 1
  580. *DefaultCTT: -2
  581. *switch: Orientation
  582. {
  583. *case: PORTRAIT
  584. {
  585. *DeviceFonts: LIST(1,2,3,4,5,6,8,9,10,11,12,13,15,16,17,18,
  586. + 19,20,22,23,24,25,26,27,30,31,32,33)
  587. }
  588. *case: LANDSCAPE_CC270
  589. {
  590. *DeviceFonts: LIST()
  591. }
  592. }
  593. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  594. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  595. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  596. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  597. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  598. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  599. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>p1" }
  600. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>p0" }