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.

444 lines
13 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "CNB15KMK.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 949
  10. *ModelName: "Canon Bubble-Jet BJ-15K"
  11. *MasterUnits: PAIR(720, 720)
  12. *ResourceDLL: "CNEPKRES.DLL"
  13. *PrinterType: SERIAL
  14. *Feature: Orientation
  15. {
  16. *rcNameID: =ORIENTATION_DISPLAY
  17. *DefaultOption: PORTRAIT
  18. *Option: PORTRAIT
  19. {
  20. *rcNameID: =PORTRAIT_DISPLAY
  21. }
  22. *Option: LANDSCAPE_CC270
  23. {
  24. *rcNameID: =LANDSCAPE_DISPLAY
  25. }
  26. }
  27. *Feature: InputBin
  28. {
  29. *rcNameID: =PAPER_SOURCE_DISPLAY
  30. *DefaultOption: AUTO
  31. *Option: AUTO
  32. {
  33. *rcNameID: =AUTO_DISPLAY
  34. }
  35. *Option: MANUAL
  36. {
  37. *rcNameID: =MANUAL_FEED_DISPLAY
  38. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  39. }
  40. }
  41. *Feature: Resolution
  42. {
  43. *rcNameID: =RESOLUTION_DISPLAY
  44. *DefaultOption: Option1
  45. *Option: Option1
  46. {
  47. *Name: "360 x 360 " =DOTS_PER_INCH
  48. *DPI: PAIR(360, 360)
  49. *TextDPI: PAIR(360, 360)
  50. *PinsPerLogPass: 48
  51. *PinsPerPhysPass: 48
  52. *MinStripBlankPixels: 270
  53. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  54. *SpotDiameter: 100
  55. *Command: CmdSendBlockData { *Cmd : "<1B>[g" %l{((NumOfDataBytes * 6) / 6) + 1}"<10>" }
  56. }
  57. *Option: Option2
  58. {
  59. *Name: "180 x 180 " =DOTS_PER_INCH
  60. *DPI: PAIR(180, 180)
  61. *TextDPI: PAIR(180, 180)
  62. *PinsPerLogPass: 24
  63. *PinsPerPhysPass: 24
  64. *MinStripBlankPixels: 135
  65. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  66. *SpotDiameter: 100
  67. *Command: CmdSendBlockData { *Cmd : "<1B>[g" %l{((NumOfDataBytes * 3) / 3) + 1}"<0B>" }
  68. }
  69. *Option: Option3
  70. {
  71. *Name: "120 x 180 " =DOTS_PER_INCH
  72. *DPI: PAIR(120, 180)
  73. *TextDPI: PAIR(120, 180)
  74. *PinsPerLogPass: 24
  75. *PinsPerPhysPass: 24
  76. *MinStripBlankPixels: 90
  77. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  78. *SpotDiameter: 100
  79. *Command: CmdSendBlockData { *Cmd : "<1B>[g" %l{((NumOfDataBytes * 3) / 3) + 1}"<09>" }
  80. }
  81. }
  82. *Feature: PaperSize
  83. {
  84. *rcNameID: =PAPER_SIZE_DISPLAY
  85. *DefaultOption: LETTER
  86. *Option: LETTER
  87. {
  88. *rcNameID: =LETTER_DISPLAY
  89. *PrintableArea: PAIR(5760, 7380)
  90. *PrintableOrigin: PAIR(180, 60)
  91. *Command: CmdSelect
  92. {
  93. *Order: DOC_SETUP.4
  94. *Cmd: "<1B>C<000B>"
  95. }
  96. }
  97. *Option: LEGAL
  98. {
  99. *rcNameID: =LEGAL_DISPLAY
  100. *PrintableArea: PAIR(5760, 9540)
  101. *PrintableOrigin: PAIR(180, 60)
  102. *Command: CmdSelect
  103. {
  104. *Order: DOC_SETUP.4
  105. *Cmd: "<1B>C<000E>"
  106. }
  107. }
  108. *Option: A5
  109. {
  110. *rcNameID: =A5_DISPLAY
  111. *PrintableArea: PAIR(3838, 5414)
  112. *PrintableOrigin: PAIR(180, 60)
  113. *switch: Resolution
  114. {
  115. *case: Option2
  116. {
  117. *% Warning: the following printable width is adjusted (3838->3836) so it is divisible by the resolution X scale.
  118. *% Warning: the following printable length is adjusted (5414->5412) so it is divisible by the resolution Y scale.
  119. *PrintableArea: PAIR(3836, 5412)
  120. }
  121. *case: Option3
  122. {
  123. *% Warning: the following printable width is adjusted (3838->3834) so it is divisible by the resolution X scale.
  124. *% Warning: the following printable length is adjusted (5414->5412) so it is divisible by the resolution Y scale.
  125. *PrintableArea: PAIR(3834, 5412)
  126. }
  127. }
  128. *Command: CmdSelect
  129. {
  130. *Order: DOC_SETUP.4
  131. *Cmd: "<1B>0<1B>CB"
  132. }
  133. }
  134. *Option: A4
  135. {
  136. *rcNameID: =A4_DISPLAY
  137. *PrintableArea: PAIR(5740, 7877)
  138. *PrintableOrigin: PAIR(120, 60)
  139. *switch: Resolution
  140. {
  141. *case: Option1
  142. {
  143. *% Warning: the following printable length is adjusted (7877->7876) so it is divisible by the resolution Y scale.
  144. *PrintableArea: PAIR(5740, 7876)
  145. }
  146. *case: Option2
  147. {
  148. *% Warning: the following printable length is adjusted (7877->7876) so it is divisible by the resolution Y scale.
  149. *PrintableArea: PAIR(5740, 7876)
  150. }
  151. *case: Option3
  152. {
  153. *% Warning: the following printable width is adjusted (5740->5736) so it is divisible by the resolution X scale.
  154. *% Warning: the following printable length is adjusted (7877->7876) so it is divisible by the resolution Y scale.
  155. *PrintableArea: PAIR(5736, 7876)
  156. }
  157. }
  158. *Command: CmdSelect
  159. {
  160. *Order: DOC_SETUP.4
  161. *Cmd: "<1B>1<1B>Cx"
  162. }
  163. }
  164. *Option: B5
  165. {
  166. *rcNameID: =B5_DISPLAY
  167. *PrintableArea: PAIR(4802, 6746)
  168. *PrintableOrigin: PAIR(180, 60)
  169. *switch: Resolution
  170. {
  171. *case: Option2
  172. {
  173. *% Warning: the following printable width is adjusted (4802->4800) so it is divisible by the resolution X scale.
  174. *% Warning: the following printable length is adjusted (6746->6744) so it is divisible by the resolution Y scale.
  175. *PrintableArea: PAIR(4800, 6744)
  176. }
  177. *case: Option3
  178. {
  179. *% Warning: the following printable width is adjusted (4802->4800) so it is divisible by the resolution X scale.
  180. *% Warning: the following printable length is adjusted (6746->6744) so it is divisible by the resolution Y scale.
  181. *PrintableArea: PAIR(4800, 6744)
  182. }
  183. }
  184. *Command: CmdSelect
  185. {
  186. *Order: DOC_SETUP.4
  187. *Cmd: "<1B>0<1B>CQ"
  188. }
  189. }
  190. *Option: ENV_9
  191. {
  192. *rcNameID: =ENV_9_DISPLAY
  193. *RotateSize? : TRUE
  194. *PrintableArea: PAIR(5760, 2254)
  195. *PrintableOrigin: PAIR(180, 60)
  196. *switch: Resolution
  197. {
  198. *case: Option2
  199. {
  200. *% Warning: the following printable length is adjusted (2254->2252) so it is divisible by the resolution Y scale.
  201. *PrintableArea: PAIR(5760, 2252)
  202. }
  203. *case: Option3
  204. {
  205. *% Warning: the following printable length is adjusted (2254->2252) so it is divisible by the resolution Y scale.
  206. *PrintableArea: PAIR(5760, 2252)
  207. }
  208. }
  209. *Command: CmdSelect
  210. {
  211. *Order: DOC_SETUP.4
  212. *Cmd: "<1B>0<1B>C<1E>"
  213. }
  214. }
  215. *Option: ENV_10
  216. {
  217. *rcNameID: =ENV_10_DISPLAY
  218. *RotateSize? : TRUE
  219. *PrintableArea: PAIR(5760, 2434)
  220. *PrintableOrigin: PAIR(180, 60)
  221. *switch: Resolution
  222. {
  223. *case: Option2
  224. {
  225. *% Warning: the following printable length is adjusted (2434->2432) so it is divisible by the resolution Y scale.
  226. *PrintableArea: PAIR(5760, 2432)
  227. }
  228. *case: Option3
  229. {
  230. *% Warning: the following printable length is adjusted (2434->2432) so it is divisible by the resolution Y scale.
  231. *PrintableArea: PAIR(5760, 2432)
  232. }
  233. }
  234. *Command: CmdSelect
  235. {
  236. *Order: DOC_SETUP.4
  237. *Cmd: "<1B>0<1B>C "
  238. }
  239. }
  240. *Option: ENV_DL
  241. {
  242. *rcNameID: =ENV_DL_DISPLAY
  243. *RotateSize? : TRUE
  244. *PrintableArea: PAIR(5760, 2578)
  245. *PrintableOrigin: PAIR(180, 60)
  246. *switch: Resolution
  247. {
  248. *case: Option2
  249. {
  250. *% Warning: the following printable length is adjusted (2578->2576) so it is divisible by the resolution Y scale.
  251. *PrintableArea: PAIR(5760, 2576)
  252. }
  253. *case: Option3
  254. {
  255. *% Warning: the following printable length is adjusted (2578->2576) so it is divisible by the resolution Y scale.
  256. *PrintableArea: PAIR(5760, 2576)
  257. }
  258. }
  259. *Command: CmdSelect
  260. {
  261. *Order: DOC_SETUP.4
  262. *Cmd: "<1B>0<1B>C#"
  263. }
  264. }
  265. *Option: ENV_B5
  266. {
  267. *rcNameID: =ENV_B5_DISPLAY
  268. *RotateSize? : TRUE
  269. *PrintableArea: PAIR(5760, 4450)
  270. *PrintableOrigin: PAIR(180, 60)
  271. *switch: Resolution
  272. {
  273. *case: Option2
  274. {
  275. *% Warning: the following printable length is adjusted (4450->4448) so it is divisible by the resolution Y scale.
  276. *PrintableArea: PAIR(5760, 4448)
  277. }
  278. *case: Option3
  279. {
  280. *% Warning: the following printable length is adjusted (4450->4448) so it is divisible by the resolution Y scale.
  281. *PrintableArea: PAIR(5760, 4448)
  282. }
  283. }
  284. *Command: CmdSelect
  285. {
  286. *Order: DOC_SETUP.4
  287. *Cmd: "<1B>0<1B>C7"
  288. }
  289. }
  290. *Option: ENV_C5
  291. {
  292. *rcNameID: =ENV_C5_DISPLAY
  293. *RotateSize? : TRUE
  294. *PrintableArea: PAIR(5760, 4054)
  295. *PrintableOrigin: PAIR(180, 60)
  296. *switch: Resolution
  297. {
  298. *case: Option2
  299. {
  300. *% Warning: the following printable length is adjusted (4054->4052) so it is divisible by the resolution Y scale.
  301. *PrintableArea: PAIR(5760, 4052)
  302. }
  303. *case: Option3
  304. {
  305. *% Warning: the following printable length is adjusted (4054->4052) so it is divisible by the resolution Y scale.
  306. *PrintableArea: PAIR(5760, 4052)
  307. }
  308. }
  309. *Command: CmdSelect
  310. {
  311. *Order: DOC_SETUP.4
  312. *Cmd: "<1B>0<1B>C3"
  313. }
  314. }
  315. *Option: ENV_MONARCH
  316. {
  317. *rcNameID: =ENV_MONARCH_DISPLAY
  318. *RotateSize? : TRUE
  319. *PrintableArea: PAIR(5040, 2254)
  320. *PrintableOrigin: PAIR(180, 60)
  321. *switch: Resolution
  322. {
  323. *case: Option2
  324. {
  325. *% Warning: the following printable length is adjusted (2254->2252) so it is divisible by the resolution Y scale.
  326. *PrintableArea: PAIR(5040, 2252)
  327. }
  328. *case: Option3
  329. {
  330. *% Warning: the following printable length is adjusted (2254->2252) so it is divisible by the resolution Y scale.
  331. *PrintableArea: PAIR(5040, 2252)
  332. }
  333. }
  334. *Command: CmdSelect
  335. {
  336. *Order: DOC_SETUP.4
  337. *Cmd: "<1B>0<1B>C<1E>"
  338. }
  339. }
  340. *Option: CUSTOMSIZE
  341. {
  342. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  343. *MinSize: PAIR(720, 360)
  344. *MaxSize: PAIR(6120, 11080)
  345. *MaxPrintableWidth: 5760
  346. *MinLeftMargin: 120
  347. *CenterPrintable?: FALSE
  348. *TopMargin: 60
  349. *BottomMargin: 480
  350. *Command: CmdSelect
  351. {
  352. *Order: DOC_SETUP.4
  353. *Cmd: "<1B>0<1B>C" %c{(PhysPaperLength / 90) }
  354. }
  355. }
  356. }
  357. *Feature: Halftone
  358. {
  359. *rcNameID: =HALFTONING_DISPLAY
  360. *DefaultOption: HT_PATSIZE_AUTO
  361. *Option: HT_PATSIZE_AUTO
  362. {
  363. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  364. }
  365. *Option: HT_PATSIZE_SUPERCELL_M
  366. {
  367. *rcNameID: =HT_SUPERCELL_DISPLAY
  368. }
  369. *Option: HT_PATSIZE_6x6_M
  370. {
  371. *rcNameID: =HT_DITHER6X6_DISPLAY
  372. }
  373. *Option: HT_PATSIZE_8x8_M
  374. {
  375. *rcNameID: =HT_DITHER8X8_DISPLAY
  376. }
  377. }
  378. *Command: CmdStartDoc
  379. {
  380. *Order: DOC_SETUP.1
  381. *Cmd: "<1B>[\<0400B400B4001B>[T<0400000003>R<1B>6"
  382. }
  383. *Command: CmdStartPage
  384. {
  385. *Order: PAGE_SETUP.1
  386. *Cmd: "<1B>4<0D>"
  387. }
  388. *Command: CmdEndJob
  389. {
  390. *Order: JOB_FINISH.1
  391. *Cmd: "<1B>[K<010000>"
  392. }
  393. *RotateCoordinate?: FALSE
  394. *RotateRaster?: FALSE
  395. *RotateFont?: FALSE
  396. *switch: Orientation
  397. {
  398. *case: PORTRAIT
  399. {
  400. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE,TC_RA_ABLE)
  401. }
  402. *case: LANDSCAPE_CC270
  403. {
  404. *TextCaps: LIST(TC_RA_ABLE)
  405. }
  406. }
  407. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  408. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  409. *MaxLineSpacing: 255
  410. *XMoveThreshold: *
  411. *XMoveUnit: 120
  412. *Command: CmdXMoveRelRight { *Cmd : "<1B>d" %l{(DestXRel / 6) } }
  413. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 4) } }
  414. *Command: CmdCR { *Cmd : "<0D>" }
  415. *Command: CmdLF { *Cmd : "<0A>" }
  416. *Command: CmdFF { *Cmd : "<0C>" }
  417. *Command: CmdBackSpace { *Cmd : "<08>" }
  418. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  419. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  420. *% Error: no Abs or Rel YMoveCommands found. Correct it manually.
  421. *EjectPageWithFF?: TRUE
  422. *OutputDataFormat: V_BYTE
  423. *OptimizeLeftBound?: FALSE
  424. *CursorXAfterSendBlockData: AT_GRXDATA_END
  425. *CursorYAfterSendBlockData: NO_MOVE
  426. *DefaultFont: 69
  427. *DefaultCTT: -2
  428. *switch: Orientation
  429. {
  430. *case: PORTRAIT
  431. {
  432. *DeviceFonts: LIST(68,69,70,71,72,73,74,75)
  433. }
  434. *case: LANDSCAPE_CC270
  435. {
  436. *DeviceFonts: LIST()
  437. }
  438. }
  439. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  440. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  441. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  442. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
  443. *Command: CmdSelectSingleByteMode { *Cmd : "<1B>p<01>" }
  444. *Command: CmdSelectDoubleByteMode { *Cmd : "<1B>p<00>" }