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.

523 lines
12 KiB

  1. *%
  2. *% Copyright (c) 1997-2003 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *Include: "stdnames.gpd"
  7. *ModelName: "Generic / Text Only"
  8. *GPDFileName: "tty.gpd"
  9. *GPDFileVersion: "1.0"
  10. *MasterUnits: PAIR(600, 600)
  11. *ResourceDLL: "ttyres.dll"
  12. *PrinterType: TTY
  13. *EjectPageWithFF?: TRUE
  14. *CharPosition: BASELINE
  15. *switch: InputBin
  16. {
  17. *case: Option3
  18. {
  19. *EjectPageWithFF?: FALSE
  20. }
  21. }
  22. *Feature: InputBin
  23. {
  24. *rcNameID: =PAPER_SOURCE_DISPLAY
  25. *DefaultOption: Option1
  26. *Option: Option1
  27. {
  28. *rcNameID: 262 *% "Cut Sheets"
  29. *Command: CmdSelect
  30. {
  31. *Order: DOC_SETUP.3
  32. *CallbackID: 4
  33. }
  34. }
  35. *Option: Option2
  36. {
  37. *rcNameID: 260 *% "Continuous Feed - w breaks"
  38. *Command: CmdSelect
  39. {
  40. *Order: DOC_SETUP.3
  41. *CallbackID: 4
  42. }
  43. }
  44. *Option: Option3
  45. {
  46. *rcNameID: 261 *% "Continuous Feed - no breaks"
  47. *Command: CmdSelect
  48. {
  49. *Order: DOC_SETUP.3
  50. *CallbackID: 4
  51. }
  52. }
  53. }
  54. *Feature: Resolution
  55. {
  56. *rcNameID: =RESOLUTION_DISPLAY
  57. *ConcealFromUI?: TRUE
  58. *DefaultOption: Option1
  59. *Option: Option1
  60. {
  61. *rcNameID: 257
  62. *DPI: PAIR(600, 600)
  63. *TextDPI: PAIR(600, 600)
  64. *SpotDiameter: 100
  65. *IgnoreBlock: *% switch: Orientation
  66. {
  67. *case: LANDSCAPE_CC270
  68. {
  69. *DPI: PAIR(6, 120)
  70. *TextDPI: PAIR(6, 120)
  71. }
  72. }
  73. }
  74. }
  75. *IgnoreBlock *% Feature: ColorMode
  76. {
  77. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  78. *Option: Monochrome
  79. {
  80. *Name: "monochrome"
  81. *Color?: FALSE
  82. *DevNumOfPlanes: 1
  83. *DevBPP: 1
  84. *DrvBPP: 1
  85. *% support OEMFilterGraphics instead of
  86. *% OEMImageProcessing since this is a SERIAL printer.
  87. *%IPCallbackID: 1
  88. *%DevNumOfPlanes: 0
  89. *%DevBPP: 0
  90. }
  91. }
  92. *Feature: PaperSize
  93. {
  94. *rcNameID: =PAPER_SIZE_DISPLAY
  95. *DefaultOption: LETTER
  96. *Option: LETTER
  97. {
  98. *rcNameID: =LETTER_DISPLAY
  99. *PrintableArea: PAIR(5100, 6600)
  100. *PrintableOrigin: PAIR(0, 0)
  101. *Command: CmdSelect
  102. {
  103. *Order: DOC_SETUP.2
  104. *CallbackID: 3
  105. }
  106. }
  107. *Option: LETTER_EXTRA
  108. {
  109. *rcNameID: =LETTER_EXTRA_DISPLAY
  110. *PrintableArea: PAIR(5700, 7200)
  111. *PrintableOrigin: PAIR(0, 0)
  112. *Command: CmdSelect
  113. {
  114. *Order: DOC_SETUP.2
  115. *CallbackID: 3
  116. }
  117. }
  118. *Option: LEGAL
  119. {
  120. *rcNameID: =LEGAL_DISPLAY
  121. *PrintableArea: PAIR(5100, 8400)
  122. *PrintableOrigin: PAIR(0, 0)
  123. *Command: CmdSelect
  124. {
  125. *Order: DOC_SETUP.2
  126. *CallbackID: 3
  127. }
  128. }
  129. *Option: LEGAL_EXTRA
  130. {
  131. *rcNameID: =LEGAL_EXTRA_DISPLAY
  132. *PrintableArea: PAIR(5700, 9000)
  133. *PrintableOrigin: PAIR(0, 0)
  134. *Command: CmdSelect
  135. {
  136. *Order: DOC_SETUP.2
  137. *CallbackID: 3
  138. }
  139. }
  140. *Option: A3
  141. {
  142. *rcNameID: =A3_DISPLAY
  143. *PrintableArea: PAIR(7010, 9900)
  144. *PrintableOrigin: PAIR(0, 0)
  145. *Command: CmdSelect
  146. {
  147. *Order: DOC_SETUP.2
  148. *CallbackID: 3
  149. }
  150. }
  151. *Option: A4
  152. {
  153. *rcNameID: =A4_DISPLAY
  154. *PrintableArea: PAIR(4960, 7000)
  155. *PrintableOrigin: PAIR(0, 0)
  156. *Command: CmdSelect
  157. {
  158. *Order: DOC_SETUP.2
  159. *CallbackID: 3
  160. }
  161. }
  162. *Option: ISO_B4
  163. {
  164. *rcNameID: =ISO_B4_DISPLAY
  165. *PrintableArea: PAIR(5900, 8300)
  166. *PrintableOrigin: PAIR(0, 0)
  167. *Command: CmdSelect
  168. {
  169. *Order: DOC_SETUP.2
  170. *CallbackID: 3
  171. }
  172. }
  173. *Option: B4
  174. {
  175. *rcNameID: =B4_DISPLAY
  176. *PrintableArea: PAIR(6070, 8500)
  177. *PrintableOrigin: PAIR(0, 0)
  178. *Command: CmdSelect
  179. {
  180. *Order: DOC_SETUP.2
  181. *CallbackID: 3
  182. }
  183. }
  184. *Option: B5
  185. {
  186. *rcNameID: =B5_DISPLAY
  187. *PrintableArea: PAIR(4300, 6000)
  188. *PrintableOrigin: PAIR(0, 0)
  189. *Command: CmdSelect
  190. {
  191. *Order: DOC_SETUP.2
  192. *CallbackID: 3
  193. }
  194. }
  195. *Option: LEDGER
  196. {
  197. *rcNameID: =LEDGER_DISPLAY
  198. *PrintableArea: PAIR(10200, 6600)
  199. *PrintableOrigin: PAIR(0, 0)
  200. *Command: CmdSelect
  201. {
  202. *Order: DOC_SETUP.2
  203. *CallbackID: 3
  204. }
  205. }
  206. *Option: TABLOID
  207. {
  208. *rcNameID: =TABLOID_DISPLAY
  209. *PrintableArea: PAIR(6600, 10200)
  210. *PrintableOrigin: PAIR(0, 0)
  211. *Command: CmdSelect
  212. {
  213. *Order: DOC_SETUP.2
  214. *CallbackID: 3
  215. }
  216. }
  217. *Option: TABLOID_EXTRA
  218. {
  219. *rcNameID: =TABLOID_EXTRA_DISPLAY
  220. *PrintableArea: PAIR(7010, 10800)
  221. *PrintableOrigin: PAIR(0, 0)
  222. *Command: CmdSelect
  223. {
  224. *Order: DOC_SETUP.2
  225. *CallbackID: 3
  226. }
  227. }
  228. *Option: FANFOLD_US
  229. {
  230. *rcNameID: =FANFOLD_US_DISPLAY
  231. *PrintableArea: PAIR(8925, 6600)
  232. *PrintableOrigin: PAIR(0, 0)
  233. *Command: CmdSelect
  234. {
  235. *Order: DOC_SETUP.2
  236. *CallbackID: 3
  237. }
  238. }
  239. *Option: FANFOLD_STD_GERMAN
  240. {
  241. *rcNameID: =FANFOLD_STD_GERMAN_DISPLAY
  242. *PageDimensions: PAIR(5100, 7200)
  243. *PrintableArea: PAIR(5100, 7200)
  244. *PrintableOrigin: PAIR(0, 0)
  245. *Command: CmdSelect
  246. {
  247. *Order: DOC_SETUP.2
  248. *CallbackID: 3
  249. }
  250. }
  251. *Option: FOLIO
  252. {
  253. *rcNameID: =FOLIO_DISPLAY
  254. *PageDimensions: PAIR(5100, 7800)
  255. *PrintableArea: PAIR(5100, 7800)
  256. *PrintableOrigin: PAIR(0, 0)
  257. *Command: CmdSelect
  258. {
  259. *Order: DOC_SETUP.2
  260. *CallbackID: 3
  261. }
  262. }
  263. *Option: ENV_DL
  264. {
  265. *rcNameID: =ENV_DL_DISPLAY
  266. *PrintableArea: PAIR(2595, 5100)
  267. *PrintableOrigin: PAIR(0, 0)
  268. *Command: CmdSelect
  269. {
  270. *Order: DOC_SETUP.2
  271. *CallbackID: 3
  272. }
  273. }
  274. *Option: ENV_C3
  275. {
  276. *rcNameID: =ENV_C3_DISPLAY
  277. *PrintableArea: PAIR(7655, 10800)
  278. *PrintableOrigin: PAIR(0, 0)
  279. *Command: CmdSelect
  280. {
  281. *Order: DOC_SETUP.2
  282. *CallbackID: 3
  283. }
  284. }
  285. *Option: ENV_C4
  286. {
  287. *rcNameID: =ENV_C4_DISPLAY
  288. *PrintableArea: PAIR(5410, 7600)
  289. *PrintableOrigin: PAIR(0, 0)
  290. *Command: CmdSelect
  291. {
  292. *Order: DOC_SETUP.2
  293. *CallbackID: 3
  294. }
  295. }
  296. *Option: ENV_C5
  297. {
  298. *rcNameID: =ENV_C5_DISPLAY
  299. *PrintableArea: PAIR(3825, 5400)
  300. *PrintableOrigin: PAIR(0, 0)
  301. *Command: CmdSelect
  302. {
  303. *Order: DOC_SETUP.2
  304. *CallbackID: 3
  305. }
  306. }
  307. *Option: ENV_C6
  308. {
  309. *rcNameID: =ENV_C6_DISPLAY
  310. *PrintableArea: PAIR(2690, 3800)
  311. *PrintableOrigin: PAIR(0, 0)
  312. *Command: CmdSelect
  313. {
  314. *Order: DOC_SETUP.2
  315. *CallbackID: 3
  316. }
  317. }
  318. *Option: ENV_C65
  319. {
  320. *rcNameID: =ENV_C65_DISPLAY
  321. *PrintableArea: PAIR(2690, 5400)
  322. *PrintableOrigin: PAIR(0, 0)
  323. *Command: CmdSelect
  324. {
  325. *Order: DOC_SETUP.2
  326. *CallbackID: 3
  327. }
  328. }
  329. *Option: ENV_B4
  330. {
  331. *rcNameID: =ENV_B4_DISPLAY
  332. *PrintableArea: PAIR(5900, 8300)
  333. *PrintableOrigin: PAIR(0, 0)
  334. *Command: CmdSelect
  335. {
  336. *Order: DOC_SETUP.2
  337. *CallbackID: 3
  338. }
  339. }
  340. *Option: ENV_B5
  341. {
  342. *rcNameID: =ENV_B5_DISPLAY
  343. *PrintableArea: PAIR(4155, 5900)
  344. *PrintableOrigin: PAIR(0, 0)
  345. *Command: CmdSelect
  346. {
  347. *Order: DOC_SETUP.2
  348. *CallbackID: 3
  349. }
  350. }
  351. *Option: ENV_B6
  352. {
  353. *rcNameID: =ENV_B6_DISPLAY
  354. *PrintableArea: PAIR(4155, 2900)
  355. *PrintableOrigin: PAIR(0, 0)
  356. *Command: CmdSelect
  357. {
  358. *Order: DOC_SETUP.2
  359. *CallbackID: 3
  360. }
  361. }
  362. *Option: ENV_ITALY
  363. {
  364. *rcNameID: =ENV_ITALY_DISPLAY
  365. *PrintableArea: PAIR(2595, 5400)
  366. *PrintableOrigin: PAIR(0, 0)
  367. *Command: CmdSelect
  368. {
  369. *Order: DOC_SETUP.2
  370. *CallbackID: 3
  371. }
  372. }
  373. *Option: ENV_MONARCH
  374. {
  375. *rcNameID: =ENV_MONARCH_DISPLAY
  376. *PrintableArea: PAIR(2325, 4500)
  377. *PrintableOrigin: PAIR(0, 0)
  378. *Command: CmdSelect
  379. {
  380. *Order: DOC_SETUP.2
  381. *CallbackID: 3
  382. }
  383. }
  384. *Option: ENV_PERSONAL
  385. {
  386. *rcNameID: =ENV_PERSONAL_DISPLAY
  387. *PrintableArea: PAIR(2175, 3900)
  388. *PrintableOrigin: PAIR(0, 0)
  389. *Command: CmdSelect
  390. {
  391. *Order: DOC_SETUP.2
  392. *CallbackID: 3
  393. }
  394. }
  395. *Option: ENV_9
  396. {
  397. *rcNameID: =ENV_9_DISPLAY
  398. *PrintableArea: PAIR(2325, 5300)
  399. *PrintableOrigin: PAIR(0, 0)
  400. *Command: CmdSelect
  401. {
  402. *Order: DOC_SETUP.2
  403. *CallbackID: 3
  404. }
  405. }
  406. *Option: ENV_10
  407. {
  408. *rcNameID: =ENV_10_DISPLAY
  409. *PrintableArea: PAIR(2475, 5700)
  410. *PrintableOrigin: PAIR(0, 0)
  411. *Command: CmdSelect
  412. {
  413. *Order: DOC_SETUP.2
  414. *CallbackID: 3
  415. }
  416. }
  417. *Option: ENV_11
  418. {
  419. *rcNameID: =ENV_11_DISPLAY
  420. *PrintableArea: PAIR(2700, 6200)
  421. *PrintableOrigin: PAIR(0, 0)
  422. *Command: CmdSelect
  423. {
  424. *Order: DOC_SETUP.2
  425. *CallbackID: 3
  426. }
  427. }
  428. *Option: ENV_12
  429. {
  430. *rcNameID: =ENV_12_DISPLAY
  431. *PrintableArea: PAIR(2850, 6600)
  432. *PrintableOrigin: PAIR(0, 0)
  433. *Command: CmdSelect
  434. {
  435. *Order: DOC_SETUP.2
  436. *CallbackID: 3
  437. }
  438. }
  439. *Option: ENV_14
  440. {
  441. *rcNameID: =ENV_14_DISPLAY
  442. *PrintableArea: PAIR(3000, 6900)
  443. *PrintableOrigin: PAIR(0, 0)
  444. *Command: CmdSelect
  445. {
  446. *Order: DOC_SETUP.2
  447. *CallbackID: 3
  448. }
  449. }
  450. *Option: CUSTOMSIZE
  451. {
  452. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  453. *MinSize: PAIR(60, 100)
  454. *MaxSize: PAIR(32400, 32400)
  455. *MaxPrintableWidth: 32400
  456. *MinLeftMargin: 0
  457. *CenterPrintable?: FALSE
  458. *Command: CmdSelect
  459. {
  460. *Order: DOC_SETUP.2
  461. *CallbackID: 3
  462. }
  463. }
  464. }
  465. *Command: CmdStartDoc
  466. {
  467. *Order: DOC_SETUP.1
  468. *CallbackID: 1
  469. }
  470. *Command: CmdEndJob
  471. {
  472. *Order: JOB_FINISH.1
  473. *CallbackID: 2
  474. }
  475. *RotateCoordinate?: TRUE
  476. *RotateRaster?: TRUE
  477. *RotateFont?: TRUE
  478. *Feature: Orientation
  479. {
  480. *DefaultOption: PORTRAIT
  481. *rcNameID: =ORIENTATION_DISPLAY
  482. *Option: PORTRAIT
  483. {
  484. *rcNameID: =PORTRAIT_DISPLAY
  485. *Command: CmdSelect
  486. {
  487. *Order: DOC_SETUP.1
  488. *Cmd: ""
  489. }
  490. }
  491. *Option: LANDSCAPE_CC270
  492. {
  493. *rcNameID: =LANDSCAPE_DISPLAY
  494. *Command: CmdSelect
  495. {
  496. *Order: DOC_SETUP.1
  497. *Cmd: ""
  498. }
  499. }
  500. }
  501. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE)
  502. *DeviceFonts: LIST(1,2,3)
  503. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  504. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  505. *MaxLineSpacing: 100
  506. *Command: CmdCR : "<0d>"
  507. *Command: CmdLF : "<0a>"
  508. *Command: CmdFF : "<0c>"
  509. *OutputDataFormat: V_BYTE
  510. *OptimizeLeftBound?: FALSE
  511. *CursorXAfterSendBlockData: AT_GRXDATA_END
  512. *CursorYAfterSendBlockData: NO_MOVE
  513. *DefaultFont: 1
  514. *DefaultCTT: -1
  515. *Command: CmdBoldOn { *CallbackID: 7 }
  516. *Command: CmdBoldOff { *CallbackID: 8 }
  517. *Command: CmdUnderlineOn { *CallbackID: 9 }
  518. *Command: CmdUnderlineOff { *CallbackID: 10 }