*GPDSpecVersion: "1.0"
*GPDFileVersion: "1.0"
*GPDFileName: "eplvcd06.GPD"
*Include: "STDNAMES.GPD"
*% Common Macros
*Macros: ResourceIDs
{
    *% Font Resource (UFM)
    RC_FONT_ROMAN    :   1
    RC_FONT_SANSRF   :   2
    RC_FONT_COURIER  :   3
    RC_FONT_COURIERI :   4
    RC_FONT_COURIERB :   5
    RC_FONT_COURIERZ :   6
    RC_FONT_SYMBOL   :   7
    RC_FONT_SYMBOLIC :   8
    RC_FONT_DUTCH    :  33
    RC_FONT_DUTCHI   :  34
    RC_FONT_DUTCHB   :  35
    RC_FONT_DUTCHZ   :  36
    RC_FONT_SWISS    :  37
    RC_FONT_SWISSI   :  38
    RC_FONT_SWISSB   :  39
    RC_FONT_SWISSZ   :  40
    RC_FONT_MOREWB   :  43

    *% Font Resource (UFM):Japanese
    RC_FONT_MINCHO   :  52
    RC_FONT_MINCHOV  :  53
    RC_FONT_KGOTHIC  :  54
    RC_FONT_KGOTHICV :  55
    RC_FONT_MGOTHIC  :  56
    RC_FONT_MGOTHICV :  57
    RC_FONT_KYOUKA   :  58
    RC_FONT_KYOUKAV  :  59
    RC_FONT_SHOUKAI  :  60
    RC_FONT_SHOUKAIV :  61
    RC_FONT_MOUHITSU :  62
    RC_FONT_MOUHITSV :  63
    RC_FONT_FMINB    :  64
    RC_FONT_FMINBV   :  65
    RC_FONT_FGOB     :  66
    RC_FONT_FGOBV    :  67
    RC_FONT_FMGOT    :  68
    RC_FONT_FMGOTV   :  69

    *% Font Resource (UFM):ChineseT
    RC_FONT_SUNGC    :  70
    RC_FONT_SUNGCV   :  71
    RC_FONT_SUNGCL   :  72
    RC_FONT_SUNGCLV  :  73
    RC_FONT_SUNGCB   :  74
    RC_FONT_SUNGCBV  :  75
    RC_FONT_KAIC     :  76
    RC_FONT_KAICV    :  77
    RC_FONT_KAICL    :  78
    RC_FONT_KAICLV   :  79
    RC_FONT_KAICB    :  80
    RC_FONT_KAICBV   :  81
    RC_FONT_YUANGC   :  82
    RC_FONT_YUANGCV  :  83
    RC_FONT_YUANGCL  :  84
    RC_FONT_YUANGCLV :  85
    RC_FONT_YUANGCB  :  86
    RC_FONT_YUANGCBV :  87
    RC_FONT_HEIC     :  88
    RC_FONT_HEICV    :  89
    RC_FONT_HEICL    :  90
    RC_FONT_HEICLV   :  91
    RC_FONT_HEICB    :  92
    RC_FONT_HEICBV   :  93
    RC_FONT_LIC      :  94
    RC_FONT_LICV     :  95
    RC_FONT_FSUNGC   :  96
    RC_FONT_FSUNGCV  :  97
    RC_FONT_FSUNGCL  :  98
    RC_FONT_FSUNGCLV :  99
    RC_FONT_FSUNGCB  : 100
    RC_FONT_FSUNGCBV : 101
    RC_FONT_SHINGC   : 102
    RC_FONT_SHINGCV  : 103
    RC_FONT_SHINYIC  : 104
    RC_FONT_SHINYICV : 105

    *% Font Resource (UFM):ChineseS
    RC_FONT_SONGK    : 106
    RC_FONT_SONGKV   : 107
    RC_FONT_HEIK     : 108
    RC_FONT_HEIKV    : 109
    RC_FONT_KAIK     : 110
    RC_FONT_KAIKV    : 111
    RC_FONT_FSONGK   : 112
    RC_FONT_FSONGKV  : 113

    *% Font Resource (UFM):Korean
    RC_FONT_MYUNGH   : 114
    RC_FONT_MYUNGHV  : 115
    RC_FONT_MYUNGHB  : 116
    RC_FONT_MYUNGHBV : 117
    RC_FONT_GOTHIH   : 118
    RC_FONT_GOTHIHV  : 119
    RC_FONT_GOTHIHB  : 120
    RC_FONT_GOTHIHBV : 121
    RC_FONT_DINARH   : 122
    RC_FONT_DINARHV  : 123
    RC_FONT_DINARHB  : 124
    RC_FONT_DINARHBV : 125
    RC_FONT_GUNGH    : 126
    RC_FONT_GUNGHV   : 127
    RC_FONT_GUNGHB   : 128
    RC_FONT_GUNGHBV  : 129
    RC_FONT_SAMMUH   : 130
    RC_FONT_SAMMUHV  : 131
    RC_FONT_SAMMUHB  : 132
    RC_FONT_SAMMUHBV : 133
    RC_FONT_PILGIH   : 134
    RC_FONT_PILGIHV  : 135
    RC_FONT_PILGIHB  : 136
    RC_FONT_PILGIHBV : 137
    RC_FONT_YETCHH   : 138
    RC_FONT_YETCHHV  : 139
    RC_FONT_YETCHHB  : 140
    RC_FONT_YETCHHBV : 141

    *% TTFS:Latin; valid only when optional fonts(Swiss721, etc.) provided
    RC_TTF_ARIAL       : 150              *% L"Arial"
    RC_DF_SWISS721     : 151              *% L"Swiss721"
    RC_TTF_COURIERNEW  : 152              *% L"Courier New"
    RC_DF_COURIER      : 153              *% L"Courier"
    RC_TTF_SYMBOL      : 154              *% L"Symbol"
    RC_DF_SYMBOLIC     : 156              *% L"Symbolic"
    RC_TTF_TIMESNR     : 157              *% L"Times New Roman"
    RC_DF_DUTCH801     : 158              *% L"Dutch801"
    RC_TTF_WINGDINGS   : 159              *% L"Wingdings"
    RC_DF_MOREWINGBATS : 160              *% L"MoreWingBats"

    *% TTFS:Japanese
    RC_TTF_MSMINCHO    : 180
    RC_DF_MINCHO       : 181
    RC_TTF_MSMINCHOV   : 182
    RC_DF_MINCHOV      : 183
    RC_TTF_MSGOTHIC    : 184
    RC_DF_GOTHIC       : 185
    RC_TTF_MSGOTHICV   : 186
    RC_DF_GOTHICV      : 187

    *% TTFS:Japanese in English
    RC_TTF_MSMINCHO_E  : 190
    RC_TTF_MSMINCHOV_E : 191
    RC_TTF_MSGOTHIC_E  : 192
    RC_TTF_MSGOTHICV_E : 193

    *% TTFS:ChineseT
    RC_TTF_LMING       : 200              *% MingLiU
    RC_DF_SUNGCL       : 201              *% sungcl
    RC_TTF_LMINGV      : 202              *% @MingLiU
    RC_DF_SUNGCLV      : 203              *% sungclv

    *% TTFS:ChineseT in English
    RC_TTF_LMING_E      : 204
    RC_TTF_LMINGV_E     : 205

    *% TTFS:ChineseS
    RC_TTF_SIMSUN      : 210              *% SimSun
    RC_DF_SONGK        : 211              *% songk
    RC_TTF_SIMSUNV     : 212              *% @SimSun
    RC_DF_SONGKV       : 213              *% songkv
    RC_TTF_SIMHEI      : 214              *% SimHei
    RC_DF_HEIK         : 215              *% heik
    RC_TTF_SIMHEIV     : 216              *% @SimHei
    RC_DF_HEIKV        : 217              *% heikv

    *% TTFS:ChineseS in English
    RC_TTF_SIMSUN_E    : 218
    RC_TTF_SIMSUNV_E   : 219
    RC_TTF_SIMHEI_E    : 220
    RC_TTF_SIMHEIV_E   : 221

    *% PaperSize
    RC_STR_HLT       : 257                *% L"HalfLetter 5.5 x 8.5 in"
    RC_STR_GLG       : 258                *% L"Government Legal 8.5 x 13.0 in"
    RC_STR_GLT       : 259                *% L"Government Letter 8.0 x 10.5 in"
    RC_STR_F4        : 260                *% L"F4 210 x 330 mm"
    RC_STR_C10       : 261                *% L"Commercial 10 4.125 x 9.5 in"
    RC_STR_A3P       : 262                *% L"A3+ 329 x 483 mm"
    RC_STR_A3W       : 263                *% L"A3 Wide 328 x 453 mm"
    RC_STR_IB5       : 264                *% L"International-B5 176 x 250 mm"

    *% PaperSize:Japanese
    *% RC_STR_A3N    : 265                *% L"A3Nobi 329 x 483 mm"

    *% PaperSize:ChineseT
    RC_STR_8VO       : 266                *% L"8vo 275 x 395 mm"
    RC_STR_16MO      : 267                *% L"16mo 198 x 275 mm"


    RC_STR_LDGPOR    : 268                *% L"Ledger 11 x 17in"

    *% PaperSource
    RC_STR_CST       : 270                *% L"Paper Cassette"
    RC_STR_CST1      : 271                *% L"Lower Paper Cassette 1"
    RC_STR_CST2      : 272                *% L"Lower Paper Cassette 2"
    RC_STR_CST3      : 273                *% L"Lower Paper Cassette 3"
    RC_STR_CST4      : 274                *% L"Lower Paper Cassette 4"
    RC_STR_CST5      : 275                *% L"Lower Paper Cassette 5"
    RC_STR_TRAY      : 276                *% L"Paper Tray"
    RC_STR_MMFDR     : 277                *% L"Multimedia Feeder (Jpn)"
    RC_STR_LCST      : 278                *% L"Lower Paper Cassette"
    RC_STR_AUTOCHG   : 279                *% L"Auto Change (Jpn)"
    RC_STR_FTRAY     : 280                *% L"Front Tray"
    RC_STR_AUTOSEL   : 281                *% L"Auto Select"
    RC_STR_MPTRAY    : 282                *% L"MP Tray"
    RC_STR_HIGHCAPACITY : 283             *% L"High Capacity Unit"

    RC_STR_ONE_DBLCST   : 285             *% L"1 Double Casette Unit"
    RC_STR_TWO_DBLCST   : 286             *% L"2 Double Casette Units"

    *% FontCartridgeName:Japanese
    RC_STR_MARUGOT   : 290
    RC_STR_KYOKASHO  : 291
    RC_STR_KAISHO    : 292
    RC_STR_GYOSHO    : 293
    RC_STR_FMINFKGOT : 294
    RC_STR_FMARUGOT  : 295
    *% FontCartridgeName:ChineseT
    RC_STR_FSSSY     : 296                *% L"FanSung,Shing,ShinYi Font Cartridge"
    RC_STR_LI        : 297                *% L"Li Font ROM"
    RC_STR_FANSUNG   : 298                *% L"FanSung Font ROM"
    RC_STR_SHING     : 299                *% L"Shing Font ROM"
    *% FontCartridgeName:Korean
    RC_STR_PLYTCH    : 300                *% L"Pilgi,Yetche ROM Module"

    RC_STR_FACEDOWN     : 310
    RC_STR_FACEUP       : 311
    RC_STR_PRNTRMODE    : 312
    *% Custom Features
    RC_STR_THICK     : 323                *% L"Thick"
    RC_STR_THICK_N   : 324                *% L"Thick Narrow"
    RC_STR_THIN      : 325                *% L"Thin"

    *% Color
    RC_STR_QUALITY   : 326
    RC_STR_SPEED     : 327
    RC_STR_CLRADJUST : 328
    RC_STR_NONE      : 329
    RC_STR_NATURAL   : 330
    RC_STR_VIVID     : 331
    RC_STR_PHOTOREALACC : 335
    RC_STR_VIVIDACC  : 336
    RC_STR_PHOTOREAL : 337
    RC_STR_BRGHTNSS  : 358
    RC_STR_DRVDEF    : 359
    RC_STR_DARK2     : 360
    RC_STR_DARK1     : 361
    RC_STR_NORMAL    : 362
    RC_STR_LGHT1     : 363
    RC_STR_LGHT2     : 364
    RC_STR_LGHT3     : 365
    RC_STR_LGHT4     : 366
    RC_STR_HUE       : 367
    RC_STR_YLW       : 368
    RC_STR_YLWGRN    : 369
    RC_STR_GRN       : 370
    RC_STR_BLUGRN    : 371
    RC_STR_GRNBLU    : 372
    RC_STR_BLU       : 373
    RC_STR_BLUPPL    : 374
    RC_STR_PPL       : 375
    RC_STR_REDPPL    : 376
    RC_STR_RED       : 377
    RC_STR_ORG       : 378
    RC_STR_YLWORG    : 379
    RC_STR_CHROMA    : 380
    RC_STR_FLAT      : 381
    RC_STR_LOW       : 382
    RC_STR_MED       : 383
    RC_STR_HIGH      : 384
    *% End color
    RC_STR_RECTFILL  : 385                *% L"Vector Graphics"
    RC_STR_ENABLED   : 386                *% L"Enabled"
    RC_STR_DISABLED  : 387                *% L"Disabled"
    RC_STR_OPTION_ON : 388                *% L"Installed"
    RC_STR_OPTION_OFF: 389                *% L"Not Installed"
    *% Custom Features:Japanese
    RC_STR_VPADJUST : 391               *% L"縦書きの，．の位置補正"

    *% Custom Feature Duplex
    RC_STR_DUPLEXUNIT : 395                *% L"Duplex Unit(option)"

    *% DMS
    RC_STR_DMS_FEATURE     : 402
    RC_STR_DMS_ENABLE      : 403
    RC_STR_DMS_DISABLE     : 404

    RC_STR_MULTIBIN        : 410           *% L"Multibin Unit"
    RC_STR_5BIN_UNIT       : 411           *% L"5Bin Multi-Purpose Unit"
    RC_STR_10BIN_UNIT      : 412           *% L"10Bin Multi-Purpose Unit"
    RC_STR_STAPLE_STACKER_UNIT : 413       *% L"Staple Stacker Unit"

    RC_STR_MULTIBIN_MODE   : 420           *% L"Multibin Mode settings"
    RC_STR_MODE_NONE       : 421           *% L"Not Selected"
    RC_STR_MODE_MAILBOX    : 422           *% L"Mailbox Mode"
    RC_STR_MODE_SORTER     : 423           *% L"Sorter Mode"
    RC_STR_MODE_MULTI_SOTER : 424          *% L"Multi-Sorter Mode"
    RC_STR_MODE_STACKER    : 425           *% L"Stacker Mode"
    RC_STR_MAILBOX_SELECT  : 426           *% L"Mailbox Number"
    RC_STR_MODE_ST_STACKER : 427           *% L"Staple Stacker Mode"

    RC_STR_MAILBOX1        : 430           *% L"Mailbox 1"
    RC_STR_MAILBOX2        : 431           *% L"Mailbox 2"
    RC_STR_MAILBOX3        : 432           *% L"Mailbox 3"
    RC_STR_MAILBOX4        : 433           *% L"Mailbox 4"
    RC_STR_MAILBOX5        : 434           *% L"Mailbox 5"
    RC_STR_MAILBOX6        : 435           *% L"Mailbox 6"
    RC_STR_MAILBOX7        : 436           *% L"Mailbox 7"
    RC_STR_MAILBOX8        : 437           *% L"Mailbox 8"
    RC_STR_MAILBOX9        : 438           *% L"Mailbox 9"
    RC_STR_MAILBOX10       : 439           *% L"Mailbox 10"
    RC_STR_SORTER          : 440           *% L"Sorter"
    RC_STR_MSORTER         : 441           *% L"Multi Sorter"
    RC_STR_STACKER         : 442           *% L"Stacker"
    RC_STR_ST_STACKER      : 443           *% L"Staple Stacker"

    RC_STR_SGL_CST         : 450
    RC_STR_DBL_CST         : 451
    RC_STR_TRP_CST         : 452
    RC_STR_500S_CST        : 453

    RC_STR_YENV0           : 460
    RC_STR_YENV4           : 461
    RC_STR_YENV6           : 462
}

*Macros: OEMCallbackIDs
{
    SET_LCID_J              :  10            *% 10 + 0x00000000(=LCID_JPN)
    SET_LCID_C              : 65546          *% 10 + 0x00010000(=LCID_CHT)
    SET_LCID_H              : 196618         *% 10 + 0x00030000(=LCID_KOR)
    SET_LCID_K              : 131082         *% 10 + 0x00020000(=LCID_CHS)
    SET_LCID_U              :  16777226      *% 10 + 0x01000000(=LCID_USA)

    XMOVE_ABS               :  11            *% (DestX)
    XMOVE_REL_RT            :  12            *% (DestXRel)
    XMOVE_REL_LF            :  13            *% (DestXRel)
    YMOVE_ABS               :  14            *% (DestY)
    YMOVE_REL_DN            :  15            *% (DestYRel)
    YMOVE_REL_UP            :  16            *% (DestYRel)

    TEXT_PRN_DIRECTION      :  20            *% (PrintDirInCCDegrees)
    TEXT_SINGLE_BYTE        :  21            *% (FontBold,FontItalic)
    TEXT_DOUBLE_BYTE        :  22            *% (FontBold,FontItalic)
    TEXT_BOLD               :  23            *% (FontBold)
    TEXT_ITALIC             :  24            *% (FontItalic)
    TEXT_HORIZONTAL         :  25            *% ()
    TEXT_VERTICAL           :  26            *% ()
    TEXT_NO_VPADJUST        :  27            *% ()
    DOWNLOAD_SELECT_FONT_ID :  30            *% (CurrentFontID)
    DOWNLOAD_DELETE_FONT    :  31            *% (CurrentFontID)
    DOWNLOAD_DELETE_ALLFONT :  32            *% ()
    DOWNLOAD_SET_FONT_ID    :  33            *% (CurrentFontID)
    DOWNLOAD_SET_CHAR_CODE  :  34            *% (NextGlyph)

    SEND_BLOCK_DATA         :  40            *% (NumOfDataBytes,RasterDataWidthInBytes,RasterDataHeightInPixels)
    SET_SRC_BMP_WIDTH       :  41            *% (RasterDataWidthInBytes)
    SET_SRC_BMP_HEIGHT      :  42            *% (RasterDataHeightInPixels)
    DEFINE_PALETTE_ENTRY    :  43            *% (PaletteIndexToProgram,RedValue,GreenValue,BlueValue)
    SELECT_PALETTE_ENTRY    :  44            *% (CurrentPaletteIndex)
    SET_RECT_WIDTH          :  45            *% (RectXSize)
    SET_RECT_HEIGHT         :  46            *% (RectYSize)
    COMPRESS_OFF            :  50            *% ()
    COMPRESS_ON             :  51            *% ()
}

*Macros: TTFDownloadCtrls
{
    DOWNLOAD_MIN_FONT_ID         :  512
    DOWNLOAD_MIN_FONT_ID_0       :    0
    DOWNLOAD_MIN_FONT_ID_NO_DBCS : 1536      *% 512 + 1024
    DOWNLOAD_MAX_FONT_ID         :  535
    DOWNLOAD_MAX_FONT_ID_10      :  521      *% 512 + 10 - 1
    DOWNLOAD_MAX_FONT_ID_5       :  516      *% 512 + 5 - 1
    DOWNLOAD_MAX_FONT_ID_0       :    0
    DOWNLOAD_MAX_FONT_ID_NO_DBCS : 1559      *% 535 + 1024
    DOWNLOAD_MAX_FONTS           :   24
    DOWNLOAD_MAX_FONTS_10        :   10
    DOWNLOAD_MAX_FONTS_5         :    5
    DOWNLOAD_MAX_FONTS_0         :    0
    DOWNLOAD_MIN_GLYPH_ID        :   32
    DOWNLOAD_MAX_GLYPH_ID        :  543
}
*Macros: TTFSubstCtrls
{
    TTFS_ENABLED  : TRUE
}

*% BlockMacros for PaperSize feature -- non DMS ----
*BlockMacro: BM_PS_A3
{
    *rcNameID: =A3_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(13552, 19360)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>13psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(13552, 19360)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 19600)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>13psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_A4
{
    *rcNameID: =A4_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(9440, 13552)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>14psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(9440, 13552)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 13792)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>14psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_A5
{
    *rcNameID: =A5_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(6512, 9440)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>15psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(6512, 9440)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 9680)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>15psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_B5
{
    *rcNameID: =B5_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(8120, 11664)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>25psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(8120, 11664)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 11904)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>25psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_LT
{
    *rcNameID: =LETTER_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(9720, 12720)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>30psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(9720, 12720)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 12960)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>30psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_HLT
{
    *rcNameID: =RC_STR_HLT
    *PageDimensions: PAIR(6600, 10200)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(6120, 9720)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>31psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(6120, 9720)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 9960)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>31psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_LGL
{
    *rcNameID: =LEGAL_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(9720, 16320)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>32psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(9720, 16320)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 16560)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>32psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_EXE
{
    *rcNameID: =EXECUTIVE_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(8220, 12120)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>33psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(8220, 12120)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 12360)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>33psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_GLG
{
    *rcNameID: =RC_STR_GLG
    *PageDimensions: PAIR(10200, 15600)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(9720, 15120)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>34psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(9720, 15120)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 15360)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>34psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_GLT
{
    *rcNameID: =RC_STR_GLT
    *PageDimensions: PAIR(9600, 12600)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(9120, 12120)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>35psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(9120, 12120)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 12360)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>35psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_F4
{
    *rcNameID: =RC_STR_F4
    *PageDimensions: PAIR(9920, 15592)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(9440, 15112)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>37psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(9440, 15112)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 15352)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>37psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_MON
{
    *rcNameID: =ENV_MONARCH_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(4168, 8520)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>80psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(4168, 8520)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 8760)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>80psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PSB_E10
{
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(4468, 10920)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>81psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(4468, 10920)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 11160)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>81psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_C10
{
    *rcNameID: =RC_STR_C10
    *PageDimensions: PAIR(4948, 11400)
    *InsertBlock: =BM_PSB_E10
}
*BlockMacro: BM_PS_E10
{
    *rcNameID: =ENV_10_DISPLAY
    *InsertBlock: =BM_PSB_E10
}
*BlockMacro: BM_PS_DL
{
    *rcNameID: =ENV_DL_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(4716, 9912)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>90psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(4716, 9912)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 10152)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>90psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_C5
{
    *rcNameID: =ENV_C5_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(7172, 10336)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>91psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(7172, 10336)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 10576)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>91psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_LEDGER
{
    *rcNameID: =LEDGER_DISPLAY
    *PageDimensions: PAIR(13200, 20400)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(12720, 19919)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>36psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(12720, 19920)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 20160)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>36psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_LEDGER_PORTRAIT
{
    *rcNameID: =RC_STR_LDGPOR
    *PageDimensions: PAIR(13200, 20400)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(12720, 19920)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>36psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(12720, 19920)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 20160)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>36psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_TBLD
{
    *rcNameID: =TABLOID_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(12720, 19920)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>36psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(12720, 19920)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 20160)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>36psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_B4
{
    *rcNameID: =B4_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(11664, 16720)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>24psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(11664, 16720)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 16960)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>24psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PSB_CTM
{
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *CustCursorOriginX:  %d{240}
            *CustCursorOriginY:   %d{240}
            *CustPrintableOriginX:  %d{240}
            *CustPrintableOriginY:  %d{240}
            *CustPrintableSizeX:   %d{ PhysPaperWidth - 480 }
            *CustPrintableSizeY:  %d{ PhysPaperLength - 480 }
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>-1;" %d{(PhysPaperWidth / 2) }";" %d{(PhysPaperLength / 2) }"psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *CustCursorOriginX:  %d{240}
            *CustCursorOriginY:   %d{PhysPaperLength - 240}
            *CustPrintableOriginX:  %d{240}
            *CustPrintableOriginY:  %d{240}
            *CustPrintableSizeX:   %d{ PhysPaperWidth - 480 }
            *CustPrintableSizeY:  %d{ PhysPaperLength - 480 }
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>-1;" %d{(PhysPaperWidth / 2) }";" %d{(PhysPaperLength / 2) }"psE<1D>1poE"
                    }
                }
            }
        }
    }
}


*% BlockMacros for PaperSize feature:Japanese
*BlockMacro: BM_PS_POST
{
    *rcNameID: =JAPANESE_POSTCARD_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(4244, 6512)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>38psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(4244, 6512)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 6752)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>38psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_A3W
{
    *rcNameID: =RC_STR_A3W
    *PageDimensions: PAIR(15496, 21400)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(15016, 20920)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>75psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(15016, 20920)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 21160)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>75psE<1D>1poE"
                    }
                }
            }
        }
    }
}
*BlockMacro: BM_PS_A3P
{
    *rcNameID: =RC_STR_A3P
    *PageDimensions: PAIR(15540, 22816)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(15060, 22336)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>72psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(15060, 22336)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 22576)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>72psE<1D>1poE"
                    }
                }
            }
        }
    }
}

*BlockMacro: BM_PS_A3N
{
    *rcNameID: =RC_STR_A3P
    *PageDimensions: PAIR(15540, 22816)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(15060, 22336)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>72psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(15060, 22336)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 22576)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>72psE<1D>1poE"
                    }
                }
            }
        }
    }
}

*BlockMacro: BM_PS_IB5
{
    *rcNameID: =RC_STR_IB5
    *PageDimensions: PAIR(8312, 11610)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(7832, 11128)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>99psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(7832, 11128)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 11368)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>99psE<1D>1poE"
                    }
                }
            }
        }
    }
}

*BlockMacro: BM_PS_ENV_C6
{
    *rcNameID: =ENV_C6_DISPLAY
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(4904, 7172)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>92psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(4904, 7172)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 7412)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>92psE<1D>1poE"
                    }
                }
            }
        }
    }
}

*BlockMacro: BM_PS_YOU0
{
    *rcNameID: =RC_STR_YENV0
    *PageDimensions: PAIR(5668, 11100)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(5188, 10620)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>60psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(5188, 10620)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 10860)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>60psE<1D>1poE"
                    }
                }
            }
        }
    }
}

*BlockMacro: BM_PS_YOU4
{
    *rcNameID: =RC_STR_YENV4
    *PageDimensions: PAIR(4960, 11100)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(4480, 10620)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>64psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(4480, 10620)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 10860)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>64psE<1D>1poE"
                    }
                }
            }
        }
    }
}

*BlockMacro: BM_PS_YOU6
{
    *rcNameID: =RC_STR_YENV6
    *PageDimensions: PAIR(4628, 8976)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(4148, 8496)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 240)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>66psE"
                    }
                }
            }
        }
        *case: LANDSCAPE_CC90
        {
            *PrintableArea: PAIR(4148, 8496)
            *PrintableOrigin: PAIR(240, 240)
            *CursorOrigin: PAIR(240, 8736)
            *switch: DMS
            {
                *case: Disable
                {
                    *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.40
                        *Cmd: "<1D>66psE<1D>1poE"
                    }
                }
            }
        }
    }
}

*% BlockMacros for Color features
*BlockMacro: BM_GAMMA_ADJUSTMENT
{
    *switch: DeviceGammaAdjustmentBrightness
    {
        *case: DriverDefault {}
        *case: Dark2
        {   *% 0.6
            *switch: DeviceGammaAdjustmentChroma
            {
                *case: Flat
                {
                     *RedDeviceGamma: 6000
                     *GreenDeviceGamma: 6000
                     *BlueDeviceGamma: 6000
                }
                *case: Low
                {   *% +5% (+300)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 6300
                            *GreenDeviceGamma: 6300
                            *BlueDeviceGamma: 6000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 6150
                            *GreenDeviceGamma: 6300
                            *BlueDeviceGamma: 6000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 6000
                            *GreenDeviceGamma: 6300
                            *BlueDeviceGamma: 6000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 6000
                            *GreenDeviceGamma: 6300
                            *BlueDeviceGamma: 6150
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 6000
                            *GreenDeviceGamma: 6150
                            *BlueDeviceGamma: 6300
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 6000
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6300
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 6150
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6300
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 6300
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6300
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 6300
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6150
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 6300
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 6300
                            *GreenDeviceGamma: 6150
                            *BlueDeviceGamma: 6000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 6300
                            *GreenDeviceGamma: 6225
                            *BlueDeviceGamma: 6000
                        }
                    }
                }
                *case: Medium
                {   *% +10% (+600)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 6600
                            *GreenDeviceGamma: 6600
                            *BlueDeviceGamma: 6000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 6300
                            *GreenDeviceGamma: 6600
                            *BlueDeviceGamma: 6000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 6000
                            *GreenDeviceGamma: 6600
                            *BlueDeviceGamma: 6000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 6000
                            *GreenDeviceGamma: 6600
                            *BlueDeviceGamma: 6300
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 6000
                            *GreenDeviceGamma: 6300
                            *BlueDeviceGamma: 6600
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 6000
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6600
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 6300
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6600
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 6600
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6600
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 6600
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6300
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 6600
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 6600
                            *GreenDeviceGamma: 6300
                            *BlueDeviceGamma: 6000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 6600
                            *GreenDeviceGamma: 6450
                            *BlueDeviceGamma: 6000
                        }
                    }
                }
                *case: High
                {   *% +20% (+1200)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 7200
                            *GreenDeviceGamma: 7200
                            *BlueDeviceGamma: 6000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 6600
                            *GreenDeviceGamma: 7200
                            *BlueDeviceGamma: 6000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 6000
                            *GreenDeviceGamma: 7200
                            *BlueDeviceGamma: 6000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 6000
                            *GreenDeviceGamma: 7200
                            *BlueDeviceGamma: 6600
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 6000
                            *GreenDeviceGamma: 6600
                            *BlueDeviceGamma: 7200
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 6000
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6600
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 6600
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 7200
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 7200
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 7200
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 7200
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6600
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 7200
                            *GreenDeviceGamma: 6000
                            *BlueDeviceGamma: 6000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 7200
                            *GreenDeviceGamma: 6600
                            *BlueDeviceGamma: 6000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 7200
                            *GreenDeviceGamma: 6900
                            *BlueDeviceGamma: 6000
                        }
                    }
                }
            }
        }
        *case: Dark1
        {   *% 0.7
            *switch: DeviceGammaAdjustmentChroma
            {
                *case: Flat
                {
                     *RedDeviceGamma: 7000
                     *GreenDeviceGamma: 7000
                     *BlueDeviceGamma: 7000
                }
                *case: Low
                {   *% +5% (+350)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 7350
                            *GreenDeviceGamma: 7350
                            *BlueDeviceGamma: 7000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 7175
                            *GreenDeviceGamma: 7350
                            *BlueDeviceGamma: 7000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 7000
                            *GreenDeviceGamma: 7350
                            *BlueDeviceGamma: 7000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 7000
                            *GreenDeviceGamma: 7350
                            *BlueDeviceGamma: 7175
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 7000
                            *GreenDeviceGamma: 7175
                            *BlueDeviceGamma: 7350
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 7000
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 7350
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 7175
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 7350
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 7350
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 7350
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 7350
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 7175
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 7350
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 7000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 7350
                            *GreenDeviceGamma: 7175
                            *BlueDeviceGamma: 7000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 7350
                            *GreenDeviceGamma: 7263
                            *BlueDeviceGamma: 7000
                        }
                    }
                }
                *case: Medium
                {   *% +10% (+700)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 7700
                            *GreenDeviceGamma: 7700
                            *BlueDeviceGamma: 7000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 7350
                            *GreenDeviceGamma: 7700
                            *BlueDeviceGamma: 7000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 7000
                            *GreenDeviceGamma: 7700
                            *BlueDeviceGamma: 7000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 7000
                            *GreenDeviceGamma: 7700
                            *BlueDeviceGamma: 7350
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 7000
                            *GreenDeviceGamma: 7350
                            *BlueDeviceGamma: 7700
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 7000
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 7700
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 7350
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 7700
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 7700
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 7700
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 7700
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 7350
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 7700
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 7000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 7700
                            *GreenDeviceGamma: 7350
                            *BlueDeviceGamma: 7000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 7700
                            *GreenDeviceGamma: 7525
                            *BlueDeviceGamma: 7000
                        }
                    }
                }
                *case: High
                {   *% +20% (+1400)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 8400
                            *BlueDeviceGamma: 7000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 7700
                            *GreenDeviceGamma: 8400
                            *BlueDeviceGamma: 7000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 7000
                            *GreenDeviceGamma: 8400
                            *BlueDeviceGamma: 7000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 7000
                            *GreenDeviceGamma: 8400
                            *BlueDeviceGamma: 7700
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 7000
                            *GreenDeviceGamma: 7700
                            *BlueDeviceGamma: 8400
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 7000
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 8400
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 7700
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 8400
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 8400
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 7700
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 7000
                            *BlueDeviceGamma: 7000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 7700
                            *BlueDeviceGamma: 7000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 8050
                            *BlueDeviceGamma: 7000
                        }
                    }
                }
            }
        }
        *case: Normal
        {   *% 0.8
            *switch: DeviceGammaAdjustmentChroma
            {
                *case: Flat
                {
                     *RedDeviceGamma: 8000
                     *GreenDeviceGamma: 8000
                     *BlueDeviceGamma: 8000
                }
                *case: Low
                {   *% +5% (+400)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 8400
                            *BlueDeviceGamma: 8000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 8200
                            *GreenDeviceGamma: 8400
                            *BlueDeviceGamma: 8000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 8000
                            *GreenDeviceGamma: 8400
                            *BlueDeviceGamma: 8000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 8000
                            *GreenDeviceGamma: 8400
                            *BlueDeviceGamma: 8200
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 8000
                            *GreenDeviceGamma: 8200
                            *BlueDeviceGamma: 8400
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 8000
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 8400
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 8200
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 8400
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 8400
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 8200
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 8000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 8200
                            *BlueDeviceGamma: 8000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 8300
                            *BlueDeviceGamma: 8000
                        }
                    }
                }
                *case: Medium
                {   *% +10% (+800)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 8800
                            *GreenDeviceGamma: 8800
                            *BlueDeviceGamma: 8000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 8800
                            *BlueDeviceGamma: 8000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 8000
                            *GreenDeviceGamma: 8800
                            *BlueDeviceGamma: 8000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 8000
                            *GreenDeviceGamma: 8800
                            *BlueDeviceGamma: 8400
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 8000
                            *GreenDeviceGamma: 8400
                            *BlueDeviceGamma: 8800
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 8000
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 8800
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 8400
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 8800
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 8800
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 8800
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 8800
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 8400
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 8800
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 8000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 8800
                            *GreenDeviceGamma: 8400
                            *BlueDeviceGamma: 8000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 8800
                            *GreenDeviceGamma: 8600
                            *BlueDeviceGamma: 8000
                        }
                    }
                }
                *case: High
                {   *% +20% (+1600)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 9600
                            *GreenDeviceGamma: 9600
                            *BlueDeviceGamma: 8000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 8800
                            *GreenDeviceGamma: 9600
                            *BlueDeviceGamma: 8000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 8000
                            *GreenDeviceGamma: 9600
                            *BlueDeviceGamma: 8000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 8000
                            *GreenDeviceGamma: 9600
                            *BlueDeviceGamma: 8800
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 8000
                            *GreenDeviceGamma: 8800
                            *BlueDeviceGamma: 9600
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 8000
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 9600
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 8800
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 9600
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 9600
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 9600
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 9600
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 8800
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 9600
                            *GreenDeviceGamma: 8000
                            *BlueDeviceGamma: 8000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 9600
                            *GreenDeviceGamma: 8800
                            *BlueDeviceGamma: 8000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 9600
                            *GreenDeviceGamma: 9200
                            *BlueDeviceGamma: 8000
                        }
                    }
                }
            }
        }
        *case: Light1
        {   *% 0.925
            *switch: DeviceGammaAdjustmentChroma
            {
                *case: Flat
                {
                     *RedDeviceGamma: 9250
                     *GreenDeviceGamma: 9250
                     *BlueDeviceGamma: 9250
                }
                *case: Low
                {   *% +5% (+462)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 9712
                            *GreenDeviceGamma: 9712
                            *BlueDeviceGamma: 9250
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 9481
                            *GreenDeviceGamma: 9712
                            *BlueDeviceGamma: 9250
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 9250
                            *GreenDeviceGamma: 9712
                            *BlueDeviceGamma: 9250
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 9250
                            *GreenDeviceGamma: 9712
                            *BlueDeviceGamma: 9481
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 9250
                            *GreenDeviceGamma: 9481
                            *BlueDeviceGamma: 9712
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 9250
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 9712
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 9481
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 9712
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 9712
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 9712
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 9712
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 9481
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 9712
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 9250
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 9712
                            *GreenDeviceGamma: 9481
                            *BlueDeviceGamma: 9250
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 9712
                            *GreenDeviceGamma: 9597
                            *BlueDeviceGamma: 9250
                        }
                    }
                }
                *case: Medium
                {   *% +10% (+925)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 10175
                            *GreenDeviceGamma: 10175
                            *BlueDeviceGamma: 9250
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 9712
                            *GreenDeviceGamma: 10175
                            *BlueDeviceGamma: 9250
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 9250
                            *GreenDeviceGamma: 10175
                            *BlueDeviceGamma: 9250
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 9250
                            *GreenDeviceGamma: 10175
                            *BlueDeviceGamma: 9712
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 9250
                            *GreenDeviceGamma: 9712
                            *BlueDeviceGamma: 10175
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 9250
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 10175
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 9712
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 10175
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 10175
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 10175
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 10175
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 9712
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 10175
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 9250
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 10175
                            *GreenDeviceGamma: 9712
                            *BlueDeviceGamma: 9250
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 10175
                            *GreenDeviceGamma: 9944
                            *BlueDeviceGamma: 9250
                        }
                    }
                }
                *case: High
                {   *% +20% (+1850)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 11100
                            *GreenDeviceGamma: 11100
                            *BlueDeviceGamma: 9250
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 10175
                            *GreenDeviceGamma: 11100
                            *BlueDeviceGamma: 9250
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 9250
                            *GreenDeviceGamma: 11100
                            *BlueDeviceGamma: 9250
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 9250
                            *GreenDeviceGamma: 11100
                            *BlueDeviceGamma: 10175
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 9250
                            *GreenDeviceGamma: 10175
                            *BlueDeviceGamma: 11100
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 9250
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 11100
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 10175
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 11100
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 11100
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 11100
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 11100
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 10175
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 11100
                            *GreenDeviceGamma: 9250
                            *BlueDeviceGamma: 9250
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 11100
                            *GreenDeviceGamma: 10175
                            *BlueDeviceGamma: 9250
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 11100
                            *GreenDeviceGamma: 10812
                            *BlueDeviceGamma: 9250
                        }
                    }
                }
            }
        }
        *case: Light2
        {   *% 1.0
            *switch: DeviceGammaAdjustmentChroma
            {
                *case: Flat
                {
                     *RedDeviceGamma: 10000
                     *GreenDeviceGamma: 10000
                     *BlueDeviceGamma: 10000
                }
                *case: Low
                {   *% +5% (+500)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 10500
                            *GreenDeviceGamma: 10500
                            *BlueDeviceGamma: 10000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 10250
                            *GreenDeviceGamma: 10500
                            *BlueDeviceGamma: 10000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 10000
                            *GreenDeviceGamma: 10500
                            *BlueDeviceGamma: 10000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 10000
                            *GreenDeviceGamma: 10500
                            *BlueDeviceGamma: 10250
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 10000
                            *GreenDeviceGamma: 10250
                            *BlueDeviceGamma: 10500
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 10000
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 10500
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 10250
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 10500
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 10500
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 10500
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 10500
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 10250
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 10500
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 10000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 10500
                            *GreenDeviceGamma: 10250
                            *BlueDeviceGamma: 10000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 10500
                            *GreenDeviceGamma: 10375
                            *BlueDeviceGamma: 10000
                        }
                    }
                }
                *case: Medium
                {   *% +10% (+1000)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 11000
                            *GreenDeviceGamma: 11000
                            *BlueDeviceGamma: 10000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 10500
                            *GreenDeviceGamma: 11000
                            *BlueDeviceGamma: 10000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 10000
                            *GreenDeviceGamma: 11000
                            *BlueDeviceGamma: 10000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 10000
                            *GreenDeviceGamma: 11000
                            *BlueDeviceGamma: 10500
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 10000
                            *GreenDeviceGamma: 10500
                            *BlueDeviceGamma: 11000
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 10000
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 11000
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 10500
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 11000
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 11000
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 11000
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 11000
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 10500
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 11000
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 10000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 11000
                            *GreenDeviceGamma: 10500
                            *BlueDeviceGamma: 10000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 11000
                            *GreenDeviceGamma: 10750
                            *BlueDeviceGamma: 10000
                        }
                    }
                }
                *case: High
                {   *% +20% (+2000)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 10000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 11000
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 10000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 10000
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 10000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 10000
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 11000
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 10000
                            *GreenDeviceGamma: 11000
                            *BlueDeviceGamma: 12000
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 10000
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 12000
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 11000
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 12000
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 12000
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 11000
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 10000
                            *BlueDeviceGamma: 10000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 11000
                            *BlueDeviceGamma: 10000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 11500
                            *BlueDeviceGamma: 10000
                        }
                    }
                }
            }
        }
        *case: Light3
        {   *% 1.2
            *switch: DeviceGammaAdjustmentChroma
            {
                *case: Flat
                {
                     *RedDeviceGamma: 12000
                     *GreenDeviceGamma: 12000
                     *BlueDeviceGamma: 12000
                }
                *case: Low
                {   *% +5% (+600)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 12600
                            *GreenDeviceGamma: 12600
                            *BlueDeviceGamma: 12000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 12300
                            *GreenDeviceGamma: 12600
                            *BlueDeviceGamma: 12000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 12600
                            *BlueDeviceGamma: 12000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 12600
                            *BlueDeviceGamma: 12300
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 12300
                            *BlueDeviceGamma: 12600
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 12600
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 12300
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 12600
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 12600
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 12600
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 12600
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 12300
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 12600
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 12000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 12600
                            *GreenDeviceGamma: 12300
                            *BlueDeviceGamma: 12000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 12600
                            *GreenDeviceGamma: 12450
                            *BlueDeviceGamma: 12000
                        }
                    }
                }
                *case: Medium
                {   *% +10% (+1200)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 13200
                            *GreenDeviceGamma: 13200
                            *BlueDeviceGamma: 12000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 12600
                            *GreenDeviceGamma: 13200
                            *BlueDeviceGamma: 12000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 13200
                            *BlueDeviceGamma: 12000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 13200
                            *BlueDeviceGamma: 12600
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 12600
                            *BlueDeviceGamma: 13200
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 13200
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 12600
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 13200
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 13200
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 13200
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 13200
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 12600
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 13200
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 12000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 13200
                            *GreenDeviceGamma: 12600
                            *BlueDeviceGamma: 12000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 13200
                            *GreenDeviceGamma: 12900
                            *BlueDeviceGamma: 12000
                        }
                    }
                }
                *case: High
                {   *% +20% (+2400)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 14400
                            *GreenDeviceGamma: 14400
                            *BlueDeviceGamma: 12000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 13200
                            *GreenDeviceGamma: 14400
                            *BlueDeviceGamma: 12000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 14400
                            *BlueDeviceGamma: 12000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 14400
                            *BlueDeviceGamma: 13200
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 13200
                            *BlueDeviceGamma: 14400
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 12000
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 14400
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 13200
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 14400
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 14400
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 14400
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 14400
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 13200
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 14400
                            *GreenDeviceGamma: 12000
                            *BlueDeviceGamma: 12000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 14400
                            *GreenDeviceGamma: 13200
                            *BlueDeviceGamma: 12000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 14400
                            *GreenDeviceGamma: 13800
                            *BlueDeviceGamma: 12000
                        }
                    }
                }
            }
        }
        *case: Light4
        {   *% 1.4
            *switch: DeviceGammaAdjustmentChroma
            {
                *case: Flat
                {
                     *RedDeviceGamma: 14000
                     *GreenDeviceGamma: 14000
                     *BlueDeviceGamma: 14000
                }
                *case: Low
                {   *% +5% (+700)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 14700
                            *GreenDeviceGamma: 14700
                            *BlueDeviceGamma: 14000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 14350
                            *GreenDeviceGamma: 14700
                            *BlueDeviceGamma: 14000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 14000
                            *GreenDeviceGamma: 14700
                            *BlueDeviceGamma: 14000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 14000
                            *GreenDeviceGamma: 14700
                            *BlueDeviceGamma: 14350
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 14000
                            *GreenDeviceGamma: 14350
                            *BlueDeviceGamma: 14700
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 14000
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 14700
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 14350
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 14700
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 14700
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 14700
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 14700
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 14350
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 14700
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 14000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 14700
                            *GreenDeviceGamma: 14350
                            *BlueDeviceGamma: 14000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 14700
                            *GreenDeviceGamma: 14525
                            *BlueDeviceGamma: 14000
                        }
                    }
                }
                *case: Medium
                {   *% +10% (+1400)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 15400
                            *GreenDeviceGamma: 15400
                            *BlueDeviceGamma: 14000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 15400
                            *GreenDeviceGamma: 14700
                            *BlueDeviceGamma: 14000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 14000
                            *GreenDeviceGamma: 15400
                            *BlueDeviceGamma: 14000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 14000
                            *GreenDeviceGamma: 15400
                            *BlueDeviceGamma: 14700
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 14000
                            *GreenDeviceGamma: 14700
                            *BlueDeviceGamma: 15400
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 14000
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 15400
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 14700
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 15400
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 15400
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 15400
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 15400
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 14700
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 15400
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 14000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 15400
                            *GreenDeviceGamma: 14700
                            *BlueDeviceGamma: 14000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 15400
                            *GreenDeviceGamma: 15050
                            *BlueDeviceGamma: 14000
                        }
                    }
                }
                *case: High
                {   *% +20% (+2800)
                    *switch: DeviceGammaAdjustmentHue
                    {
                        *case: Yellow
                        {
                            *RedDeviceGamma: 16800
                            *GreenDeviceGamma: 16800
                            *BlueDeviceGamma: 14000
                        }
                        *case: YellowishGreen
                        {
                            *RedDeviceGamma: 15400
                            *GreenDeviceGamma: 16800
                            *BlueDeviceGamma: 14000
                        }
                        *case: Green
                        {
                            *RedDeviceGamma: 14000
                            *GreenDeviceGamma: 16800
                            *BlueDeviceGamma: 14000
                        }
                        *case: BluishGreen
                        {
                            *RedDeviceGamma: 14000
                            *GreenDeviceGamma: 16800
                            *BlueDeviceGamma: 15400
                        }
                        *case: GreenishBlue
                        {
                            *RedDeviceGamma: 14000
                            *GreenDeviceGamma: 15400
                            *BlueDeviceGamma: 16800
                        }
                        *case: Blue
                        {
                            *RedDeviceGamma: 14000
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 16800
                        }
                        *case: BluishPurple
                        {
                            *RedDeviceGamma: 15400
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 16800
                        }
                        *case: Purple
                        {
                            *RedDeviceGamma: 16800
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 16800
                        }
                        *case: ReddishPurple
                        {
                            *RedDeviceGamma: 16800
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 15400
                        }
                        *case: Red
                        {
                            *RedDeviceGamma: 16800
                            *GreenDeviceGamma: 14000
                            *BlueDeviceGamma: 14000
                        }
                        *case: Orange
                        {
                            *RedDeviceGamma: 16800
                            *GreenDeviceGamma: 15400
                            *BlueDeviceGamma: 14000
                        }
                        *case: YellowishOrange
                        {
                            *RedDeviceGamma: 16800
                            *GreenDeviceGamma: 16100
                            *BlueDeviceGamma: 14000
                        }
                    }
                }
            }
        }
    }
}

*BlockMacro: BM_DEVGAMMAADJ_BRIGHTNESS_OPTIONS
{
    *rcNameID: =RC_STR_BRGHTNSS
    *FeatureType: DOC_PROPERTY
    *DefaultOption: Light3
    *Option: DriverDefault
    {
        *rcNameID: =RC_STR_DRVDEF
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.997
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Dark2
    {
        *rcNameID: =RC_STR_DARK2
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.997
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Dark1
    {
        *rcNameID: =RC_STR_DARK1
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.997
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Normal
    {
        *rcNameID: =RC_STR_NORMAL
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.997
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Light1
    {
        *rcNameID: =RC_STR_LGHT1
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.997
                    *Cmd: ""
                }
             }
        }
    }
    *Option: Light2
    {
        *rcNameID: =RC_STR_LGHT2
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.997
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Light3
    {
        *rcNameID: =RC_STR_LGHT3
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.997
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Light4
    {
        *rcNameID: =RC_STR_LGHT4
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.997
                    *Cmd: ""
                }
            }
        }
    }
}

*BlockMacro: BM_DEVGAMMAADJ_HUE_OPTIONS
{
    *rcNameID: =RC_STR_HUE
    *FeatureType: DOC_PROPERTY
    *DefaultOption: Red
    *Option: Yellow
    {
        *rcNameID: =RC_STR_YLW
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: YellowishGreen
    {
        *rcNameID: =RC_STR_YLWGRN
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Green
    {
        *rcNameID: =RC_STR_GRN
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: BluishGreen
    {
        *rcNameID: =RC_STR_BLUGRN
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: GreenishBlue
    {
        *rcNameID: =RC_STR_GRNBLU
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Blue
    {
        *rcNameID: =RC_STR_BLU
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: BluishPurple
    {
        *rcNameID: =RC_STR_BLUPPL
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Purple
    {
        *rcNameID: =RC_STR_PPL
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: ReddishPurple
    {
        *rcNameID: =RC_STR_REDPPL
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Red
    {
        *rcNameID: =RC_STR_RED
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Orange
    {
        *rcNameID: =RC_STR_ORG
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: YellowishOrange
    {
        *rcNameID: =RC_STR_YLWORG
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
}

*BlockMacro: BM_DEVGAMMAADJ_CHROMA_OPTIONS
{
    *rcNameID: =RC_STR_CHROMA
    *FeatureType: DOC_PROPERTY
    *DefaultOption: High
    *Option: Flat
    {
        *rcNameID: =RC_STR_FLAT
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Low
    {
        *rcNameID: =RC_STR_LOW
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: Medium
    {
        *rcNameID: =RC_STR_MED
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
    *Option: High
    {
        *rcNameID: =RC_STR_HIGH
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.996
                    *Cmd: ""
                }
            }
        }
    }
}
*% Macros for US English (ESC/PAGE version)
*Macros: CmdStrings
{
    CMD_STARTDOC_INI   : "<1B01>@EJL <0A>@EJL EN LA=ESC/PAGE<0A>"
+                        "<1B01>@EJL <0A>@EJL SE LA=ESC/PAGE<0A>"
+                        "@EJL SET EC=ON PU=1 ZO=OFF RS=FN<0A>"
+                        "<1D>rhE<1D>0;0.12muE"
    CMD_STARTDOC_INI_FN   : "<1B01>@EJL <0A>@EJL SE LA=ESC/PAGE<0A>"
+                        "@EJL SET EC=ON ZO=OFF RESOLUTION=FINE"
    CMD_STARTDOC_INI_QK   : "<1B01>@EJL <0A>@EJL SE LA=ESC/PAGE<0A>"
+                        "@EJL SET EC=ON ZO=OFF RESOLUTION=QUICK"
    CMD_STARTDOC_FIN   : "@EJL EN LA=ESC/PAGE<0A>"
+                        "<1D>rhE<1D>0;0.12muE<1D>14isE<1D>2iaF<1D>24ifF<1D>1ipP"
    CMD_STARTDOC_C_INI : "<1B01>@EJL <0A>@EJL SE LA=ESC/PAGE<0A>"
+                        "@EJL SET EC=ON PU=1 ZO=OFF<0A>"
    CMD_STARTDOC_C_FIN : "@EJL EN LA=ESC/PAGE-COLOR<0A>"
+                        "<1D>rhE<1D>0;0.12muE<1D>2;160wfE<1D>5;136wfE"
    CMD_STARTDOC_C_FIN_QK : "@EJL SET RS=QK<0A>@EJL EN LA=ESC/PAGE-COLOR<0A>"
+                        "<1D>rhE<1D>0;0.12muE"
    CMD_STARTDOC_C_FIN_FN : "@EJL SET RS=FN<0A>@EJL EN LA=ESC/PAGE-COLOR<0A>"
+                        "<1D>rhE<1D>0;0.12muE"
    CMD_EJL_SET        : "@EJL SET"
    CMD_EJL_DEF        : " ERRORCODE=ON ZOOM=OFF"
    CMD_EJL_FACEDOWN   : " OU=FD"
    CMD_EJL_FACEUP     : " OU=FU"
    CMD_EJL_FINE       : " RESOLUTION=FINE"
    CMD_EJL_QUICK      : " RESOLUTION=QUICK"
    CMD_EJL_NORMAL     : " PAPERTHICKNESS=NORMAL"
    CMD_EJL_THICK      : " PAPERTHICKNESS=THICK"
    CMD_EJL_THIN       : " PAPERTHICKNESS=THIN"
    CMD_EJL_OHP        : " PAPERTHICKNESS=TRANSPARENCY"
    CMD_EJL_END        : "<0A>"

    CMD_COLADJ_PHOTOACC    : "<1D>0;0cmmE<1D>1;2;3ccmE<1D>2;2;4ccmE<1D>3;2;4ccmE<1D>"
+                            "1;2raE<1D>2;2raE<1D>3;2raE<1D>1cmmE"
    CMD_COLADJ_VIVIDACC    : "<1D>0;0cmmE<1D>1;2;3ccmE<1D>2;2;3ccmE<1D>3;2;4ccmE<1D>"
+                            "1;1raE<1D>2;1raE<1D>3;1raE<1D>1cmmE"
    CMD_COLADJ_PHOTO       : "<1D>0;1cmmE<1D>0;2;4ccmE<1D>"
+                            "0;2raE<1D>1cmmE"
    CMD_COLADJ_VIVID       : "<1D>0;1cmmE<1D>0;2;3ccmE<1D>"
+                            "0;2raE<1D>1cmmE"
    CMD_COLADJ_NONE        : "<1D>0;1cmmE<1D>0;2;2ccmE<1D>"
+                            "0;1raE<1D>1cmmE"
}
*CodePage: 1252
*ModelName: "Epson EPL-C8200"
*MasterUnits: PAIR(1200, 1200)
*ResourceDLL: "EPLRCZ00.DLL"
*PrinterType: PAGE
*MaxCopies: 255
*PrintRate: 4
*PrintRateUnit: PPM
*FontCartSlots: 0
*rcInstalledOptionNameID: =RC_STR_OPTION_ON
*rcNotInstalledOptionNameID: =RC_STR_OPTION_OFF

*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.30
                    *Cmd: "<1D>0poE"
                }
            }
        }
    }
    *Option: LANDSCAPE_CC90
    {
        *rcNameID: =LANDSCAPE_DISPLAY
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.30
                    *Cmd: "<1D>1poE"
                }
            }
        }
    }
}

*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: AUTOSEL
    *Option: AUTOSEL
    {
        *rcNameID: =RC_STR_AUTOSEL
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.50
                    *Cmd: "<1D>0;0iuE"
                }
            }
        }
    }
    *Option: CST1_E
    {
        *rcNameID: =RC_STR_CST1
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.50
                    *Cmd: "<1D>2;1iuE"
                }
            }
        }
    }
    *Option: CST2_E
    {
        *rcNameID: =RC_STR_CST2
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.50
                    *Cmd: "<1D>3;1iuE"
                }
            }
        }
        *Constraints: LIST(LowerCassetteUnits.NotInstalled)
    }
    *Option: CST3_E
    {
        *rcNameID: =RC_STR_CST3
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.50
                    *Cmd: "<1D>4;1iuE"
                }
            }
        }
        *Constraints: LIST(LowerCassetteUnits.NotInstalled)
    }
    *Option: CST4_E
    {
        *rcNameID: =RC_STR_CST4
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.50
                    *Cmd: "<1D>5;1iuE"
                }
            }
        }
        *Constraints: LIST(LowerCassetteUnits.NotInstalled, LowerCassetteUnits.500ST_CST)
    }
    *Option: FTRAY_E
    {
        *rcNameID: =RC_STR_TRAY
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.50
                    *Cmd: "<1D>1;1iuE"
                }
            }
        }
    }
}

*Feature: OutputBin
{
    *rcNameID: =OUTPUTBIN_DISPLAY
    *DefaultOption: FACEDOWN
    *Option: FACEDOWN
    {
        *rcNameID: =RC_STR_FACEDOWN
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.2
                    *Cmd: =CMD_EJL_FACEDOWN
                }
            }
        }
    }
    *Option: FACEUP
    {
        *rcNameID: =RC_STR_FACEUP
        *OutputOrderReversed?: TRUE
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.2
                    *Cmd: =CMD_EJL_FACEUP
                }
            }
        }
    }
}

*Feature: LowerCassetteUnits
{
    *FeatureType: PRINTER_PROPERTY
    *rcNameID: =RC_STR_LCST
    *DefaultOption: NotInstalled
    *Option: NotInstalled
    {
        *rcNameID: =RC_STR_OPTION_OFF
    }
    *Option: HIGHCAP_CST
    {
        *rcNameID: =RC_STR_HIGHCAPACITY
    }
    *Option: 500ST_CST
    {
        *rcNameID: =RC_STR_500S_CST
    }
}

*Feature: MediaType
{
    *rcNameID: =MEDIA_TYPE_DISPLAY
    *DefaultOption: STANDARD
    *Option: STANDARD
    {
        *rcNameID: =PLAIN_PAPER_DISPLAY
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.3
                    *Cmd: =CMD_EJL_NORMAL
                }
            }
        }
    }
    *Option: TRANSPARENCY
    {
        *rcNameID: =TRANSPARENCY_DISPLAY
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.3
                    *Cmd: =CMD_EJL_OHP
                }
            }
        }
    }
    *Option: THICK
    {
        *rcNameID: =RC_STR_THICK
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.3
                    *Cmd: =CMD_EJL_THICK
                }
            }
        }
    }
}

*Feature: ColorAdjustment
{
    *rcNameID: =RC_STR_CLRADJUST
    *FeatureType: DOC_PROPERTY
    *DefaultOption: PhotoRealAcc
    *Option: PhotoRealAcc
    {
        *rcNameID: =RC_STR_PHOTOREALACC
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.16
                    *Cmd: =CMD_COLADJ_PHOTOACC
                }
            }
        }
    }
    *Option: VividAcc
    {
        *rcNameID: =RC_STR_VIVIDACC
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.16
                    *Cmd: =CMD_COLADJ_VIVIDACC
                }
            }
        }
    }
    *Option: PhotoReal
    {
        *rcNameID: =RC_STR_PHOTOREAL
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.16
                    *Cmd: =CMD_COLADJ_PHOTO
                }
            }
        }
    }
    *Option: Vivid
    {
        *rcNameID: =RC_STR_VIVID
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.16
                    *Cmd: =CMD_COLADJ_VIVID
                }
            }
        }
    }
    *Option: None
    {
        *rcNameID: =RC_STR_NONE
        *switch: ColorMode
        {
            *case: Mono
            {
                *switch: DMS
                {
                    *case: Disable
                    {
                        *Command: CmdSelect
                        {
                            *Order: DOC_SETUP.16
                            *Cmd: ""
                        }
                    }
                }
            }
            *case: 24bpp
            {
                *switch: DMS
                {
                    *case: Disable
                    {
                        *Command: CmdSelect
                        {
                            *Order: DOC_SETUP.16
                            *Cmd: =CMD_COLADJ_NONE
                        }
                    }
                }
            }
        }
    }
}

*Feature: DeviceGammaAdjustmentBrightness
{
    *InsertBlock: =BM_DEVGAMMAADJ_BRIGHTNESS_OPTIONS
}
*Feature: DeviceGammaAdjustmentHue
{
    *InsertBlock: =BM_DEVGAMMAADJ_HUE_OPTIONS
}
*Feature: DeviceGammaAdjustmentChroma
{
    *InsertBlock: =BM_DEVGAMMAADJ_CHROMA_OPTIONS
}

*Feature: StartDocFin
{
    *rcNameID: =RC_STR_NONE  *% Dummy
    *ConcealFromUI?: TRUE
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID: =RC_STR_NONE  *% Dummy
        *switch: ColorMode
        {
            *case: Mono
            {
                *switch: DMS
                {
                    *case: Disable
                    {
                        *Command: CmdSelect
                        {
                            *Order: DOC_SETUP.10
                            *Cmd: =CMD_EJL_END =CMD_STARTDOC_FIN
                        }
                    }
                }
            }
            *case: 24bpp
            {
                *switch: Resolution
                {
                    *case: 300dpi
                    {
                        *switch: DMS
                        {
                            *case: Disable
                            {
                                 *Command: CmdSelect
                                {
                                    *Order: DOC_SETUP.10
                                    *Cmd: =CMD_EJL_END =CMD_STARTDOC_C_FIN_QK
                                }
                            }
                        }
                     }
                    *case: 600dpi
                    {
                        *switch: DMS
                        {
                            *case: Disable
                            {
                                *Command: CmdSelect
                                {
                                    *Order: DOC_SETUP.10
                                    *Cmd: =CMD_EJL_END =CMD_STARTDOC_C_FIN_FN
                                }
                            }
                        }
                     }
                }
            }
        }
    }
}

*Feature: ColorMode
{
    *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
    *DefaultOption: 24bpp
    *Option: Mono
    {
        *rcNameID: =MONO_DISPLAY
        *DevNumOfPlanes: 1
        *DevBPP: 1
        *Color? : FALSE
*%      *DisabledFeatures: LIST(PrinterMode,ColorAdjustment)
        *DisabledFeatures: LIST(ColorAdjustment)
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.11
                    *Cmd: ""
                }
            }
        }
    }
    *Option: 24bpp
    {
        *rcNameID: =24BPP_DISPLAY
        *DevNumOfPlanes: 1
        *DevBPP: 24
        *DrvBPP: 24
        *PaletteSize: 16
        *PaletteProgrammable?: TRUE

        *Command: CmdDefinePaletteEntry
        {
            *CallbackID: =DEFINE_PALETTE_ENTRY
            *Params: LIST(PaletteIndexToProgram,RedValue,GreenValue,BlueValue)
        }
        *Command: CmdSelectPaletteEntry
        {
            *CallbackID: =SELECT_PALETTE_ENTRY
            *Params: LIST(CurrentPaletteIndex)
        }
        *Command: CmdSetSrcBmpWidth
        {
            *CallbackID: =SET_SRC_BMP_WIDTH
            *Params: LIST(RasterDataWidthInBytes)
        }
        *Command: CmdSetSrcBmpHeight
        {
            *CallbackID: =SET_SRC_BMP_HEIGHT
            *Params: LIST(RasterDataHeightInPixels)
        }
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.11
                    *Cmd: "<1D>0pdnO<1D>0pddO<1D>2;160wfE<1D>5;136wfE<1D>0;0mmE<1D>2csE"
                }
            }
        }
    }
}

*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: 300dpi
    *Option: 300dpi
    {
        *Name: "300 x 300 dots per inch"
        *DPI: PAIR(300, 300)
        *TextDPI: PAIR(300, 300)
        *MinStripBlankPixels: 32
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
        EXTERN_GLOBAL: *SendMultipleRows?: TRUE
        *SpotDiameter: 100
        *switch: ColorMode
        {
            *case: Mono
            {
                *Command: CmdSendBlockData
                {
                    *Cmd: "<1D>" %d{NumOfDataBytes }";" %d{(RasterDataWidthInBytes * 8) }";"
+                 %d{RasterDataHeightInPixels } ";0bi{I"
                }
                *switch: DMS
                {
                    *case: Disable
                    {
                        *Command: CmdSelect
                        {
                            *Order: DOC_SETUP.20
                            *Cmd: "<1D>0;300;300drE<1D>1;300;300drE<1D>2;300;300drE"
                        }
                    }
                }
            }
            *case: 24bpp
            {
                *Command: CmdSendBlockData
                {
                    *CallbackID: =SEND_BLOCK_DATA
                    *Params: LIST(NumOfDataBytes,RasterDataWidthInBytes,RasterDataHeightInPixels)
                }
                *Command: CmdEndBlockData
                {
                    *Cmd: "<1D>ecrI"
                }
                *switch: DMS
                {
                    *case: Disable
                    {
                        *Command: CmdSelect
                        {
                            *Order: DOC_SETUP.20
                            *Cmd: "<1D>0;300;300drE<1D>1;300;300drE<1D>2;300;300drE<1D>3;300;300drE"
                        }
                    }
                }
                *InsertBlock: =BM_GAMMA_ADJUSTMENT
            }
        }
    }
    *Option: 600dpi
    {
        *Name: "600 x 600 dots per inch"
        *DPI: PAIR(600, 600)
        *TextDPI: PAIR(600, 600)
        *MinStripBlankPixels: 32
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
        EXTERN_GLOBAL: *SendMultipleRows?: TRUE
        *SpotDiameter: 100
        *switch: ColorMode
        {
            *case: Mono
            {
                *Command: CmdSendBlockData
                {
                    *Cmd : "<1D>" %d{NumOfDataBytes}";" %d{(RasterDataWidthInBytes * 8)}";"
+                 %d{RasterDataHeightInPixels}";0bi{I" 
                }
                *switch: DMS
                {
                    *case: Disable
                    {
                        *Command: CmdSelect
                        {
                            *Order: DOC_SETUP.20
                            *Cmd: "<1D>0;600;600drE<1D>1;600;600drE<1D>2;600;600drE"
                        }
                    }
                }
            }
            *case: 24bpp
            {
                *Command: CmdSendBlockData
                {
                    *CallbackID: =SEND_BLOCK_DATA
                    *Params: LIST(NumOfDataBytes,RasterDataWidthInBytes,RasterDataHeightInPixels)
                }
                *Command: CmdEndBlockData
                {
                    *Cmd: "<1D>ecrI"
                }
                *switch: DMS
                {
                    *case: Disable
                    {
                        *Command: CmdSelect
                        {
                            *Order: DOC_SETUP.20
                            *Cmd: "<1D>0;600;600drE<1D>1;600;600drE<1D>2;600;600drE<1D>3;600;600drE"
                        }
                    }
                }
                *InsertBlock: =BM_GAMMA_ADJUSTMENT
            }
        }
    }
}

*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: A4
    *Option: A3
    {
        *InsertBlock: =BM_PS_A3
    }
    *Option: A4
    {
        *InsertBlock: =BM_PS_A4
    }
    *Option: A5
    {
        *InsertBlock: =BM_PS_A5
    }
    *Option: B5
    {
        *InsertBlock: =BM_PS_B5
    }
    *Option: LETTER
    {
        *InsertBlock: =BM_PS_LT
    }
    *Option: HLT
    {
        *InsertBlock: =BM_PS_HLT
    }
    *Option: LEGAL
    {
        *InsertBlock: =BM_PS_LGL
    }
    *Option: EXECUTIVE
    {
        *InsertBlock: =BM_PS_EXE
    }
    *Option: GLG
    {
        *InsertBlock: =BM_PS_GLG
    }
    *Option: GLT
    {
        *InsertBlock: =BM_PS_GLT
    }
    *Option: F4
    {
        *InsertBlock: =BM_PS_F4
    }
    *Option: ENV_MONARCH
    {
        *InsertBlock: =BM_PS_MON
    }
    *Option: C10
    {
        *InsertBlock: =BM_PS_C10
    }
*%    *Option: ENV_10
*%    {
*%        *InsertBlock: =BM_PS_E10
*%    }
    *Option: ENV_DL
    {
        *InsertBlock: =BM_PS_DL
    }
*%    *Option: ENV_C5
*%    {
*%        *InsertBlock: =BM_PS_C5
*%    }
    *Option: B
    {
        *InsertBlock: =BM_PS_LEDGER_PORTRAIT
    }
    *Option: B4
    {
        *InsertBlock: =BM_PS_B4
    }
    *Option: ENV_C6
    {
        *InsertBlock: =BM_PS_ENV_C6
    }
    *Option: IB5
    {
        *InsertBlock: =BM_PS_IB5
    }
    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MaxSize: PAIR(15492, 21384)
        *MinSize: PAIR( 4260,  6600)
        *MaxPrintableWidth: 15012
        *MinLeftMargin: 240
        *TopMargin:     240
        *TopMargin:     240
        *CenterPrintable?: TRUE

        *InsertBlock: =BM_PSB_CTM
    }
    *Option: A3W
    {
        *InsertBlock: =BM_PS_A3W
    }
}

*Feature: Halftone
{
    *rcNameID: =HALFTONING_DISPLAY
    *DefaultOption: HT_PATSIZE_AUTO
    *Option: HT_PATSIZE_AUTO
    {
        *rcNameID: =HT_AUTO_SELECT_DISPLAY
    }
    *Option: HT_PATSIZE_SUPERCELL_M
    {
        *rcNameID: =HT_SUPERCELL_DISPLAY
    }
    *Option: HT_PATSIZE_6x6_M
    {
        *rcNameID: =HT_DITHER6X6_DISPLAY
    }
    *Option: HT_PATSIZE_8x8_M
    {
        *rcNameID: =HT_DITHER8X8_DISPLAY
    }
}

*Feature: DMS
{
    *rcNameID: =RC_STR_DMS_FEATURE
    *FeatureType: JOB_PROPERTY
    *DefaultOption: Enable
    *Option: Enable
    {
         *rcNameID: =RC_STR_DMS_ENABLE
    }
    *Option: Disable
    {
         *rcNameID: =RC_STR_DMS_DISABLE
    }
}
*OEMCustomData:     "MEMORY=64<0D>"
+                   "CACHE=ESPER1<0D>"
+                   "TTFS=USA<0D>"
+                   "EJL=RS,PU,PS,OU,ZO,EC,SZ,RI,SN,PGIMODE,DL,SL,CO,QT,PK,TO,LO,STARTJOB<0D>"
+                   "<0C>"

*Feature: Memory
{
    *rcNameID: =PRINTER_MEMORY_DISPLAY
    *DefaultOption: 64MB
    *Option: 64MB
    {
        *Name: "64MB"
        *MemoryConfigMB: PAIR(64, 32)
    }
    *Option: 96MB
    {
        *Name: "96MB"
        *MemoryConfigMB: PAIR(96, 48)
    }
    *Option: 128MB
    {
        *Name: "128MB"
        *MemoryConfigMB: PAIR(128, 64)
    }
    *Option: 160MB
    {
        *Name: "160MB"
        *MemoryConfigMB: PAIR(160, 80)
    }
    *Option: 192MB
    {
        *Name: "192MB"
        *MemoryConfigMB: PAIR(192, 96)
    }
    *Option: 224MB
    {
        *Name: "224MB"
        *MemoryConfigMB: PAIR(224, 112)
    }
    *Option: 256MB
    {
        *Name: "256MB"
        *MemoryConfigMB: PAIR(256, 128)
    }
}
*Command: CmdStartJob
{
    *Order: JOB_SETUP.1
    *CallbackID: =SET_LCID_U
}
*switch: ColorMode
{
    *case: Mono
    {
        *switch: DMS
        {
            *case: Disable
            {
                *switch: Resolution
                {
                    *case: 300dpi
                    {
                        *Command: CmdStartDoc
                        {
                            *Order: DOC_SETUP.1
                            *Cmd: =CMD_STARTDOC_INI_QK
                         }
                    }
                    *case: 600dpi
                    {
                        *Command: CmdStartDoc
                        {
                            *Order: DOC_SETUP.1
                            *Cmd: =CMD_STARTDOC_INI_FN
                        }
                    }
                }
            }
        }
    }
    *case: 24bpp
    {
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdStartDoc
                {
                    *Order: DOC_SETUP.1
                    *Cmd: =CMD_STARTDOC_C_INI =CMD_EJL_SET
                }
            }
        }
    }
}
*switch: DMS
{
    *case: Disable
    {
        *Command: CmdStartPage
        {
            *Order: PAGE_SETUP.1
            *Cmd: "<1D>0alfP<1D>0affP<1D>0;0;0clfP<1D>0X<1D>0Y"
        }
        *Command: CmdEndJob
        {
            *Order: JOB_FINISH.1
            *Cmd: "<1D>rhE<1B01>@EJL <0A1B01>@EJL <0A>"
        }
        *Command: CmdCopies
        {
            *Order: PAGE_SETUP.7
            *Cmd: "<1D>"%d[1,255]{NumOfCopies}"coO"
         }
    }
}
*RotateCoordinate?: TRUE
*RotateRaster?: TRUE
*RotateFont?: TRUE
*TextCaps: LIST(TC_CR_90,TC_SF_X_YINDEP,TC_SA_INTEGER,TC_SA_CONTIN,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE)
*MemoryUsage: LIST(FONT,RASTER)
*CursorXAfterCR: AT_CURSOR_X_ORIGIN
*BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
*YMoveAttributes: LIST(SEND_CR_FIRST)
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 600
*YMoveUnit: 600
*% #if !defined(DUMPRASTER)
*Command: CmdXMoveAbsolute { *Cmd : "<1D>" %d{(DestX / 2) }"X" }
*Command: CmdXMoveRelRight { *Cmd : "<1D>" %d{(DestXRel / 2) }"H" }
*Command: CmdXMoveRelLeft { *Cmd : "<1D>-" %d{(DestXRel / 2) }"H" }
*Command: CmdYMoveAbsolute { *Cmd : "<1D>" %d{(DestY / 2) }"Y" }
*Command: CmdYMoveRelDown { *Cmd : "<1D>" %d{(DestYRel / 2) }"V" }
*Command: CmdYMoveRelUp { *Cmd : "<1D>-" %d{(DestYRel / 2) }"V" }
*% #else    // !defined(DUMPRASTER)
*IgnoreBlock
{   *% for DEBUG
*Command: CmdXMoveAbsolute
{
    *CallbackID : =XMOVE_ABS
    *Params: LIST(DestX)
}
*Command: CmdXMoveRelRight
{
    *CallbackID : =XMOVE_REL_RT
    *Params: LIST(DestXRel)
}
*Command: CmdXMoveRelLeft
{
    *CallbackID : =XMOVE_REL_LF
    *Params: LIST(DestXRel)
}
*Command: CmdYMoveAbsolute
{
    *CallbackID : =YMOVE_ABS
    *Params: LIST(DestY)
}
*Command: CmdYMoveRelDown
{
    *CallbackID : =YMOVE_REL_DN
    *Params: LIST(DestYRel)
}
*Command: CmdYMoveRelUp
{
    *CallbackID : =YMOVE_REL_UP
    *Params: LIST(DestYRel)
}
}   *% End of *IgnoreBlock
*% #endif // !defined(DUMPRASTER)
*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*switch: DMS
{
    *case: Disable
    {
        *Command: CmdFF { *Cmd : "<0C>" }
    }
    *case: Enable
    {
        *Command: CmdFF { *Cmd : "" }
    }
}
*Command: CmdBackSpace { *Cmd : "<08>" }
*Command: CmdPushCursor { *Cmd : "<1D>1ppP" }
*Command: CmdPopCursor { *Cmd : "<1D>2ppP" }
*Command: CmdSetSimpleRotation
{
    *CallbackID: =TEXT_PRN_DIRECTION
    *Params: LIST(PrintDirInCCDegrees)
}
*EjectPageWithFF?: TRUE
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: TRUE
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: NO_MOVE
*DefaultFont: =RC_FONT_ROMAN
*DefaultCTT: -1
*CharPosition: BASELINE
*DeviceFonts: LIST(=RC_FONT_ROMAN,=RC_FONT_SANSRF,=RC_FONT_COURIER,=RC_FONT_COURIERI,
+                  =RC_FONT_COURIERB,=RC_FONT_COURIERZ,=RC_FONT_SYMBOL,
+                  =RC_FONT_DUTCH,=RC_FONT_DUTCHI,=RC_FONT_DUTCHB,=RC_FONT_DUTCHZ,
+                  =RC_FONT_SWISS,=RC_FONT_SWISSI,=RC_FONT_SWISSB,=RC_FONT_SWISSZ,
+                  =RC_FONT_MOREWB)

*TTFS: Arial
{
    *rcTTFontNameID:  =RC_TTF_ARIAL
    *rcDevFontNameID: =RC_DF_SWISS721
}
*TTFS: CourierNew
{
    *rcTTFontNameID:  =RC_TTF_COURIERNEW
    *rcDevFontNameID: =RC_DF_COURIER
}
*TTFS: Symbol
{
    *rcTTFontNameID:  =RC_TTF_SYMBOL
    *rcDevFontNameID: =RC_DF_SYMBOLIC
}
*TTFS: TimesNewRoman
{
    *rcTTFontNameID:  =RC_TTF_TIMESNR
    *rcDevFontNameID: =RC_DF_DUTCH801
}
*TTFS: Wingdings
{
    *rcTTFontNameID:  =RC_TTF_WINGDINGS
    *rcDevFontNameID: =RC_DF_MOREWINGBATS
}

*TTFSEnabled?: =TTFS_ENABLED

*MinFontID: =DOWNLOAD_MIN_FONT_ID
*MaxFontID: =DOWNLOAD_MAX_FONT_ID
*MaxNumDownFonts: =DOWNLOAD_MAX_FONTS
*MinGlyphID: =DOWNLOAD_MIN_GLYPH_ID
*MaxGlyphID: =DOWNLOAD_MAX_GLYPH_ID
*FontFormat: OEM_CALLBACK
*Command: CmdSelectFontID
{
    *CallbackID: =DOWNLOAD_SELECT_FONT_ID
    *Params: LIST(CurrentFontID)
}
*Command: CmdSetFontID
{
    *CallbackID: =DOWNLOAD_SET_FONT_ID
    *Params: LIST(CurrentFontID)
}
*Command: CmdSetCharCode
{
    *CallbackID: =DOWNLOAD_SET_CHAR_CODE
    *Params: LIST(NextGlyph)
}
*Command: CmdDeleteFont
{
    *CallbackID: =DOWNLOAD_DELETE_FONT
    *Params: LIST(CurrentFontID)
}
*Command: CmdBoldOn
{
    *CallbackID: =TEXT_BOLD
    *Params: LIST(FontBold)
}
*Command: CmdBoldOff
{
    *CallbackID: =TEXT_BOLD
    *Params: LIST(FontBold)
}
*Command: CmdItalicOn
{
    *CallbackID: =TEXT_ITALIC
    *Params: LIST(FontItalic)
}
*Command: CmdItalicOff
{
    *CallbackID: =TEXT_ITALIC
    *Params: LIST(FontItalic)
}

*switch: ColorMode
{
    *case: Mono
    {
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdEnableFE_RLE
                {
                    *Cmd : "<1D>1bcI"
                }
                *Command: CmdDisableCompression
                {
                    *Cmd : "<1D>0bcI"
                }
                *Command: CmdUnderlineOn { *Cmd : "<1D>0;2rpI<1D>1ulC" }
                *Command: CmdUnderlineOff { *Cmd : "<1D>0ulC" }
                *Command: CmdWhiteTextOn { *Cmd : "<1D>1;0;0spE<1D>1owE<1D>1tsE" }
                *Command: CmdWhiteTextOff { *Cmd : "<1D>1;0;100spE<1D>0owE<1D>0tsE" }
                *Command: CmdSelectWhiteBrush { *Cmd : "<1D>1;0;0spE<1D>1owE<1D>1tsE" }
                *Command: CmdSelectBlackBrush { *Cmd : "<1D>1;0;100spE<1D>0owE<1D>0tsE" }
                *Command: CmdVerticalPrintingOn
                {
                    *CallbackID: =TEXT_VERTICAL
                }
                *Command: CmdVerticalPrintingOff
                {
                    *CallbackID: =TEXT_HORIZONTAL
                }
            }
        }
    }
    *case: 24bpp
    {
        *switch: DMS
        {
            *case: Disable
            {
                *Command: CmdEnableOEMComp
                {
                    *CallbackID: =COMPRESS_ON
                }
                *Command: CmdDisableCompression
                {
                    *CallbackID: =COMPRESS_OFF
                }
                *Command: CmdSelectSingleByteMode
                {
                    *CallbackID: =TEXT_SINGLE_BYTE
                    *Params: LIST(FontBold,FontItalic)
                }
                *Command: CmdVerticalPrintingOff
                {
                    *CallbackID: =TEXT_HORIZONTAL
                }
            }
        }
    }
}
