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.

839 lines
25 KiB

  1. *% Common Macros
  2. *Macros: ResourceIDs
  3. {
  4. *% Font Resource (UFM)
  5. RC_FONT_ROMAN : 1
  6. RC_FONT_SANSRF : 2
  7. RC_FONT_COURIER : 3
  8. RC_FONT_COURIERI : 4
  9. RC_FONT_COURIERB : 5
  10. RC_FONT_COURIERZ : 6
  11. RC_FONT_SYMBOL : 7
  12. RC_FONT_SYMBOLIC : 8
  13. RC_FONT_DUTCH : 33
  14. RC_FONT_DUTCHI : 34
  15. RC_FONT_DUTCHB : 35
  16. RC_FONT_DUTCHZ : 36
  17. RC_FONT_SWISS : 37
  18. RC_FONT_SWISSI : 38
  19. RC_FONT_SWISSB : 39
  20. RC_FONT_SWISSZ : 40
  21. RC_FONT_MOREWB : 43
  22. @j: *% Font Resource (UFM):Japanese
  23. @j: RC_FONT_MINCHO : 52
  24. @j: RC_FONT_MINCHOV : 53
  25. @j: RC_FONT_KGOTHIC : 54
  26. @j: RC_FONT_KGOTHICV : 55
  27. @j: RC_FONT_MGOTHIC : 56
  28. @j: RC_FONT_MGOTHICV : 57
  29. @j: RC_FONT_KYOUKA : 58
  30. @j: RC_FONT_KYOUKAV : 59
  31. @j: RC_FONT_SHOUKAI : 60
  32. @j: RC_FONT_SHOUKAIV : 61
  33. @j: RC_FONT_MOUHITSU : 62
  34. @j: RC_FONT_MOUHITSV : 63
  35. @j: RC_FONT_FMINB : 64
  36. @j: RC_FONT_FMINBV : 65
  37. @j: RC_FONT_FGOB : 66
  38. @j: RC_FONT_FGOBV : 67
  39. @j: RC_FONT_FMGOT : 68
  40. @j: RC_FONT_FMGOTV : 69
  41. @j:
  42. @c: *% Font Resource (UFM):ChineseT
  43. @c: RC_FONT_SUNGC : 70
  44. @c: RC_FONT_SUNGCV : 71
  45. @c: RC_FONT_SUNGCL : 72
  46. @c: RC_FONT_SUNGCLV : 73
  47. @c: RC_FONT_SUNGCB : 74
  48. @c: RC_FONT_SUNGCBV : 75
  49. @c: RC_FONT_KAIC : 76
  50. @c: RC_FONT_KAICV : 77
  51. @c: RC_FONT_KAICL : 78
  52. @c: RC_FONT_KAICLV : 79
  53. @c: RC_FONT_KAICB : 80
  54. @c: RC_FONT_KAICBV : 81
  55. @c: RC_FONT_YUANGC : 82
  56. @c: RC_FONT_YUANGCV : 83
  57. @c: RC_FONT_YUANGCL : 84
  58. @c: RC_FONT_YUANGCLV : 85
  59. @c: RC_FONT_YUANGCB : 86
  60. @c: RC_FONT_YUANGCBV : 87
  61. @c: RC_FONT_HEIC : 88
  62. @c: RC_FONT_HEICV : 89
  63. @c: RC_FONT_HEICL : 90
  64. @c: RC_FONT_HEICLV : 91
  65. @c: RC_FONT_HEICB : 92
  66. @c: RC_FONT_HEICBV : 93
  67. @c: RC_FONT_LIC : 94
  68. @c: RC_FONT_LICV : 95
  69. @c: RC_FONT_FSUNGC : 96
  70. @c: RC_FONT_FSUNGCV : 97
  71. @c: RC_FONT_FSUNGCL : 98
  72. @c: RC_FONT_FSUNGCLV : 99
  73. @c: RC_FONT_FSUNGCB : 100
  74. @c: RC_FONT_FSUNGCBV : 101
  75. @c: RC_FONT_SHINGC : 102
  76. @c: RC_FONT_SHINGCV : 103
  77. @c: RC_FONT_SHINYIC : 104
  78. @c: RC_FONT_SHINYICV : 105
  79. @c:
  80. @k: *% Font Resource (UFM):ChineseS
  81. @k: RC_FONT_SONGK : 106
  82. @k: RC_FONT_SONGKV : 107
  83. @k: RC_FONT_HEIK : 108
  84. @k: RC_FONT_HEIKV : 109
  85. @k: RC_FONT_KAIK : 110
  86. @k: RC_FONT_KAIKV : 111
  87. @k: RC_FONT_FSONGK : 112
  88. @k: RC_FONT_FSONGKV : 113
  89. @k:
  90. @h: *% Font Resource (UFM):Korean
  91. @h: RC_FONT_MYUNGH : 114
  92. @h: RC_FONT_MYUNGHV : 115
  93. @h: RC_FONT_MYUNGHB : 116
  94. @h: RC_FONT_MYUNGHBV : 117
  95. @h: RC_FONT_GOTHIH : 118
  96. @h: RC_FONT_GOTHIHV : 119
  97. @h: RC_FONT_GOTHIHB : 120
  98. @h: RC_FONT_GOTHIHBV : 121
  99. @h: RC_FONT_DINARH : 122
  100. @h: RC_FONT_DINARHV : 123
  101. @h: RC_FONT_DINARHB : 124
  102. @h: RC_FONT_DINARHBV : 125
  103. @h: RC_FONT_GUNGH : 126
  104. @h: RC_FONT_GUNGHV : 127
  105. @h: RC_FONT_GUNGHB : 128
  106. @h: RC_FONT_GUNGHBV : 129
  107. @h: RC_FONT_SAMMUH : 130
  108. @h: RC_FONT_SAMMUHV : 131
  109. @h: RC_FONT_SAMMUHB : 132
  110. @h: RC_FONT_SAMMUHBV : 133
  111. @h: RC_FONT_PILGIH : 134
  112. @h: RC_FONT_PILGIHV : 135
  113. @h: RC_FONT_PILGIHB : 136
  114. @h: RC_FONT_PILGIHBV : 137
  115. @h: RC_FONT_YETCHH : 138
  116. @h: RC_FONT_YETCHHV : 139
  117. @h: RC_FONT_YETCHHB : 140
  118. @h: RC_FONT_YETCHHBV : 141
  119. @h:
  120. *% TTFS:Latin; valid only when optional fonts(Swiss721, etc.) provided
  121. RC_TTF_ARIAL : 150 *% L"Arial"
  122. RC_DF_SWISS721 : 151 *% L"Swiss721"
  123. RC_TTF_COURIERNEW : 152 *% L"Courier New"
  124. RC_DF_COURIER : 153 *% L"Courier"
  125. RC_TTF_SYMBOL : 154 *% L"Symbol"
  126. RC_DF_SYMBOLIC : 156 *% L"Symbolic"
  127. RC_TTF_TIMESNR : 157 *% L"Times New Roman"
  128. RC_DF_DUTCH801 : 158 *% L"Dutch801"
  129. RC_TTF_WINGDINGS : 159 *% L"Wingdings"
  130. RC_DF_MOREWINGBATS : 160 *% L"MoreWingBats"
  131. @j: *% TTFS:Japanese
  132. @j: RC_TTF_MSMINCHO : 180
  133. @j: RC_DF_MINCHO : 181
  134. @j: RC_TTF_MSMINCHOV : 182
  135. @j: RC_DF_MINCHOV : 183
  136. @j: RC_TTF_MSGOTHIC : 184
  137. @j: RC_DF_GOTHIC : 185
  138. @j: RC_TTF_MSGOTHICV : 186
  139. @j: RC_DF_GOTHICV : 187
  140. @j:
  141. @j: *% TTFS:Japanese in English
  142. @j: RC_TTF_MSMINCHO_E : 190
  143. @j: RC_TTF_MSMINCHOV_E : 191
  144. @j: RC_TTF_MSGOTHIC_E : 192
  145. @j: RC_TTF_MSGOTHICV_E : 193
  146. @j:
  147. @c: *% TTFS:ChineseT
  148. @c: RC_TTF_LMING : 200 *% MingLiU
  149. @c: RC_DF_SUNGCL : 201 *% sungcl
  150. @c: RC_TTF_LMINGV : 202 *% @MingLiU
  151. @c: RC_DF_SUNGCLV : 203 *% sungclv
  152. @c:
  153. @c: *% TTFS:ChineseT in English
  154. @c: RC_TTF_LMING_E : 204
  155. @c: RC_TTF_LMINGV_E : 205
  156. @c:
  157. @k: *% TTFS:ChineseS
  158. @k: RC_TTF_SIMSUN : 210 *% SimSun
  159. @k: RC_DF_SONGK : 211 *% songk
  160. @k: RC_TTF_SIMSUNV : 212 *% @SimSun
  161. @k: RC_DF_SONGKV : 213 *% songkv
  162. @k: RC_TTF_SIMHEI : 214 *% SimHei
  163. @k: RC_DF_HEIK : 215 *% heik
  164. @k: RC_TTF_SIMHEIV : 216 *% @SimHei
  165. @k: RC_DF_HEIKV : 217 *% heikv
  166. @k:
  167. @k: *% TTFS:ChineseS in English
  168. @k: RC_TTF_SIMSUN_E : 218
  169. @k: RC_TTF_SIMSUNV_E : 219
  170. @k: RC_TTF_SIMHEI_E : 220
  171. @k: RC_TTF_SIMHEIV_E : 221
  172. @k:
  173. *% PaperSize
  174. RC_STR_HLT : 257 *% L"HalfLetter 5.5 x 8.5 in"
  175. RC_STR_GLG : 258 *% L"Government Legal 8.5 x 13.0 in"
  176. RC_STR_GLT : 259 *% L"Government Letter 8.0 x 10.5 in"
  177. RC_STR_F4 : 260 *% L"F4 210 x 330 mm"
  178. RC_STR_C10 : 261 *% L"Commercial 10 4.125 x 9.5 in"
  179. RC_STR_A3P : 262 *% L"A3+ 329 x 483 mm"
  180. RC_STR_A3W : 263 *% L"A3 Wide 328 x 453 mm"
  181. RC_STR_IB5 : 264 *% L"International-B5 176 x 250 mm"
  182. @j: *% PaperSize:Japanese
  183. @j: *% RC_STR_A3N : 301 *% L"A3��� 329 x 483 mm"
  184. @j:
  185. @c: *% PaperSize:ChineseT
  186. @c: RC_STR_8VO : 265 *% L"8vo 275 x 395 mm"
  187. @c: RC_STR_16MO : 266 *% L"16mo 198 x 275 mm"
  188. @c:
  189. *% PaperSource
  190. RC_STR_CST : 270 *% L"Paper Cassette"
  191. RC_STR_CST1 : 271 *% L"Lower Paper Cassette 1"
  192. RC_STR_CST2 : 272 *% L"Lower Paper Cassette 2"
  193. RC_STR_CST3 : 273 *% L"Lower Paper Cassette 3"
  194. RC_STR_CST4 : 274 *% L"Lower Paper Cassette 14"
  195. RC_STR_TRAY : 275 *% L"Paper Tray"
  196. @j: RC_STR_MMFDR : 276 *% L"Multimedia Feeder (Jpn)"
  197. RC_STR_LCST : 277 *% L"Lower Paper Cassette"
  198. @j: RC_STR_AUTOCHG : 278 *% L"Auto Change (Jpn)"
  199. RC_STR_FTRAY : 279 *% L"Front Tray"
  200. RC_STR_AUTOSEL : 280 *% L"Auto Select"
  201. RC_STR_MPTRAY : 281 *% L"MP Tray"
  202. @j:
  203. @j: *% FontCartridgeName:Japanese
  204. @j: RC_STR_MARUGOT : 290
  205. @j: RC_STR_KYOKASHO : 291
  206. @j: RC_STR_KAISHO : 292
  207. @j: RC_STR_GYOSHO : 293
  208. @j: RC_STR_FMINFKGOT : 294
  209. @j: RC_STR_FMARUGOT : 295
  210. @c: *% FontCartridgeName:ChineseT
  211. @c: RC_STR_FSSSY : 296 *% L"FanSung,Shing,ShinYi Font Cartridge"
  212. @c: RC_STR_LI : 297 *% L"Li Font ROM"
  213. @c: RC_STR_FANSUNG : 298 *% L"FanSung Font ROM"
  214. @c: RC_STR_SHING : 299 *% L"Shing Font ROM"
  215. @h: *% FontCartridgeName:Korean
  216. @h: RC_STR_PLYTCH : 300 *% L"Pilgi,Yetche ROM Module"
  217. @h:
  218. *% Custom Features
  219. RC_STR_THICK : 323 *% L"Thick"
  220. RC_STR_THICK_N : 324 *% L"Thick Narrow"
  221. RC_STR_THIN : 325 *% L"Thin"
  222. RC_STR_RECTFILL : 385 *% L"Vector Graphics"
  223. RC_STR_ENABLED : 386 *% L"Enabled"
  224. RC_STR_DISABLED : 387 *% L"Disabled"
  225. RC_STR_OPTION_ON : 388 *% L"Installed"
  226. RC_STR_OPTION_OFF: 389 *% L"Not Installed"
  227. @j: *% Custom Features:Japanese
  228. @j: RC_STR_VPADJUST : 391 *% L"�c�����́C�D�̈ʒu�␳"
  229. @j:
  230. *% Custom Feature Duplex
  231. RC_STR_DUPLEXUNIT : 395 *% L"Duplex Unit(option)"
  232. }
  233. *Macros: OEMCallbackIDs
  234. {
  235. SET_LCID_J : 10 *% 10 + 0x00000000(=LCID_JPN)
  236. SET_LCID_C : 65546 *% 10 + 0x00010000(=LCID_CHT)
  237. SET_LCID_H : 196618 *% 10 + 0x00030000(=LCID_KOR)
  238. SET_LCID_K : 131082 *% 10 + 0x00020000(=LCID_CHS)
  239. TEXT_PRN_DIRECTION : 20 *% (PrintDirInCCDegrees)
  240. TEXT_SINGLE_BYTE : 21 *% (FontBold,FontItalic)
  241. TEXT_DOUBLE_BYTE : 22 *% (FontBold,FontItalic)
  242. TEXT_BOLD : 23 *% (FontBold)
  243. TEXT_ITALIC : 24 *% (FontItalic)
  244. TEXT_HORIZONTAL : 25 *% ()
  245. TEXT_VERTICAL : 26 *% ()
  246. TEXT_NO_VPADJUST : 27 *% ()
  247. DOWNLOAD_SELECT_FONT_ID : 30 *% (CurrentFontID)
  248. DOWNLOAD_DELETE_FONT : 31 *% (CurrentFontID)
  249. DOWNLOAD_DELETE_ALLFONT : 32 *% ()
  250. DOWNLOAD_SET_FONT_ID : 33 *% (CurrentFontID)
  251. DOWNLOAD_SET_CHAR_CODE : 34 *% (NextGlyph)
  252. }
  253. *Macros: TTFDownloadCtrls
  254. {
  255. DOWNLOAD_MIN_FONT_ID : 512
  256. DOWNLOAD_MIN_FONT_ID_0 : 0
  257. DOWNLOAD_MIN_FONT_ID_NO_DBCS : 1536 *% 512 + 1024
  258. DOWNLOAD_MAX_FONT_ID : 535
  259. DOWNLOAD_MAX_FONT_ID_10 : 521 *% 512 + 10 - 1
  260. DOWNLOAD_MAX_FONT_ID_5 : 516 *% 512 + 5 - 1
  261. DOWNLOAD_MAX_FONT_ID_0 : 0
  262. DOWNLOAD_MAX_FONT_ID_NO_DBCS : 1559 *% 535 + 1024
  263. DOWNLOAD_MAX_FONTS : 24
  264. DOWNLOAD_MAX_FONTS_10 : 10
  265. DOWNLOAD_MAX_FONTS_5 : 5
  266. DOWNLOAD_MAX_FONTS_0 : 0
  267. DOWNLOAD_MIN_GLYPH_ID : 32
  268. DOWNLOAD_MAX_GLYPH_ID : 543
  269. }
  270. *Macros: TTFSubstCtrls
  271. {
  272. TTFS_ENABLED : TRUE
  273. }
  274. *% BlockMacros for PaperSize feature
  275. *BlockMacro: BM_PS_A3
  276. {
  277. *rcNameID: =A3_DISPLAY
  278. *switch: Orientation
  279. {
  280. *case: PORTRAIT
  281. {
  282. *PrintableArea: PAIR(13552, 19360)
  283. *PrintableOrigin: PAIR(240, 240)
  284. *CursorOrigin: PAIR(240, 240)
  285. *Command: CmdSelect
  286. {
  287. *Order: DOC_SETUP.40
  288. *Cmd: "<1D>13psE"
  289. }
  290. }
  291. *case: LANDSCAPE_CC90
  292. {
  293. *PrintableArea: PAIR(13552, 19360)
  294. *PrintableOrigin: PAIR(240, 240)
  295. *CursorOrigin: PAIR(240, 19600)
  296. *Command: CmdSelect
  297. {
  298. *Order: DOC_SETUP.40
  299. *Cmd: "<1D>13psE<1D>1poE"
  300. }
  301. }
  302. }
  303. }
  304. *BlockMacro: BM_PS_A4
  305. {
  306. *rcNameID: =A4_DISPLAY
  307. *switch: Orientation
  308. {
  309. *case: PORTRAIT
  310. {
  311. *PrintableArea: PAIR(9440, 13552)
  312. *PrintableOrigin: PAIR(240, 240)
  313. *CursorOrigin: PAIR(240, 240)
  314. *Command: CmdSelect
  315. {
  316. *Order: DOC_SETUP.40
  317. *Cmd: "<1D>14psE"
  318. }
  319. }
  320. *case: LANDSCAPE_CC90
  321. {
  322. *PrintableArea: PAIR(9440, 13552)
  323. *PrintableOrigin: PAIR(240, 240)
  324. *CursorOrigin: PAIR(240, 13792)
  325. *Command: CmdSelect
  326. {
  327. *Order: DOC_SETUP.40
  328. *Cmd: "<1D>14psE<1D>1poE"
  329. }
  330. }
  331. }
  332. }
  333. *BlockMacro: BM_PS_A5
  334. {
  335. *rcNameID: =A5_DISPLAY
  336. *switch: Orientation
  337. {
  338. *case: PORTRAIT
  339. {
  340. *PrintableArea: PAIR(6512, 9440)
  341. *PrintableOrigin: PAIR(240, 240)
  342. *CursorOrigin: PAIR(240, 240)
  343. *Command: CmdSelect
  344. {
  345. *Order: DOC_SETUP.40
  346. *Cmd: "<1D>15psE"
  347. }
  348. }
  349. *case: LANDSCAPE_CC90
  350. {
  351. *PrintableArea: PAIR(6512, 9440)
  352. *PrintableOrigin: PAIR(240, 240)
  353. *CursorOrigin: PAIR(240, 9680)
  354. *Command: CmdSelect
  355. {
  356. *Order: DOC_SETUP.40
  357. *Cmd: "<1D>15psE<1D>1poE"
  358. }
  359. }
  360. }
  361. }
  362. *BlockMacro: BM_PS_B5
  363. {
  364. *rcNameID: =B5_DISPLAY
  365. *switch: Orientation
  366. {
  367. *case: PORTRAIT
  368. {
  369. *PrintableArea: PAIR(8120, 11664)
  370. *PrintableOrigin: PAIR(240, 240)
  371. *CursorOrigin: PAIR(240, 240)
  372. *Command: CmdSelect
  373. {
  374. *Order: DOC_SETUP.40
  375. *Cmd: "<1D>25psE"
  376. }
  377. }
  378. *case: LANDSCAPE_CC90
  379. {
  380. *PrintableArea: PAIR(8120, 11664)
  381. *PrintableOrigin: PAIR(240, 240)
  382. *CursorOrigin: PAIR(240, 11904)
  383. *Command: CmdSelect
  384. {
  385. *Order: DOC_SETUP.40
  386. *Cmd: "<1D>25psE<1D>1poE"
  387. }
  388. }
  389. }
  390. }
  391. *BlockMacro: BM_PS_LT
  392. {
  393. *rcNameID: =LETTER_DISPLAY
  394. *switch: Orientation
  395. {
  396. *case: PORTRAIT
  397. {
  398. *PrintableArea: PAIR(9720, 12720)
  399. *PrintableOrigin: PAIR(240, 240)
  400. *CursorOrigin: PAIR(240, 240)
  401. *Command: CmdSelect
  402. {
  403. *Order: DOC_SETUP.40
  404. *Cmd: "<1D>30psE"
  405. }
  406. }
  407. *case: LANDSCAPE_CC90
  408. {
  409. *PrintableArea: PAIR(9720, 12720)
  410. *PrintableOrigin: PAIR(240, 240)
  411. *CursorOrigin: PAIR(240, 12960)
  412. *Command: CmdSelect
  413. {
  414. *Order: DOC_SETUP.40
  415. *Cmd: "<1D>30psE<1D>1poE"
  416. }
  417. }
  418. }
  419. }
  420. *BlockMacro: BM_PS_HLT
  421. {
  422. *rcNameID: =RC_STR_HLT
  423. *PageDimensions: PAIR(6600, 10200)
  424. *switch: Orientation
  425. {
  426. *case: PORTRAIT
  427. {
  428. *PrintableArea: PAIR(6120, 9720)
  429. *PrintableOrigin: PAIR(240, 240)
  430. *CursorOrigin: PAIR(240, 240)
  431. *Command: CmdSelect
  432. {
  433. *Order: DOC_SETUP.40
  434. *Cmd: "<1D>31psE"
  435. }
  436. }
  437. *case: LANDSCAPE_CC90
  438. {
  439. *PrintableArea: PAIR(6120, 9720)
  440. *PrintableOrigin: PAIR(240, 240)
  441. *CursorOrigin: PAIR(240, 9960)
  442. *Command: CmdSelect
  443. {
  444. *Order: DOC_SETUP.40
  445. *Cmd: "<1D>31psE<1D>1poE"
  446. }
  447. }
  448. }
  449. }
  450. *BlockMacro: BM_PS_LGL
  451. {
  452. *rcNameID: =LEGAL_DISPLAY
  453. *switch: Orientation
  454. {
  455. *case: PORTRAIT
  456. {
  457. *PrintableArea: PAIR(9720, 16320)
  458. *PrintableOrigin: PAIR(240, 240)
  459. *CursorOrigin: PAIR(240, 240)
  460. *Command: CmdSelect
  461. {
  462. *Order: DOC_SETUP.40
  463. *Cmd: "<1D>32psE"
  464. }
  465. }
  466. *case: LANDSCAPE_CC90
  467. {
  468. *PrintableArea: PAIR(9720, 16320)
  469. *PrintableOrigin: PAIR(240, 240)
  470. *CursorOrigin: PAIR(240, 16560)
  471. *Command: CmdSelect
  472. {
  473. *Order: DOC_SETUP.40
  474. *Cmd: "<1D>32psE<1D>1poE"
  475. }
  476. }
  477. }
  478. }
  479. *BlockMacro: BM_PS_EXE
  480. {
  481. *rcNameID: =EXECUTIVE_DISPLAY
  482. *switch: Orientation
  483. {
  484. *case: PORTRAIT
  485. {
  486. *PrintableArea: PAIR(8220, 12120)
  487. *PrintableOrigin: PAIR(240, 240)
  488. *CursorOrigin: PAIR(240, 240)
  489. *Command: CmdSelect
  490. {
  491. *Order: DOC_SETUP.40
  492. *Cmd: "<1D>33psE"
  493. }
  494. }
  495. *case: LANDSCAPE_CC90
  496. {
  497. *PrintableArea: PAIR(8220, 12120)
  498. *PrintableOrigin: PAIR(240, 240)
  499. *CursorOrigin: PAIR(240, 12360)
  500. *Command: CmdSelect
  501. {
  502. *Order: DOC_SETUP.40
  503. *Cmd: "<1D>33psE<1D>1poE"
  504. }
  505. }
  506. }
  507. }
  508. *BlockMacro: BM_PS_GLG
  509. {
  510. *rcNameID: =RC_STR_GLG
  511. *PageDimensions: PAIR(10200, 15600)
  512. *switch: Orientation
  513. {
  514. *case: PORTRAIT
  515. {
  516. *PrintableArea: PAIR(9720, 15120)
  517. *PrintableOrigin: PAIR(240, 240)
  518. *CursorOrigin: PAIR(240, 240)
  519. *Command: CmdSelect
  520. {
  521. *Order: DOC_SETUP.40
  522. *Cmd: "<1D>34psE"
  523. }
  524. }
  525. *case: LANDSCAPE_CC90
  526. {
  527. *PrintableArea: PAIR(9720, 15120)
  528. *PrintableOrigin: PAIR(240, 240)
  529. *CursorOrigin: PAIR(240, 15360)
  530. *Command: CmdSelect
  531. {
  532. *Order: DOC_SETUP.40
  533. *Cmd: "<1D>34psE<1D>1poE"
  534. }
  535. }
  536. }
  537. }
  538. *BlockMacro: BM_PS_GLT
  539. {
  540. *rcNameID: =RC_STR_GLT
  541. *PageDimensions: PAIR(9600, 12600)
  542. *switch: Orientation
  543. {
  544. *case: PORTRAIT
  545. {
  546. *PrintableArea: PAIR(9120, 12120)
  547. *PrintableOrigin: PAIR(240, 240)
  548. *CursorOrigin: PAIR(240, 240)
  549. *Command: CmdSelect
  550. {
  551. *Order: DOC_SETUP.40
  552. *Cmd: "<1D>35psE"
  553. }
  554. }
  555. *case: LANDSCAPE_CC90
  556. {
  557. *PrintableArea: PAIR(9120, 12120)
  558. *PrintableOrigin: PAIR(240, 240)
  559. *CursorOrigin: PAIR(240, 12360)
  560. *Command: CmdSelect
  561. {
  562. *Order: DOC_SETUP.40
  563. *Cmd: "<1D>35psE<1D>1poE"
  564. }
  565. }
  566. }
  567. }
  568. *BlockMacro: BM_PS_F4
  569. {
  570. *rcNameID: =RC_STR_F4
  571. *PageDimensions: PAIR(9920, 15592)
  572. *switch: Orientation
  573. {
  574. *case: PORTRAIT
  575. {
  576. *PrintableArea: PAIR(9440, 15112)
  577. *PrintableOrigin: PAIR(240, 240)
  578. *CursorOrigin: PAIR(240, 240)
  579. *Command: CmdSelect
  580. {
  581. *Order: DOC_SETUP.40
  582. *Cmd: "<1D>37psE"
  583. }
  584. }
  585. *case: LANDSCAPE_CC90
  586. {
  587. *PrintableArea: PAIR(9440, 15112)
  588. *PrintableOrigin: PAIR(240, 240)
  589. *CursorOrigin: PAIR(240, 15352)
  590. *Command: CmdSelect
  591. {
  592. *Order: DOC_SETUP.40
  593. *Cmd: "<1D>37psE<1D>1poE"
  594. }
  595. }
  596. }
  597. }
  598. *BlockMacro: BM_PS_MON
  599. {
  600. *rcNameID: =ENV_MONARCH_DISPLAY
  601. *switch: Orientation
  602. {
  603. *case: PORTRAIT
  604. {
  605. *PrintableArea: PAIR(4168, 8520)
  606. *PrintableOrigin: PAIR(240, 240)
  607. *CursorOrigin: PAIR(240, 240)
  608. *Command: CmdSelect
  609. {
  610. *Order: DOC_SETUP.40
  611. *Cmd: "<1D>80psE"
  612. }
  613. }
  614. *case: LANDSCAPE_CC90
  615. {
  616. *PrintableArea: PAIR(4168, 8520)
  617. *PrintableOrigin: PAIR(240, 240)
  618. *CursorOrigin: PAIR(240, 8760)
  619. *Command: CmdSelect
  620. {
  621. *Order: DOC_SETUP.40
  622. *Cmd: "<1D>80psE<1D>1poE"
  623. }
  624. }
  625. }
  626. }
  627. *BlockMacro: BM_PSB_E10
  628. {
  629. *switch: Orientation
  630. {
  631. *case: PORTRAIT
  632. {
  633. *PrintableArea: PAIR(4468, 10920)
  634. *PrintableOrigin: PAIR(240, 240)
  635. *CursorOrigin: PAIR(240, 240)
  636. *Command: CmdSelect
  637. {
  638. *Order: DOC_SETUP.40
  639. *Cmd: "<1D>81psE"
  640. }
  641. }
  642. *case: LANDSCAPE_CC90
  643. {
  644. *PrintableArea: PAIR(4468, 10920)
  645. *PrintableOrigin: PAIR(240, 240)
  646. *CursorOrigin: PAIR(240, 11160)
  647. *Command: CmdSelect
  648. {
  649. *Order: DOC_SETUP.40
  650. *Cmd: "<1D>81psE<1D>1poE"
  651. }
  652. }
  653. }
  654. }
  655. *BlockMacro: BM_PS_C10
  656. {
  657. *rcNameID: =RC_STR_C10
  658. *PageDimensions: PAIR(4948, 11400)
  659. *InsertBlock: =BM_PSB_E10
  660. }
  661. *BlockMacro: BM_PS_E10
  662. {
  663. *rcNameID: =ENV_10_DISPLAY
  664. *InsertBlock: =BM_PSB_E10
  665. }
  666. *BlockMacro: BM_PS_DL
  667. {
  668. *rcNameID: =ENV_DL_DISPLAY
  669. *switch: Orientation
  670. {
  671. *case: PORTRAIT
  672. {
  673. *PrintableArea: PAIR(4716, 9912)
  674. *PrintableOrigin: PAIR(240, 240)
  675. *CursorOrigin: PAIR(240, 240)
  676. *Command: CmdSelect
  677. {
  678. *Order: DOC_SETUP.40
  679. *Cmd: "<1D>90psE"
  680. }
  681. }
  682. *case: LANDSCAPE_CC90
  683. {
  684. *PrintableArea: PAIR(4716, 9912)
  685. *PrintableOrigin: PAIR(240, 240)
  686. *CursorOrigin: PAIR(240, 10152)
  687. *Command: CmdSelect
  688. {
  689. *Order: DOC_SETUP.40
  690. *Cmd: "<1D>90psE<1D>1poE"
  691. }
  692. }
  693. }
  694. }
  695. *BlockMacro: BM_PS_C5
  696. {
  697. *rcNameID: =ENV_C5_DISPLAY
  698. *switch: Orientation
  699. {
  700. *case: PORTRAIT
  701. {
  702. *PrintableArea: PAIR(7172, 10336)
  703. *PrintableOrigin: PAIR(240, 240)
  704. *CursorOrigin: PAIR(240, 240)
  705. *Command: CmdSelect
  706. {
  707. *Order: DOC_SETUP.40
  708. *Cmd: "<1D>91psE"
  709. }
  710. }
  711. *case: LANDSCAPE_CC90
  712. {
  713. *PrintableArea: PAIR(7172, 10336)
  714. *PrintableOrigin: PAIR(240, 240)
  715. *CursorOrigin: PAIR(240, 10576)
  716. *Command: CmdSelect
  717. {
  718. *Order: DOC_SETUP.40
  719. *Cmd: "<1D>91psE<1D>1poE"
  720. }
  721. }
  722. }
  723. }
  724. *BlockMacro: BM_PS_TBLD
  725. {
  726. *rcNameID: =TABLOID_DISPLAY
  727. *switch: Orientation
  728. {
  729. *case: PORTRAIT
  730. {
  731. *PrintableArea: PAIR(12720, 19920)
  732. *PrintableOrigin: PAIR(240, 240)
  733. *CursorOrigin: PAIR(240, 240)
  734. *Command: CmdSelect
  735. {
  736. *Order: DOC_SETUP.40
  737. *Cmd: "<1D>36psE"
  738. }
  739. }
  740. *case: LANDSCAPE_CC90
  741. {
  742. *PrintableArea: PAIR(12720, 19920)
  743. *PrintableOrigin: PAIR(240, 240)
  744. *CursorOrigin: PAIR(240, 20160)
  745. *Command: CmdSelect
  746. {
  747. *Order: DOC_SETUP.40
  748. *Cmd: "<1D>36psE<1D>1poE"
  749. }
  750. }
  751. }
  752. }
  753. *BlockMacro: BM_PS_B4
  754. {
  755. *rcNameID: =B4_DISPLAY
  756. *switch: Orientation
  757. {
  758. *case: PORTRAIT
  759. {
  760. *PrintableArea: PAIR(11664, 16720)
  761. *PrintableOrigin: PAIR(240, 240)
  762. *CursorOrigin: PAIR(240, 240)
  763. *Command: CmdSelect
  764. {
  765. *Order: DOC_SETUP.40
  766. *Cmd: "<1D>24psE"
  767. }
  768. }
  769. *case: LANDSCAPE_CC90
  770. {
  771. *PrintableArea: PAIR(11664, 16720)
  772. *PrintableOrigin: PAIR(240, 240)
  773. *CursorOrigin: PAIR(240, 16960)
  774. *Command: CmdSelect
  775. {
  776. *Order: DOC_SETUP.40
  777. *Cmd: "<1D>24psE<1D>1poE"
  778. }
  779. }
  780. }
  781. }
  782. *BlockMacro: BM_PSB_CTM
  783. {
  784. *MinLeftMargin: 240
  785. *CenterPrintable?: FALSE
  786. *switch: Orientation
  787. {
  788. *case: PORTRAIT
  789. {
  790. *Command: CmdSelect
  791. {
  792. *Order: DOC_SETUP.40
  793. *Cmd: "<1D>-1;" %d{(PhysPaperWidth / 2) }";" %d{(PhysPaperLength / 2) }"psE"
  794. }
  795. }
  796. *case: LANDSCAPE_CC90
  797. {
  798. *Command: CmdSelect
  799. {
  800. *Order: DOC_SETUP.40
  801. *Cmd: "<1D>-1;" %d{(PhysPaperWidth / 2) }";" %d{(PhysPaperLength / 2) }"psE<1D>1poE"
  802. }
  803. }
  804. }
  805. }
  806. *BlockMacro: BM_RECTFILL
  807. {
  808. *Command: CmdSetRectWidth { *Cmd: "" }
  809. *Command: CmdSetRectHeight { *Cmd: "" }
  810. *Command: CmdRectGrayFill
  811. {
  812. *Cmd: "<1D>0;0;"%d{GrayPercentage}"spE<1D>1owE<1D>1tsE<1D>1dmG"
  813. + "<1D>"%d{(DestX / 2)}";"%d{(DestY / 2)}";"
  814. + %d{((DestX + (RectXSize - 2)) / 2)}";"%d{((DestY + (RectYSize - 2)) / 2)}";0rG"
  815. + "<1D>0;0;100spE<1D>0owE<1D>0tsE"
  816. }
  817. *Command: CmdRectWhiteFill
  818. {
  819. *Cmd: "<1D>0;0;0spE<1D>1owE<1D>1tsE<1D>1dmG"
  820. + "<1D>"%d{(DestX / 2)}";"%d{(DestY / 2)}";"
  821. + %d{((DestX + (RectXSize - 2)) / 2)}";"%d{((DestY + (RectYSize - 2)) / 2)}";0rG"
  822. + "<1D>0;0;100spE<1D>0owE<1D>0tsE"
  823. }
  824. *Command: CmdRectBlackFill
  825. {
  826. *Cmd: "<1D>0;0;100spE<1D>1owE<1D>1tsE<1D>1dmG"
  827. + "<1D>"%d{(DestX / 2)}";"%d{(DestY / 2)}";"
  828. + %d{((DestX + (RectXSize - 2)) / 2)}";"%d{((DestY + (RectYSize - 2)) / 2)}";0rG"
  829. + "<1D>0owE<1D>0tsE"
  830. }
  831. }