*% Copyright 1996 - 2005, Hewlett-Packard Co.
*% All Rights Reserved.

*%-------------------------------------------------------------------------
*% VersionSection
*%-------------------------------------------------------------------------
*%-------------------------------------------------------------------------
*GPDFileName: "hpwfax.gpd"
*GPDSpecVersion: "1.0"
*GPDFileVersion: "051.22220"

*%-------------------------------------------------------------------------
*% IncludeSection
*%-------------------------------------------------------------------------
*%-------------------------------------------------------------------------
*Include: "stdnames.gpd"
*Include: "hpz3m4sa.gpd"
*Include: "hpzsm4sa.gpd"

*%-------------------------------------------------------------------------
*% ModelNameSection
*%-------------------------------------------------------------------------

*%-------------------------------------------------------------------------
*%% Global Entries from Anima
*%-------------------------------------------------------------------------
*%-------------------------------------------------------------------------
*ModelName: "HP Fax Driver"
*MasterUnits: PAIR(1200, 1200)
*PrinterType: SERIAL
*PrintRateUnit: PPM
*HelpFile: "hpzen4sa.hlp"

*%-------------------------------------------------------------------------
*%% MacrosSection Starts
*%-------------------------------------------------------------------------
*%% CommandBlockMacroSection Starts
*%-------------------------------------------------------------------------
*Macros: OEMCommonCombinations
{
    OEM_COMMON_INFO:
+   "HTPD<00 00 00 04 19 00 00 00>"
+   "PTYP<00 00 00 04>AMCP"
+   "PCMG<00 00 00 04 1A 00 00 00>"
+   "DUPL<00 00 00 04 1A 00 00 00>"
+   "Q000<0000001C>hpaiofax.dll!FaxPrint_Create"
+   "W000<0000000A>Export_W_B"
+   "R000<0000000A>Export_R_A"
+   "P000<0000000A>Export_R_B"
+   "Y000<0000000A>Export_Y_A"
+   "Y001<0000000A>Export_Y_C"
+   "U000<0000000A>Export_U_A"
}

*BlockMacro: CMD_MediaType_PlainPaper_PrintQuality_FastDraft
{
    *Command: CmdSelect
    {
        *Cmd: ""
    }
}
*BlockMacro: CMD_MediaType_PlainPaper_PrintQuality_Normal
{
    *Command: CmdSelect
    {
        *Cmd: ""
    }
}

*BlockMacro: CMD_MediaType_PlainPaper_PrintQuality_Best
{
    *Command: CmdSelect
    {
        *Cmd: ""
    }
}

*%-------------------------------------------------------------------------
*%% OEMBlockMacroSection starts
*%-------------------------------------------------------------------------
*BlockMacro: OCD_MediaType_PlainPaper_PrintQuality_FastDraft
{
    EXTERN_GLOBAL: *OEMCustomData:
+   =OEM_COMMON_INFO =OEM_PQ_NORMAL =OEM_PCL_MEDIA_PLAIN
+   =OEM_BFP_HALFTONE_BLACKHORZRES_200 =OEM_BFP_HALFTONE_BLACKVERTRES_200
+   =OEM_BFP_HALFTONE_COLORHORZRES_200 =OEM_BFP_HALFTONE_COLORVERTRES_200
+   =OEM_BFP_BLACKEXTRACT_DISABLE =OEM_BFP_SEPARATEBLACK_DISABLE
+   =OEM_CS_REDUCED_K_CHANNEL_DISABLE
}
*BlockMacro: OCD_MediaType_PlainPaper_PrintQuality_Normal
{
    EXTERN_GLOBAL: *OEMCustomData:
+   =OEM_COMMON_INFO =OEM_PQ_NORMAL =OEM_PCL_MEDIA_PLAIN
+   =OEM_BFP_HALFTONE_BLACKHORZRES_200 =OEM_BFP_HALFTONE_BLACKVERTRES_200
+   =OEM_BFP_HALFTONE_COLORHORZRES_200 =OEM_BFP_HALFTONE_COLORVERTRES_200
+   =OEM_BFP_BLACKEXTRACT_DISABLE =OEM_BFP_SEPARATEBLACK_DISABLE
+   =OEM_CS_REDUCED_K_CHANNEL_DISABLE
}
*BlockMacro: OCD_MediaType_PlainPaper_PrintQuality_Best
{
    EXTERN_GLOBAL: *OEMCustomData:
+   =OEM_COMMON_INFO =OEM_PQ_NORMAL =OEM_PCL_MEDIA_PLAIN
+   =OEM_BFP_HALFTONE_BLACKHORZRES_200 =OEM_BFP_HALFTONE_BLACKVERTRES_200
+   =OEM_BFP_HALFTONE_COLORHORZRES_200 =OEM_BFP_HALFTONE_COLORVERTRES_200
+   =OEM_BFP_BLACKEXTRACT_DISABLE =OEM_BFP_SEPARATEBLACK_DISABLE
+   =OEM_CS_REDUCED_K_CHANNEL_DISABLE
}
*%-------------------------------------------------------------------------
*%% OtherBlockMacroSection starts
*%-------------------------------------------------------------------------
*BlockMacro: MediaType_PlainPaper
{
    *switch: PrintQuality
    {
        *case: FastDraft
        {
            *InsertBlock: =CMD_MediaType_PlainPaper_PrintQuality_FastDraft
            *InsertBlock: =OCD_MediaType_PlainPaper_PrintQuality_FastDraft
        }
        *default: 
        {
            *InsertBlock: =CMD_MediaType_PlainPaper_PrintQuality_Normal
            *InsertBlock: =OCD_MediaType_PlainPaper_PrintQuality_Normal
        }
        *case: FastNormal
        {
            *InsertBlock: =CMD_MediaType_PlainPaper_PrintQuality_FastNormal
            *InsertBlock: =OCD_MediaType_PlainPaper_PrintQuality_FastNormal
        }
        *case: Best
        {
            *InsertBlock: =CMD_MediaType_PlainPaper_PrintQuality_Best
            *InsertBlock: =OCD_MediaType_PlainPaper_PrintQuality_Best
        }
        *case: 4800x1200
        {
            *InsertBlock: =CMD_MediaType_PlainPaper_PrintQuality_HighResMode
            *InsertBlock: =OCD_MediaType_PlainPaper_PrintQuality_HighResMode
        }
        *case: Automatic
        {
            *InsertBlock: =CMD_MediaType_PlainPaper_PrintQuality_Automatic
            *InsertBlock: =OCD_MediaType_PlainPaper_PrintQuality_Automatic
        }
    }
}
*%-------------------------------------------------------------------------
*%-------------------------------------------------------------------------
*%% FeatureSection Starts
*%-------------------------------------------------------------------------
*Feature: RESDLL
{
    *Name: "resource dll files"
    *Option: STRRESSEC
    {
        *Name: "hpzst4sa.dll"
    }
}
*Feature: HPPreAnalysis
{
    *Name: "HPPreAnalysis"
    *DefaultOption: False
    *Option: False
    {
        *Name: "False"
    }
}
*Feature: MSPreAnalysis
{
    *Name: "MSPreAnalysis"
    *DefaultOption: False
    *Option: False
    {
        *Name: "False"
    }
}
*%*Feature: HPPrintPreview
*%{
*%    *rcNameID: =IDS_SHOW_PREVIEW_HK
*%    *HelpIndex: 15466
*%    *DefaultOption: False
*%    *Option: False
*%    {
*%        *Name: "False"
*%    }
*%    *Option: True
*%    {
*%        *Name: "True"
*%    }
*%}
*Feature: HPOutputOrderReverse
{
    *Name: "HPOutputOrderReverse"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: False
    *Option: False
    {
        *Name: " "
    }
}

*%-------------------------------------------------------------------------
*% Paper Sizes
*%-------------------------------------------------------------------------
*Feature: PaperSize
{
    *%rcNameID: =IDS_PAPER_SIZE_DISPLAY
    *rcNameID: =PAPER_SIZE_DISPLAY
    *HelpIndex: 15284
    *DefaultOption: LETTER


    *Option: LETTER
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PageDimensions: PAIR(10200, 13200)
        *Command: CmdSelect
        {
           *Cmd: ""
        }
        
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9888, 11840)
                *PrintableOrigin: PAIR(156,676)
                *CursorOrigin: PAIR(156, 676)
            }
            *case: LANDSCAPE_CC270
            {
                *PrintableArea: PAIR(9888, 12544)
                *PrintableOrigin: PAIR(156, 83)
                *CursorOrigin: PAIR(10044, 83)
            }
        }
    }

   
    *Option: LEGAL
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PageDimensions: PAIR(10200, 16800)
        *Command: CmdSelect
        {
            *Cmd: ""
        }

        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9888,15680)
                *PrintableOrigin: PAIR(156,552)
                *CursorOrigin: PAIR(156,552)

            }
            *case: LANDSCAPE_CC270
            {
                *PrintableArea: PAIR(9888,15680)
                *PrintableOrigin: PAIR(156,552)
                *CursorOrigin: PAIR(156, 16232)
            }
        }
    }


    *Option: EXECUTIVE
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *%PageDimensions: PAIR(8700, 12600)
        *Command: CmdSelect
        {
            *Cmd: ""
        }

        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(8384, 11232)
                *PrintableOrigin: PAIR(158,676)
                *CursorOrigin: PAIR(158,676)

            }
            *case: LANDSCAPE_CC270
            {
                *PrintableArea: PAIR(8384, 11232)
                *PrintableOrigin: PAIR(158,676)
                *CursorOrigin: PAIR(158,11908)
            }
        }
    }

    
    *Option: A4
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *%PageDimensions: PAIR(9924, 14028)
        *Command: CmdSelect
        {
            *Cmd: ""
        }

        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9600, 13376)
                *PrintableOrigin: PAIR(156, 83)
                *CursorOrigin: PAIR(156, 83)
            }
            *case: LANDSCAPE_CC270
            {
                *PrintableArea: PAIR(9600, 13376)
                *PrintableOrigin: PAIR(156, 83)
                *CursorOrigin: PAIR(9756, 83)
            }
        }
    }
}

*Feature: HPPrnPropResourceData
{
    *Name: "HPPrnPropResourceData"
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: hpzhl4sa.cab
    *Option: hpzhl4sa.cab
    {
        *Name: "hpzhl4sa.cab"
*%name of the cab file in hpzhlyyu.cab format
    }
    *Option: hpz_en_4sa.hlp
    {
        *Name: "hpz_en_4sa.hlp"
*%name of the English help file with the token separator
    }
}
*Feature: InputBin
{
    *rcNameID: =IDS_PAPER_SOURCE
    *HelpIndex: 14025
    *DefaultOption: PrinterSelect
    
    *Option: PrinterSelect
    {
        *rcNameID: =IDS_PRINTER_AUTO_SELECT
        *Command: CmdSelect
        {
            *Cmd: ""
        }
    }
}
*Feature: HPDocPropResourceData
{
    *Name: "HPDocPropResourceData"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: hpzhl4sa.cab
    *Option: hpzhl4sa.cab
    {
        *Name: "hpzhl4sa.cab"
*%name of the cab file in hpzhlyyu.cab format
    }
    *Option: hpz_en_4sa.hlp
    {
        *Name: "hpz_en_4sa.hlp"
*%name of the English help file with the token separator
    }
}
*Feature: Orientation
{
    *rcNameID: =IDS_ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =IDS_PORTRAIT_DISPLAY
        *Command: CmdSelect
        {
            *Cmd: ""
        }
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =IDS_LANDSCAPE_DISPLAY
        *Command: CmdSelect
        {
            *Cmd: ""
        }
    }
}

*Feature: PrintQuality
{
    *rcNameID: =PRINT_QUALITY_DISPLAY
    *ConflictPriority: 20
    *FeatureType: DOC_PROPERTY
    *DefaultOption: Normal
    *Option: Automatic
    {
        *rcNameID: =IDS_AUTOMATIC
        *Command: CmdSelect
        {
            *Cmd: ""
        }
    }
    *Option: FastDraft
    {
        *rcNameID: =IDS_FAST_DRAFT
        *Command: CmdSelect
        {
            *Cmd: ""
        }
    }
    *Option: Normal
    {
        *rcNameID: =IDS_NORMAL
        *Command: CmdSelect
        {
            *Cmd: ""
        }
    }
    *Option: Best
    {
        *rcNameID: =IDS_BEST
        *Command: CmdSelect
        {
            *Cmd: ""
        }
    }
    *Option: FastNormal
    {
        *rcNameID: =IDS_FAST_NORMAL
        *Command: CmdSelect
        {
            *Cmd: ""
        }
    }
    *Option: 4800x1200
    {
        *rcNameID: =IDS_MAXIMUM_DPI
        *Command: CmdSelect
        {
            *Cmd: ""
        }
    }
}

*Feature: PrintQualityGroup
{
    *Name: "PrintQualityGroup"
    *HelpIndex: 15298
    *FeatureType: DOC_PROPERTY
    *DefaultOption: PQGroup_2

    *Option: PQGroup_3
    {
        *rcNameID: =IDS_FAST_DRAFT
    }
    *Option: PQGroup_2
    {
        *rcNameID: =IDS_NORMAL
    }
     *Option: PQGroup_1
     {
        *rcNameID: =IDS_BEST
     }
}
*Feature: HPColorMode
{
    *Name: "HPColorMode"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: COLOR_MODE
    *Option: COLOR_MODE
    {
        *Name: "Color Mode"
    }
}
*Feature: HPPDLType
{
    *Name: "HPPDLType"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: PDL_PCL3
    *Option: PDL_PCL3
    {
        *Name: "PCL 3"
    }
}
*Feature: HPXMLFileUsed
{
    *Name: "HPXMLFileUsed"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: hpwfax.xml
    *Option: hpwfax.xml
    {
        *Name: "hpwfax.xml"
    }
}

*Feature: ColorMode
{
    *rcNameID: =IDS_COLOR_PRINTING_MODE
    *HelpIndex: 12024
    *DefaultOption: Color24
    *Option: Color24
    {
        *rcNameID: =IDS_24BPP_DISPLAY
        *Color?: TRUE
        *DevNumOfPlanes: 0
        *DevBPP: 0
        *DrvBPP: 24
        *IPCallbackID: 1
        *Command: CmdSendBlockData
        {
            *Cmd: ""
        }
        *Command: CmdSelect
        {
            *Cmd: ""
        }
    }
}
*Feature: Collate
{
    *rcNameID: =IDS_COLLATE
    *DefaultOption: ON
    *Option: OFF
    {
        *rcNameID: =IDS_OFF_DISPLAY
        *Command: CmdSelect
        {
            *Cmd: ""
        }
    }
    *Option: ON
    {
        *rcNameID: =IDS_ON_DISPLAY
        *Command: CmdSelect
        {
            *Cmd: ""
        }
    }
}
*Feature: MediaType
{
    *rcNameID: =IDS_MEDIA_TYPE_DISPLAY
    *HelpIndex: 14100
    *ConflictPriority: 10
    *DefaultOption: PLAIN
*%    *Option: AUTOMATIC
*%    {
*%        *rcNameID: =IDS_AUTOMATIC
*%        *InsertBlock: =MediaType_Automatic
*%        EXTERN_GLOBAL: *ChangeColorModeOnDoc?: FALSE
*%    }
    *Option: PLAIN
    {
        *rcNameID: =IDS_HP_PLAIN_PAPER
        *InsertBlock: =MediaType_PlainPaper
        EXTERN_GLOBAL: *ChangeColorModeOnDoc?: FALSE
    }
}
*Feature: Resolution
{
    *rcNameID: =IDS_RESOLUTION_DISPLAY
    *ConflictPriority: 50
    *DefaultOption: 300dpi
    *Option: 300dpi
    {
        *rcNameID: =IDS_300DPI
        *DPI: PAIR(200, 200)
        *TextDPI: PAIR(200, 200)
        *SpotDiameter: 100
        *Constraints: LIST(PrintQuality.Automatic,PrintQuality.FastNormal,PrintQuality.Normal,PrintQuality.Best,PrintQuality.4800x1200)
    }
    *Option: 600dpi
    {
        *rcNameID: =IDS_600DPI
        *DPI: PAIR(200, 200)
        *TextDPI: PAIR(200, 200)
        *SpotDiameter: 100
        *Constraints: LIST(PrintQuality.FastDraft,PrintQuality.4800x1200)
    }
    *Option: 1200dpi
    {
        *rcNameID: =IDS_1200DPI_TEXT_RENDERING
        *DPI: PAIR(200, 200)
        *TextDPI: PAIR(200, 200)
        *SpotDiameter: 100
        *Constraints: LIST(PrintQuality.Automatic,PrintQuality.FastDraft,PrintQuality.FastNormal,PrintQuality.Normal,PrintQuality.Best)
    }
}
*Feature: PQDPI
{
    *Name: "PQDPI"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: Installed
    *Option: NotInstalled
    {
        *rcNameID: =IDS_NOTINSTALLED
    }
    *Option: Installed
    {
        *rcNameID: =IDS_INSTALLED
    }
}

*Feature: HPOutputBinOrientation
{
    *Name: "HPOutputBinOrientation"
    *DefaultOption: FACEUP
    *Option: FACEUP
    {
        *Name: "FACEUP"
    }
}

*Feature: =HPRES_DLLNAME
{
    *Name: "Img"
    *Option: =HPRES_DLLNAME_DEFAULT
    {
        *Name: ""
    }
}
*Feature: =HPHT_DLLNAME
{
    *Name: "Img"
    *Option: =HPHT_DLLNAME_DEFAULT
    {
        *Name: ""
    }
}
*Feature: =HPMH_DLLNAME
{
    *Name: "Img"
    *Option: =HPMH_DLLNAME_DEFAULT
    {
        *Name: ""
    }
}
*Feature: HPHPAFilter
{
    *Name: "HPA Filtering Enabled"
    *DefaultOption: True
    *Option: True
    {
        *Name: "True"
    }
}

*%-------------------------------------------------------------------------
*%% CommandSection starts
*%-------------------------------------------------------------------------

*RotateCoordinate?: TRUE
*RotateRaster?: FALSE
*BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 600
*YMoveUnit: 600
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT
*ReverseBandOrderForEvenPages?: TRUE

*Command: CmdStartJob
{
    *Cmd: ""
}
*Command: CmdEndJob
{
    *Cmd: ""
}
*Command: CmdStartDoc
{
    *Cmd: ""
}
*Command: CmdEndDoc
{
    *Cmd: ""
}
*Command: CmdStartPage
{
    *Cmd: ""
}
*Command: CmdEndPage
{
    *Cmd: ""
}
*Command: CmdXMoveAbsolute
{
    *Cmd: ""
}
*Command: CmdYMoveAbsolute
{
    *Cmd: ""
}
*Command: CmdCR
{
    *Cmd: ""
}
*Command: CmdLF
{
    *Cmd: ""
}
*Command: CmdFF
{
    *Cmd: ""
}
*Command: CmdSendBlackData
{
    *Cmd: ""
}
*Command: CmdSendCyanData
{
    *Cmd: ""
}
*Command: CmdSendMagentaData
{
    *Cmd: ""
}
*Command: CmdSendYellowData
{
    *Cmd: ""
}
*Command: CmdSendBlockData
{
    *Cmd: ""
}
*OutputOrderReversed?: FALSE                                                
