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.

756 lines
24 KiB

  1. // Copyright (c) 1996-1999 Microsoft Corporation
  2. /* globals.h - this file contains the
  3. definitions for all global variables
  4. used by the parser. */
  5. /* note: const PARSERPROCS gParserProcs = {
  6. has been moved to helper1.c since it is also
  7. used in kernel mode.
  8. */
  9. CONST CONSTANTDEF gConstantsTable[] =
  10. {
  11. {NULL, CL_BOOLEANTYPE},
  12. {"CL_BOOLEANTYPE", 0},
  13. {"FALSE", BT_FALSE},
  14. {"TRUE", BT_TRUE},
  15. {NULL, CL_PRINTERTYPE}, // Note each section starts with
  16. {"CL_PRINTERTYPE", 0},
  17. {"PAGE", PT_PAGE}, // Null ptr , class. This allows
  18. {"SERIAL", PT_SERIAL}, // indexing code to work.
  19. {"TTY", PT_TTY}, // indexing code to work.
  20. {NULL, CL_FEATURETYPE},
  21. {"CL_FEATURETYPE", 0},
  22. {"DOC_PROPERTY", FT_DOCPROPERTY},
  23. {"JOB_PROPERTY", FT_JOBPROPERTY},
  24. {"PRINTER_PROPERTY", FT_PRINTERPROPERTY},
  25. {NULL, CL_UITYPE},
  26. {"CL_UITYPE", 0},
  27. {"PICKMANY", UIT_PICKMANY},
  28. {"PICKONE", UIT_PICKONE},
  29. {NULL, CL_PROMPTTIME},
  30. {"CL_PROMPTTIME", 0},
  31. {"UI_SETUP", PROMPT_UISETUP},
  32. {"PRT_STARTDOC", PROMPT_PRTSTARTDOC},
  33. {NULL, CL_PAPERFEED_ORIENT}, // constants defined in print.h
  34. {"CL_PAPERFEED_ORIENT", 0},
  35. { "FACEUP_NONE", DCBA_FACEUPNONE },
  36. { "FACEUP_CENTER", DCBA_FACEUPCENTER },
  37. { "FACEUP_LEFT", DCBA_FACEUPLEFT },
  38. { "FACEUP_RIGHT", DCBA_FACEUPRIGHT },
  39. { "FACEDOWN_NONE", DCBA_FACEDOWNNONE },
  40. { "FACEDOWN_CENTER", DCBA_FACEDOWNCENTER },
  41. { "FACEDOWN_LEFT", DCBA_FACEDOWNLEFT },
  42. { "FACEDOWN_RIGHT", DCBA_FACEDOWNRIGHT },
  43. {NULL, CL_COLORPLANE},
  44. {"CL_COLORPLANE", 0},
  45. {"YELLOW", COLOR_YELLOW},
  46. {"MAGENTA", COLOR_MAGENTA},
  47. {"CYAN", COLOR_CYAN},
  48. {"BLACK", COLOR_BLACK},
  49. {"RED", COLOR_RED},
  50. {"GREEN", COLOR_GREEN},
  51. {"BLUE", COLOR_BLUE},
  52. {NULL, CL_SEQSECTION},
  53. {"CL_SEQSECTION", 0},
  54. {"JOB_SETUP", SS_JOBSETUP},
  55. {"DOC_SETUP", SS_DOCSETUP},
  56. {"PAGE_SETUP", SS_PAGESETUP},
  57. {"PAGE_FINISH", SS_PAGEFINISH},
  58. {"DOC_FINISH", SS_DOCFINISH},
  59. {"JOB_FINISH", SS_JOBFINISH},
  60. {NULL, CL_RASTERCAPS}, // BUG_BUG!!!!! placeholders
  61. {"CL_RASTERCAPS", 0},
  62. {"AT_PRINTABLE_X_ORIGIN", CXCR_AT_PRINTABLE_X_ORIGIN},
  63. {"AT_GRXDATA_ORIGIN", CXCR_AT_CURSOR_X_ORIGIN},
  64. {NULL, CL_TEXTCAPS },
  65. {"CL_TEXTCAPS", 0},
  66. {"TC_OP_CHARACTER", TEXTCAPS_OP_CHARACTER},
  67. {"TC_OP_STROKE", TEXTCAPS_OP_STROKE},
  68. {"TC_CP_STROKE", TEXTCAPS_CP_STROKE},
  69. {"TC_CR_90", TEXTCAPS_CR_90},
  70. {"TC_CR_ANY", TEXTCAPS_CR_ANY},
  71. {"TC_SF_X_YINDEP", TEXTCAPS_SF_X_YINDEP},
  72. {"TC_SA_DOUBLE", TEXTCAPS_SA_DOUBLE},
  73. {"TC_SA_INTEGER", TEXTCAPS_SA_INTEGER},
  74. {"TC_SA_CONTIN", TEXTCAPS_SA_CONTIN},
  75. {"TC_EA_DOUBLE", TEXTCAPS_EA_DOUBLE},
  76. {"TC_IA_ABLE", TEXTCAPS_IA_ABLE},
  77. {"TC_UA_ABLE", TEXTCAPS_UA_ABLE},
  78. {"TC_SO_ABLE", TEXTCAPS_SO_ABLE},
  79. {"TC_RA_ABLE", TEXTCAPS_RA_ABLE},
  80. {"TC_VA_ABLE", TEXTCAPS_VA_ABLE},
  81. {NULL, CL_MEMORYUSAGE},
  82. {"CL_MEMORYUSAGE", 0},
  83. {"FONT", MEMORY_FONT},
  84. {"RASTER", MEMORY_RASTER},
  85. {"VECTOR", MEMORY_VECTOR},
  86. {NULL, CL_RESELECTFONT},
  87. {"CL_RESELECTFONT", 0},
  88. {"AFTER_GRXDATA", RESELECTFONT_AFTER_GRXDATA},
  89. {"AFTER_XMOVE", RESELECTFONT_AFTER_XMOVE},
  90. {"AFTER_FF", RESELECTFONT_AFTER_FF},
  91. {NULL, CL_OEMPRINTINGCALLBACKS},
  92. {"CL_OEMPRINTINGCALLBACKS", 0},
  93. {"OEMDownloadFontheader", OEMPC_OEMDownloadFontheader},
  94. {"OEMDownloadCharGlyph", OEMPC_OEMDownloadCharGlyph},
  95. {"OEMTTDownloadMethod", OEMPC_OEMTTDownloadMethod},
  96. {"OEMOutputCharStr", OEMPC_OEMOutputCharStr},
  97. {"OEMImageProcessing", OEMPC_OEMImageProcessing},
  98. {"OEMCompression", OEMPC_OEMCompression},
  99. {"OEMHalftonePattern", OEMPC_OEMHalftonePattern},
  100. {"OEMFilterGraphics", OEMPC_OEMFilterGraphics},
  101. {NULL, CL_CURSORXAFTERCR},
  102. {"CL_CURSORXAFTERCR", 0},
  103. {"AT_PRINTABLE_X_ORIGIN", CXCR_AT_PRINTABLE_X_ORIGIN},
  104. {"AT_CURSOR_X_ORIGIN", CXCR_AT_CURSOR_X_ORIGIN},
  105. {NULL, CL_BADCURSORMOVEINGRXMODE},
  106. {"CL_BADCURSORMOVEINGRXMODE", 0},
  107. {"X_PORTRAIT", NOCM_X_PORTRAIT},
  108. {"X_LANDSCAPE", NOCM_X_LANDSCAPE},
  109. {"Y_PORTRAIT", NOCM_Y_PORTRAIT},
  110. {"Y_LANDSCAPE", NOCM_Y_LANDSCAPE},
  111. // {NULL, CL_SIMULATEXMOVE },
  112. // {"CL_SIMULATEXMOVE", 0},
  113. // {"SPACE_CHAR", SIMXM_USE_SPACECHAR},
  114. // {"NULL_GRX", SIMXM_USE_NULLGRX},
  115. {NULL, CL_PALETTESCOPE},
  116. {"CL_PALETTESCOPE", 0},
  117. {"RASTER", PALS_FOR_RASTER},
  118. {"TEXT", PALS_FOR_TEXT},
  119. {"VECTOR", PALS_FOR_VECTOR},
  120. {NULL, CL_OUTPUTDATAFORMAT},
  121. {"CL_OUTPUTDATAFORMAT", 0},
  122. {"H_BYTE", ODF_H_BYTE},
  123. {"V_BYTE", ODF_V_BYTE},
  124. {NULL, CL_STRIPBLANKS },
  125. {"CL_STRIPBLANKS", 0},
  126. {"LEADING", SB_LEADING},
  127. {"ENCLOSED", SB_ENCLOSED},
  128. {"TRAILING", SB_TRAILING},
  129. // may be obsolete. if you delete must
  130. // also delete enum from CONSTANT_CLASSES.
  131. {NULL, CL_LANDSCAPEGRXROTATION },
  132. {"CL_LANDSCAPEGRXROTATION", 0},
  133. {"NONE", ROTATE_NONE},
  134. {"CC_90", ROTATE_90},
  135. {"CC_270", ROTATE_270},
  136. {NULL, CL_CURSORXAFTERSENDBLOCKDATA },
  137. {"CL_CURSORXAFTERSENDBLOCKDATA", 0},
  138. {"AT_GRXDATA_END", CXSBD_AT_GRXDATA_END},
  139. {"AT_GRXDATA_ORIGIN", CXSBD_AT_GRXDATA_ORIGIN},
  140. {"AT_CURSOR_X_ORIGIN", CXSBD_AT_CURSOR_X_ORIGIN},
  141. // explicitly changed to match GPD spec.
  142. {NULL, CL_CURSORYAFTERSENDBLOCKDATA },
  143. {"CL_CURSORYAFTERSENDBLOCKDATA", 0},
  144. {"NO_MOVE", CYSBD_NO_MOVE},
  145. {"AUTO_INCREMENT", CYSBD_AUTO_INCREMENT},
  146. {NULL, CL_CHARPOSITION },
  147. {"CL_CHARPOSITION", 0},
  148. {"UPPERLEFT", CP_UPPERLEFT},
  149. {"BASELINE", CP_BASELINE},
  150. // {"LOWERLEFT", CP_LOWERLEFT},
  151. {NULL, CL_FONTFORMAT},
  152. {"CL_FONTFORMAT", 0},
  153. {"HPPCL", FF_HPPCL},
  154. {"HPPCL_RES", FF_HPPCL_RES},
  155. {"HPPCL_OUTLINE", FF_HPPCL_OUTLINE},
  156. {"OEM_CALLBACK", FF_OEM_CALLBACK},
  157. {NULL, CL_QUERYDATATYPE},
  158. {"CL_QUERYDATATYPE", 0},
  159. {"DWORD", QDT_DWORD},
  160. {"CONCATENATED_STRINGS", QDT_CONCATENATED_STRINGS},
  161. {NULL, CL_YMOVEATTRIB},
  162. {"CL_YMOVEATTRIB", 0},
  163. // {"FAVOR_ABS", YMOVE_FAVOR_ABS}, dead
  164. {"FAVOR_LF", YMOVE_FAVOR_LINEFEEDSPACING},
  165. {"SEND_CR_FIRST", YMOVE_SENDCR_FIRST},
  166. {NULL, CL_DLSYMBOLSET},
  167. {"CL_DLSYMBOLSET", 0},
  168. {"PC_8", DLSS_PC8},
  169. {"ROMAN_8", DLSS_ROMAN8},
  170. {NULL, CL_CURXAFTER_RECTFILL},
  171. {"CL_CURXAFTER_RECTFILL", 0},
  172. {"AT_RECT_X_ORIGIN", CXARF_AT_RECT_X_ORIGIN},
  173. {"AT_RECT_X_END", CXARF_AT_RECT_X_END},
  174. {NULL, CL_CURYAFTER_RECTFILL},
  175. {"CL_CURYAFTER_RECTFILL", 0},
  176. {"AT_RECT_Y_ORIGIN", CYARF_AT_RECT_Y_ORIGIN},
  177. {"AT_RECT_Y_END", CYARF_AT_RECT_Y_END},
  178. #ifndef WINNT_40
  179. {NULL, CL_PRINTRATEUNIT},
  180. {"CL_PRINTRATEUNIT", 0},
  181. {"PPM", PRINTRATEUNIT_PPM},
  182. {"CPS", PRINTRATEUNIT_CPS},
  183. {"LPM", PRINTRATEUNIT_LPM},
  184. {"IPM", PRINTRATEUNIT_IPM},
  185. {"LPS", PRINTRATEUNIT_LPS}, // not supported in wingdi.h
  186. {"IPS", PRINTRATEUNIT_IPS}, // not supported
  187. #endif
  188. {NULL, CL_RASTERMODE},
  189. {"CL_RASTERMODE", 0},
  190. {"DIRECT", RASTMODE_DIRECT},
  191. {"INDEXED", RASTMODE_INDEXED},
  192. {NULL, CL_QUALITYSETTING},
  193. {"CL_QUALITYSETTING", 0},
  194. {"DRAFTQUALITY", QS_DRAFT},
  195. {"BETTERQUALITY", QS_BETTER},
  196. {"BESTQUALITY", QS_BEST},
  197. // ---- Standard Variable Names Section ---- //
  198. {NULL, CL_STANDARD_VARS},
  199. {"CL_STANDARD_VARS", 0},
  200. {"NumOfDataBytes", SV_NUMDATABYTES},
  201. {"RasterDataWidthInBytes", SV_WIDTHINBYTES},
  202. {"RasterDataHeightInPixels", SV_HEIGHTINPIXELS},
  203. {"NumOfCopies", SV_COPIES},
  204. {"PrintDirInCCDegrees", SV_PRINTDIRECTION},
  205. {"DestX", SV_DESTX},
  206. {"DestY", SV_DESTY},
  207. {"DestXRel", SV_DESTXREL},
  208. {"DestYRel", SV_DESTYREL},
  209. {"LinefeedSpacing", SV_LINEFEEDSPACING},
  210. {"RectXSize", SV_RECTXSIZE},
  211. {"RectYSize", SV_RECTYSIZE},
  212. {"GrayPercentage", SV_GRAYPERCENT},
  213. {"NextFontID", SV_NEXTFONTID},
  214. {"NextGlyph", SV_NEXTGLYPH},
  215. {"PhysPaperLength", SV_PHYSPAPERLENGTH},
  216. {"PhysPaperWidth", SV_PHYSPAPERWIDTH},
  217. {"FontHeight", SV_FONTHEIGHT},
  218. {"FontWidth", SV_FONTWIDTH},
  219. {"FontMaxWidth", SV_FONTMAXWIDTH},
  220. {"FontBold", SV_FONTBOLD},
  221. {"FontItalic", SV_FONTITALIC},
  222. {"FontUnderline", SV_FONTUNDERLINE},
  223. {"FontStrikeThru", SV_FONTSTRIKETHRU},
  224. {"CurrentFontID", SV_CURRENTFONTID},
  225. {"TextYRes", SV_TEXTYRES},
  226. {"TextXRes", SV_TEXTXRES},
  227. // #ifdef BETA2
  228. {"GraphicsYRes", SV_GRAPHICSYRES},
  229. {"GraphicsXRes", SV_GRAPHICSXRES},
  230. // #endif
  231. {"Rop3", SV_ROP3},
  232. {"RedValue", SV_REDVALUE},
  233. {"GreenValue", SV_GREENVALUE},
  234. {"BlueValue", SV_BLUEVALUE},
  235. {"PaletteIndexToProgram", SV_PALETTEINDEXTOPROGRAM},
  236. {"CurrentPaletteIndex", SV_CURRENTPALETTEINDEX},
  237. {"PatternBrushType", SV_PATTERNBRUSH_TYPE},
  238. {"PatternBrushID", SV_PATTERNBRUSH_ID},
  239. {"PatternBrushSize", SV_PATTERNBRUSH_SIZE},
  240. {"CursorOriginX", SV_CURSORORIGINX},
  241. {"CursorOriginY", SV_CURSORORIGINY},
  242. {"PageNumber", SV_PAGENUMBER} ,
  243. // ---- Unidrv Command Names Section ---- //
  244. {NULL, CL_COMMAND_NAMES},
  245. {"CL_COMMAND_NAMES", 0},
  246. {"CmdSelect", CMD_SELECT},
  247. {"CmdStartJob", CMD_STARTJOB},
  248. {"CmdStartDoc", CMD_STARTDOC},
  249. {"CmdStartPage", CMD_STARTPAGE},
  250. {"CmdEndPage", CMD_ENDPAGE},
  251. {"CmdEndDoc", CMD_ENDDOC},
  252. {"CmdEndJob", CMD_ENDJOB},
  253. {"CmdCopies", CMD_COPIES},
  254. // {"CmdCollate", CMD_COLLATE},
  255. {"CmdSleepTimeOut", CMD_SLEEPTIMEOUT},
  256. //
  257. // GENERAL
  258. //
  259. //
  260. // CURSOR CONTROL
  261. //
  262. {"CmdXMoveAbsolute", CMD_XMOVEABSOLUTE},
  263. {"CmdXMoveRelLeft", CMD_XMOVERELLEFT},
  264. {"CmdXMoveRelRight", CMD_XMOVERELRIGHT},
  265. {"CmdYMoveAbsolute", CMD_YMOVEABSOLUTE},
  266. {"CmdYMoveRelUp", CMD_YMOVERELUP},
  267. {"CmdYMoveRelDown", CMD_YMOVERELDOWN},
  268. // {"CmdXYMoveAbsolute", CMD_XYMOVEABSOLUTE},
  269. {"CmdSetSimpleRotation", CMD_SETSIMPLEROTATION},
  270. {"CmdSetAnyRotation", CMD_SETANYROTATION},
  271. {"CmdUniDirectionOn", CMD_UNIDIRECTIONON},
  272. {"CmdUniDirectionOff", CMD_UNIDIRECTIONOFF},
  273. {"CmdSetLineSpacing", CMD_SETLINESPACING},
  274. {"CmdPushCursor", CMD_PUSHCURSOR},
  275. {"CmdPopCursor", CMD_POPCURSOR},
  276. {"CmdBackSpace", CMD_BACKSPACE},
  277. {"CmdFF", CMD_FORMFEED},
  278. {"CmdCR", CMD_CARRIAGERETURN},
  279. {"CmdLF", CMD_LINEFEED},
  280. //
  281. // COLOR
  282. //
  283. {"CmdSelectBlackColor", CMD_SELECTBLACKCOLOR},
  284. {"CmdSelectRedColor", CMD_SELECTREDCOLOR},
  285. {"CmdSelectGreenColor", CMD_SELECTGREENCOLOR},
  286. {"CmdSelectYellowColor", CMD_SELECTYELLOWCOLOR},
  287. {"CmdSelectBlueColor", CMD_SELECTBLUECOLOR},
  288. {"CmdSelectMagentaColor", CMD_SELECTMAGENTACOLOR},
  289. {"CmdSelectCyanColor", CMD_SELECTCYANCOLOR},
  290. {"CmdSelectWhiteColor", CMD_SELECTWHITECOLOR},
  291. {"CmdBeginPaletteDef", CMD_BEGINPALETTEDEF},
  292. {"CmdEndPaletteDef", CMD_ENDPALETTEDEF},
  293. {"CmdDefinePaletteEntry", CMD_DEFINEPALETTEENTRY},
  294. {"CmdBeginPaletteReDef", CMD_BEGINPALETTEREDEF},
  295. {"CmdEndPaletteReDef", CMD_ENDPALETTEREDEF},
  296. {"CmdReDefinePaletteEntry", CMD_REDEFINEPALETTEENTRY},
  297. {"CmdSelectPaletteEntry", CMD_SELECTPALETTEENTRY},
  298. {"CmdPushPalette", CMD_PUSHPALETTE},
  299. {"CmdPopPalette", CMD_POPPALETTE},
  300. //
  301. // BRUSH SELECTION
  302. //
  303. {"CmdDownloadPattern", CMD_DOWNLOAD_PATTERN},
  304. {"CmdSelectPattern", CMD_SELECT_PATTERN},
  305. {"CmdSelectWhiteBrush", CMD_SELECT_WHITEBRUSH},
  306. {"CmdSelectBlackBrush", CMD_SELECT_BLACKBRUSH},
  307. //
  308. // DATACOMPRESSION
  309. //
  310. // {"CmdOverlayRegStart", CMD_OVERLAYREGSTART},
  311. // {"CmdOverlayRegEnd", CMD_OVERLAYREGEND},
  312. // {"CmdEnableOverlay", CMD_ENABLEOVERLAY},
  313. // {"CmdDisableOverlay", CMD_DISABLEOVERLAY},
  314. {"CmdEnableTIFF4", CMD_ENABLETIFF4},
  315. {"CmdEnableDRC", CMD_ENABLEDRC},
  316. {"CmdEnableFE_RLE", CMD_ENABLEFERLE},
  317. {"CmdEnableOEMComp", CMD_ENABLEOEMCOMP},
  318. {"CmdDisableCompression", CMD_DISABLECOMPRESSION},
  319. //
  320. // Raster Data Emission
  321. //
  322. {"CmdBeginRaster", CMD_BEGINRASTER},
  323. {"CmdEndRaster", CMD_ENDRASTER},
  324. {"CmdSetDestBmpWidth", CMD_SETDESTBMPWIDTH},
  325. {"CmdSetDestBmpHeight", CMD_SETDESTBMPHEIGHT},
  326. {"CmdSetSrcBmpWidth", CMD_SETSRCBMPWIDTH},
  327. {"CmdSetSrcBmpHeight", CMD_SETSRCBMPHEIGHT},
  328. {"CmdSendBlockData", CMD_SENDBLOCKDATA},
  329. {"CmdEndBlockData", CMD_ENDBLOCKDATA},
  330. {"CmdSendRedData", CMD_SENDREDDATA},
  331. {"CmdSendGreenData", CMD_SENDGREENDATA},
  332. {"CmdSendBlueData", CMD_SENDBLUEDATA},
  333. {"CmdSendCyanData", CMD_SENDCYANDATA},
  334. {"CmdSendMagentaData", CMD_SENDMAGENTADATA},
  335. {"CmdSendYellowData", CMD_SENDYELLOWDATA},
  336. {"CmdSendBlackData", CMD_SENDBLACKDATA},
  337. //
  338. // Font Downloading
  339. //
  340. {"CmdSetFontID", CMD_SETFONTID},
  341. {"CmdSelectFontID", CMD_SELECTFONTID},
  342. {"CmdSetCharCode", CMD_SETCHARCODE},
  343. // #ifdef BETA2
  344. {"CmdDeselectFontID", CMD_DESELECTFONTID},
  345. {"CmdSelectFontHeight", CMD_SELECTFONTHEIGHT},
  346. {"CmdSelectFontWidth", CMD_SELECTFONTWIDTH},
  347. // #endif
  348. {"CmdDeleteFont", CMD_DELETEFONT},
  349. //
  350. // Font Simulation
  351. //
  352. {"CmdSetFontSim", CMD_SETFONTSIM},
  353. {"CmdBoldOn", CMD_BOLDON},
  354. {"CmdBoldOff", CMD_BOLDOFF},
  355. {"CmdItalicOn", CMD_ITALICON},
  356. {"CmdItalicOff", CMD_ITALICOFF},
  357. {"CmdUnderlineOn", CMD_UNDERLINEON},
  358. {"CmdUnderlineOff", CMD_UNDERLINEOFF},
  359. {"CmdStrikeThruOn", CMD_STRIKETHRUON},
  360. {"CmdStrikeThruOff", CMD_STRIKETHRUOFF},
  361. {"CmdWhiteTextOn", CMD_WHITETEXTON},
  362. {"CmdWhiteTextOff", CMD_WHITETEXTOFF},
  363. {"CmdSelectSingleByteMode", CMD_SELECTSINGLEBYTEMODE},
  364. {"CmdSelectDoubleByteMode", CMD_SELECTDOUBLEBYTEMODE},
  365. {"CmdVerticalPrintingOn", CMD_VERTICALPRINTINGON},
  366. {"CmdVerticalPrintingOff", CMD_VERTICALPRINTINGOFF},
  367. {"CmdClearAllFontAttribs", CMD_CLEARALLFONTATTRIBS},
  368. //
  369. // Misc
  370. //
  371. {"CmdSetTextHTAlgo", CMD_SETTEXTHTALGO},
  372. {"CmdSetGraphicsHTAlgo", CMD_SETGRAPHICSHTALGO},
  373. {"CmdSetPhotoHTAlgo", CMD_SETPHOTOHTALGO},
  374. //
  375. // Vector Printing
  376. //
  377. {"CmdSetRectWidth", CMD_SETRECTWIDTH},
  378. {"CmdSetRectHeight", CMD_SETRECTHEIGHT},
  379. {"CmdSetRectSize", CMD_SETRECTSIZE},
  380. {"CmdRectGrayFill", CMD_RECTGRAYFILL},
  381. {"CmdRectWhiteFill", CMD_RECTWHITEFILL},
  382. {"CmdRectBlackFill", CMD_RECTBLACKFILL},
  383. #if 0
  384. {"CmdSetTransparencyMode", CMD_SETTRANSPARENCYMODE},
  385. {"CmdSetOpaqueMode", CMD_SETOPAQUEMODE},
  386. {"CmdSetClipRect", CMD_SETCLIPRECT},
  387. {"CmdSetClipPath", CMD_SETCLIPPATH},
  388. {"CmdSetR3Blackness", CMD_SETR3BLACKNESS},
  389. {"CmdSetR3PatInvert", CMD_SETR3PATINVERT},
  390. {"CmdSetR3SrcInvert", CMD_SETR3SRCINVERT},
  391. {"CmdSetR3MergePaint", CMD_SETR3MERGEPAINT},
  392. {"CmdSetR3MergeCopy", CMD_SETR3MERGECOPY},
  393. {"CmdSetR3SrcCopy", CMD_SETR3SRCCOPY},
  394. {"CmdSetR3SrcPaint", CMD_SETR3SRCPAINT},
  395. {"CmdSetR3PatCopy", CMD_SETR3PATCOPY},
  396. {"CmdSetR3PatPaint", CMD_SETR3PATPAINT},
  397. {"CmdSetR3Whiteness", CMD_SETR3WHITENESS},
  398. {"CmdSetR3Code", CMD_SETR3CODE},
  399. #endif
  400. // ---- reserved symbol names for each construct keyword ---- //
  401. {NULL, CL_CONS_FEATURES},
  402. {"CL_CONS_FEATURES", 0},
  403. {"PaperSize", GID_PAGESIZE},
  404. {"Resolution", GID_RESOLUTION},
  405. {"MediaType", GID_MEDIATYPE},
  406. {"InputBin", GID_INPUTSLOT},
  407. {"Duplex", GID_DUPLEX},
  408. {"Memory", GID_MEMOPTION},
  409. {"ColorMode", GID_COLORMODE},
  410. {"Orientation", GID_ORIENTATION},
  411. {"Halftone", GID_HALFTONING},
  412. {"PageProtect", GID_PAGEPROTECTION},
  413. {"Collate", GID_COLLATE},
  414. {"OutputBin", GID_OUTPUTBIN},
  415. // "Stapling" is a special Feature string recognized by the UI
  416. // though it is not associated with a GID value.
  417. // all other predefined GIDs are Pscript specific.
  418. {NULL, CL_CONS_PAPERSIZE},
  419. {"CL_CONS_PAPERSIZE", 0},
  420. {"LETTER", DMPAPER_LETTER},
  421. {"LETTERSMALL", DMPAPER_LETTERSMALL},
  422. {"TABLOID", DMPAPER_TABLOID},
  423. {"LEDGER", DMPAPER_LEDGER},
  424. {"LEGAL", DMPAPER_LEGAL},
  425. {"STATEMENT", DMPAPER_STATEMENT},
  426. {"EXECUTIVE", DMPAPER_EXECUTIVE},
  427. {"A3", DMPAPER_A3},
  428. {"A4", DMPAPER_A4},
  429. {"A4SMALL", DMPAPER_A4SMALL},
  430. {"A5", DMPAPER_A5},
  431. {"B4", DMPAPER_B4},
  432. {"B5", DMPAPER_B5},
  433. {"FOLIO", DMPAPER_FOLIO},
  434. {"QUARTO", DMPAPER_QUARTO},
  435. {"10X14", DMPAPER_10X14},
  436. {"11X17", DMPAPER_11X17},
  437. {"NOTE", DMPAPER_NOTE},
  438. {"ENV_9", DMPAPER_ENV_9},
  439. {"ENV_10", DMPAPER_ENV_10},
  440. {"ENV_11", DMPAPER_ENV_11},
  441. {"ENV_12", DMPAPER_ENV_12},
  442. {"ENV_14", DMPAPER_ENV_14},
  443. {"CSHEET", DMPAPER_CSHEET},
  444. {"DSHEET", DMPAPER_DSHEET},
  445. {"ESHEET", DMPAPER_ESHEET},
  446. {"ENV_DL", DMPAPER_ENV_DL},
  447. {"ENV_C5", DMPAPER_ENV_C5},
  448. {"ENV_C3", DMPAPER_ENV_C3},
  449. {"ENV_C4", DMPAPER_ENV_C4},
  450. {"ENV_C6", DMPAPER_ENV_C6},
  451. {"ENV_C65", DMPAPER_ENV_C65},
  452. {"ENV_B4", DMPAPER_ENV_B4},
  453. {"ENV_B5", DMPAPER_ENV_B5},
  454. {"ENV_B6", DMPAPER_ENV_B6},
  455. {"ENV_ITALY", DMPAPER_ENV_ITALY},
  456. {"ENV_MONARCH", DMPAPER_ENV_MONARCH},
  457. {"ENV_PERSONAL", DMPAPER_ENV_PERSONAL},
  458. {"FANFOLD_US", DMPAPER_FANFOLD_US},
  459. {"FANFOLD_STD_GERMAN", DMPAPER_FANFOLD_STD_GERMAN},
  460. {"FANFOLD_LGL_GERMAN", DMPAPER_FANFOLD_LGL_GERMAN},
  461. {"ISO_B4", DMPAPER_ISO_B4},
  462. {"JAPANESE_POSTCARD", DMPAPER_JAPANESE_POSTCARD},
  463. {"9X11", DMPAPER_9X11},
  464. {"10X11", DMPAPER_10X11},
  465. {"15X11", DMPAPER_15X11},
  466. {"ENV_INVITE", DMPAPER_ENV_INVITE},
  467. {"LETTER_EXTRA", DMPAPER_LETTER_EXTRA},
  468. {"LEGAL_EXTRA", DMPAPER_LEGAL_EXTRA},
  469. {"TABLOID_EXTRA", DMPAPER_TABLOID_EXTRA},
  470. {"A4_EXTRA", DMPAPER_A4_EXTRA},
  471. {"LETTER_TRANSVERSE", DMPAPER_LETTER_TRANSVERSE},
  472. {"A4_TRANSVERSE", DMPAPER_A4_TRANSVERSE},
  473. {"LETTER_EXTRA_TRANSVERSE", DMPAPER_LETTER_EXTRA_TRANSVERSE},
  474. {"A_PLUS", DMPAPER_A_PLUS},
  475. {"B_PLUS", DMPAPER_B_PLUS},
  476. {"LETTER_PLUS", DMPAPER_LETTER_PLUS},
  477. {"A4_PLUS", DMPAPER_A4_PLUS},
  478. {"A5_TRANSVERSE", DMPAPER_A5_TRANSVERSE},
  479. {"B5_TRANSVERSE", DMPAPER_B5_TRANSVERSE},
  480. {"A3_EXTRA", DMPAPER_A3_EXTRA},
  481. {"A5_EXTRA", DMPAPER_A5_EXTRA},
  482. {"B5_EXTRA", DMPAPER_B5_EXTRA},
  483. {"A2", DMPAPER_A2},
  484. {"A3_TRANSVERSE", DMPAPER_A3_TRANSVERSE},
  485. {"A3_EXTRA_TRANSVERSE", DMPAPER_A3_EXTRA_TRANSVERSE},
  486. #ifndef WINNT_40
  487. {"DBL_JAPANESE_POSTCARD", DMPAPER_DBL_JAPANESE_POSTCARD},
  488. {"A6", DMPAPER_A6},
  489. {"JENV_KAKU2", DMPAPER_JENV_KAKU2},
  490. {"JENV_KAKU3", DMPAPER_JENV_KAKU3},
  491. {"JENV_CHOU3", DMPAPER_JENV_CHOU3},
  492. {"JENV_CHOU4", DMPAPER_JENV_CHOU4},
  493. {"LETTER_ROTATED", DMPAPER_LETTER_ROTATED},
  494. {"A3_ROTATED", DMPAPER_A3_ROTATED},
  495. {"A4_ROTATED", DMPAPER_A4_ROTATED},
  496. {"A5_ROTATED", DMPAPER_A5_ROTATED},
  497. {"B4_JIS_ROTATED", DMPAPER_B4_JIS_ROTATED},
  498. {"B5_JIS_ROTATED", DMPAPER_B5_JIS_ROTATED},
  499. {"JAPANESE_POSTCARD_ROTATED", DMPAPER_JAPANESE_POSTCARD_ROTATED},
  500. {"DBL_JAPANESE_POSTCARD_ROTATED", DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED},
  501. {"A6_ROTATED", DMPAPER_A6_ROTATED},
  502. {"JENV_KAKU2_ROTATED", DMPAPER_JENV_KAKU2_ROTATED},
  503. {"JENV_KAKU3_ROTATED", DMPAPER_JENV_KAKU3_ROTATED},
  504. {"JENV_CHOU3_ROTATED", DMPAPER_JENV_CHOU3_ROTATED},
  505. {"JENV_CHOU4_ROTATED", DMPAPER_JENV_CHOU4_ROTATED},
  506. {"B6_JIS", DMPAPER_B6_JIS},
  507. {"B6_JIS_ROTATED", DMPAPER_B6_JIS_ROTATED},
  508. {"12X11", DMPAPER_12X11},
  509. {"JENV_YOU4", DMPAPER_JENV_YOU4},
  510. {"JENV_YOU4_ROTATED", DMPAPER_JENV_YOU4_ROTATED},
  511. {"P16K", DMPAPER_P16K},
  512. {"P32K", DMPAPER_P32K},
  513. {"P32KBIG", DMPAPER_P32KBIG},
  514. {"PENV_1", DMPAPER_PENV_1},
  515. {"PENV_2", DMPAPER_PENV_2},
  516. {"PENV_3", DMPAPER_PENV_3},
  517. {"PENV_4", DMPAPER_PENV_4 },
  518. {"PENV_5", DMPAPER_PENV_5 },
  519. {"PENV_6", DMPAPER_PENV_6 },
  520. {"PENV_7", DMPAPER_PENV_7 },
  521. {"PENV_8", DMPAPER_PENV_8 },
  522. {"PENV_9", DMPAPER_PENV_9 },
  523. {"PENV_10", DMPAPER_PENV_10},
  524. {"P16K_ROTATED", DMPAPER_P16K_ROTATED},
  525. {"P32K_ROTATED", DMPAPER_P32K_ROTATED},
  526. {"P32KBIG_ROTATED", DMPAPER_P32KBIG_ROTATED },
  527. {"PENV_1_ROTATED", DMPAPER_PENV_1_ROTATED },
  528. {"PENV_2_ROTATED", DMPAPER_PENV_2_ROTATED },
  529. {"PENV_3_ROTATED", DMPAPER_PENV_3_ROTATED },
  530. {"PENV_4_ROTATED", DMPAPER_PENV_4_ROTATED },
  531. {"PENV_5_ROTATED", DMPAPER_PENV_5_ROTATED },
  532. {"PENV_6_ROTATED", DMPAPER_PENV_6_ROTATED },
  533. {"PENV_7_ROTATED", DMPAPER_PENV_7_ROTATED },
  534. {"PENV_8_ROTATED", DMPAPER_PENV_8_ROTATED },
  535. {"PENV_9_ROTATED", DMPAPER_PENV_9_ROTATED },
  536. {"PENV_10_ROTATED", DMPAPER_PENV_10_ROTATED },
  537. #endif
  538. {"CUSTOMSIZE", DMPAPER_USER },
  539. // DMPAPER_USER and beyond
  540. {NULL, CL_CONS_MEDIATYPE},
  541. {"CL_CONS_MEDIATYPE", 0},
  542. {"STANDARD", DMMEDIA_STANDARD},
  543. {"TRANSPARENCY", DMMEDIA_TRANSPARENCY},
  544. {"GLOSSY", DMMEDIA_GLOSSY},
  545. // DMMEDIA_USER and beyond
  546. {NULL, CL_CONS_INPUTSLOT},
  547. {"CL_CONS_INPUTSLOT", 0},
  548. {"FORMSOURCE", DMBIN_FORMSOURCE },
  549. {"UPPER", DMBIN_UPPER},
  550. {"LOWER", DMBIN_LOWER},
  551. {"MIDDLE", DMBIN_MIDDLE},
  552. {"MANUAL", DMBIN_MANUAL},
  553. {"ENVFEED", DMBIN_ENVELOPE},
  554. {"ENVMANUAL", DMBIN_ENVMANUAL},
  555. {"AUTO", DMBIN_AUTO},
  556. {"TRACTOR", DMBIN_TRACTOR},
  557. {"SMALLFMT", DMBIN_SMALLFMT},
  558. {"LARGEFMT", DMBIN_LARGEFMT},
  559. {"LARGECAPACITY", DMBIN_LARGECAPACITY},
  560. {"CASSETTE", DMBIN_CASSETTE},
  561. // DMBIN_USER and beyond
  562. {NULL, CL_CONS_DUPLEX},
  563. {"CL_CONS_DUPLEX", 0},
  564. {"NONE", DMDUP_SIMPLEX},
  565. {"VERTICAL", DMDUP_VERTICAL},
  566. {"HORIZONTAL", DMDUP_HORIZONTAL},
  567. // No custom options.
  568. {NULL, CL_CONS_ORIENTATION},
  569. {"CL_CONS_ORIENTATION", 0},
  570. {"PORTRAIT", ROTATE_NONE},
  571. {"LANDSCAPE_CC90", ROTATE_90},
  572. {"LANDSCAPE_CC270", ROTATE_270},
  573. // No custom options.
  574. {NULL, CL_CONS_PAGEPROTECT},
  575. {"CL_CONS_PAGEPROTECT", 0},
  576. {"ON", PAGEPRO_ON},
  577. {"OFF", PAGEPRO_OFF},
  578. // No custom options.
  579. {NULL, CL_CONS_COLLATE},
  580. {"CL_CONS_COLLATE", 0},
  581. {"ON", DMCOLLATE_TRUE},
  582. {"OFF", DMCOLLATE_FALSE},
  583. // No custom options.
  584. {NULL, CL_CONS_HALFTONE},
  585. {"CL_CONS_HALFTONE", 0},
  586. {"HT_PATSIZE_2x2", HT_PATSIZE_2x2},
  587. {"HT_PATSIZE_2x2_M", HT_PATSIZE_2x2_M},
  588. {"HT_PATSIZE_4x4", HT_PATSIZE_4x4},
  589. {"HT_PATSIZE_4x4_M", HT_PATSIZE_4x4_M},
  590. {"HT_PATSIZE_6x6", HT_PATSIZE_6x6},
  591. {"HT_PATSIZE_6x6_M", HT_PATSIZE_6x6_M},
  592. {"HT_PATSIZE_8x8", HT_PATSIZE_8x8},
  593. {"HT_PATSIZE_8x8_M", HT_PATSIZE_8x8_M},
  594. {"HT_PATSIZE_10x10", HT_PATSIZE_10x10},
  595. {"HT_PATSIZE_10x10_M", HT_PATSIZE_10x10_M},
  596. {"HT_PATSIZE_12x12", HT_PATSIZE_12x12},
  597. {"HT_PATSIZE_12x12_M", HT_PATSIZE_12x12_M},
  598. {"HT_PATSIZE_14x14", HT_PATSIZE_14x14},
  599. {"HT_PATSIZE_14x14_M", HT_PATSIZE_14x14_M},
  600. {"HT_PATSIZE_16x16", HT_PATSIZE_16x16},
  601. {"HT_PATSIZE_16x16_M", HT_PATSIZE_16x16_M},
  602. #ifndef WINNT_40
  603. {"HT_PATSIZE_SUPERCELL", HT_PATSIZE_SUPERCELL},
  604. {"HT_PATSIZE_SUPERCELL_M", HT_PATSIZE_SUPERCELL_M},
  605. #endif
  606. {"HT_PATSIZE_AUTO", HT_PATSIZE_AUTO},
  607. {NULL, CL_NUMCLASSES} // signifies end of table.
  608. } ;
  609. // This global is now in gpdparse.h in the structure GLOBL
  610. // CLASSINDEXENTRY gcieTable[CL_NUMCLASSES] ;
  611. //
  612. CONST PBYTE gpubStateNames[] =
  613. {
  614. "STATE_ROOT",
  615. "STATE_UIGROUP",
  616. "STATE_FEATURE",
  617. "STATE_OPTIONS",
  618. "STATE_SWITCH_ROOT",
  619. "STATE_SWITCH_FEATURE",
  620. "STATE_SWITCH_OPTION",
  621. "STATE_CASE_ROOT",
  622. "STATE_DEFAULT_ROOT",
  623. "STATE_CASE_FEATURE",
  624. "STATE_DEFAULT_FEATURE",
  625. "STATE_CASE_OPTION",
  626. "STATE_DEFAULT_OPTION",
  627. "STATE_COMMAND",
  628. "STATE_FONTCART",
  629. "STATE_TTFONTSUBS",
  630. "STATE_OEM",
  631. // any other passive construct
  632. "STATE_LAST", // must terminate list of valid states
  633. "STATE_INVALID" // must be after STATE_LAST
  634. } ;