*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "1.0"
*GPDFileName: "TTP10x0.GPD"
*ModelName: "TTP10x0"
*MasterUnits: PAIR(203, 203)
*ResourceDLL: "TTPRES.Dll"
*PrinterType: SERIAL

*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
    }
}
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: AUTO
     *Option: AUTO
    {
        *rcNameID:=AUTO_DISPLAY
    }
}
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "203 x 203 " =DOTS_PER_INCH
        *DPI: PAIR(203, 203)
        *TextDPI: PAIR(203, 203)
        *PinsPerLogPass: 1
        *PinsPerPhysPass: 1
        *MinStripBlankPixels: 24
        EXTERN_GLOBAL: *StripBlanks: LIST()
        *SpotDiameter: 100
        *Command: CmdSendBlockData { *Cmd : "" }
    }
}
*Feature: ColorMode
{
    *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
    *DefaultOption: Color
    *Option: Color
    {
        *rcNameID: =COLOR_DISPLAY
        *DevNumOfPlanes: 1
        *DevBPP: 24
        *DrvBPP: 24
        *PaletteSize:256
        *IPCallbackID:1
        EXTERN_GLOBAL: *UseExpColorSelectCmd? : TRUE
    }
}
*Feature: Halftone
{
    *rcNameID: =HALFTONING_DISPLAY
    *DefaultOption: HT_PATSIZE_SUPERCELL_M
    *Option: HT_PATSIZE_SUPERCELL_M
    {
        *rcNameID: =HT_SUPERCELL_DISPLAY
    }
}

*Feature:PageType
{
     *rcNameID:599
     *DefaultOption: PAGEBASE
     *Option: PAGEBASE
    {
           *rcNameID:500
            *Command: CmdSelect
          {
               *Order: DOC_SETUP.5
   	    *CallbackID:20
	    *Params: LIST()
         }
       EXTERN_GLOBAL: *RasterSendAllData? : TRUE
    }
     *Option: ROLLBASE
    {
           *rcNameID:501
            *Command: CmdSelect
          {
                *Order: DOC_SETUP.5
  	    *CallbackID:21
	    *Params: LIST()
         }
         EXTERN_GLOBAL: *RasterSendAllData? : FALSE
   }
}
*Feature:PrintingSpeed
{
     *rcNameID:399
     *DefaultOption:10
     *Option:0
    {
           *rcNameID:300
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5600>"
          }

    }
     *Option:1
    {
           *rcNameID:301
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5601>"
          }

    }
     *Option:2
    {
           *rcNameID:302
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5602>"
          }

    }
     *Option:3
    {
           *rcNameID:303
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5603>"
          }

    }
     *Option:4
    {
           *rcNameID:304
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5604>"
          }

    }
     *Option:5
    {
           *rcNameID:305
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5605>"
          }

    }
     *Option:6
    {
           *rcNameID:306
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5606>"
          }

    }
     *Option:7
    {
           *rcNameID:307
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5607>"
          }

    }
     *Option:8
    {
           *rcNameID:308
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5608>"
          }

    }
     *Option:9
    {
           *rcNameID:309
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5609>"
          }

    }
     *Option:10
    {
           *rcNameID:310
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b560a>"
          }

    }
     *Option:11
    {
           *rcNameID:311
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b560b>"
          }

    }
     *Option:12
    {
           *rcNameID:312
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b560c>"
          }

    }
     *Option:13
    {
           *rcNameID:313
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b560d>"
          }

    }
     *Option:14
    {
           *rcNameID:314
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b560e>"
          }

    }
     *Option:15
    {
           *rcNameID:315
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b560f>"
          }

    }
     *Option:16
    {
           *rcNameID:316
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5610>"
          }

    }
     *Option:17
    {
           *rcNameID:317
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5611>"
          }

    }
     *Option:18
    {
           *rcNameID:318
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5612>"
          }

    }
     *Option:19
    {
           *rcNameID:319
           *Command: CmdSelect
          {
                *Order: DOC_SETUP.2
                *Cmd: "<1b5613>"
          }

    }
}
*Feature:PaperSensitivity
{
  *rcNameID: 499
  *DefaultOption: SENS09
  *Option: SENS00
 {
    *rcNameID:400
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b7100>"
     }
  }
  *Option: SENS01
 {
    *rcNameID:401
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b7101>"
     }
  }
  *Option: SENS02
 {
    *rcNameID:402
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b7102>"
     }
  }
  *Option: SENS03
 {
    *rcNameID:403
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b7103>"
     }
  }
  *Option: SENS04
 {
    *rcNameID:404
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b7104>"
     }
  }
  *Option: SENS05
 {
    *rcNameID:405
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b7105>"
     }
  }
  *Option: SENS06
 {
    *rcNameID:406
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b7106>"
     }
  }
  *Option: SENS07
 {
    *rcNameID:407
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b7107>"
     }
  }
  *Option: SENS08
 {
    *rcNameID:408
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b7108>"
     }
  }
  *Option: SENS09
 {
    *rcNameID:409
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b7109>"
     }
  }
  *Option: SENS10
 {
    *rcNameID:410
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b710a>"
     }
  }
  *Option: SENS11
 {
    *rcNameID:411
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b710b>"
     }
  }
  *Option: SENS12
 {
    *rcNameID:412
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b710c>"
     }
  }
  *Option: SENS13
 {
    *rcNameID:413
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b710d>"
     }
  }
  *Option: SENS14
 {
    *rcNameID:414
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b710e>"
     }
  }
  *Option: SENS15
 {
    *rcNameID:415
    *Command: CmdSelect
    {
         *Order: DOC_SETUP.3
         *Cmd: "<1b710f>"
     }
  }
}
*Feature:PaperCut
{
     *rcNameID: 200
     *%FeatureType:PRINTER_PROPERTY
     *DefaultOption: CUTDOC
     *Option: NOCUT
     {
          *rcNameID: 201
           *Command: CmdSelect
          {
                *Order: DOC_FINISH.1
 	    *CallbackID:4
	    *Params: LIST()
                *%Cmd: "<1b4a301e>"
          }
    }
     *Option: CUTDOC
     {
           *rcNameID:202
           *Command: CmdSelect
          {
                *Order: DOC_FINISH.1
 	    *CallbackID:1
	    *Params: LIST()
                *%Cmd: "<1b4a301e>"
          }
     }
     *Option: CUTPAGE
     {
           *rcNameID:203
           *Command: CmdSelect
          {
                *Order: PAGE_FINISH.2
 	    *CallbackID:2
	    *Params: LIST()
                *%Cmd: "<1b4a301e>"
          }
     }
}
*Feature: ClearPresenter
{
     *rcNameID: 800
     *DefaultOption: OFF
     *Option: OFF
     {
           *rcNameID:802
     }
     *Option: ON
     {
           *rcNameID:801
           *Switch:PaperCut
          {
           *Case: CUTPAGE
           {
              *Command: CmdSelect
             {
                 *Order: PAGE_FINISH.3
                 *Cmd: "<05>"
             }
           }
           *Case: CUTDOC
            {
             *Command: CmdSelect
            {
              *Order: DOC_FINISH.2
              *Cmd: "<05>"
            }
            }
          }
     }
}
*Command: CmdStartDoc
{
    *Order: DOC_SETUP.1
    *Cmd: ""
}
*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
    *Cmd: "<05>"
}
*Command:CmdEndPage
{
    *Order:PAGE_FINISH.2
    *CallbackID:31
    *Params: LIST()
}

*ReselectFont: AFTER_XMOVE
*RotateCoordinate?: TRUE
*RotateRaster?: TRUE
*RotateFont?: TRUE
*TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
*CursorXAfterCR: AT_CURSOR_X_ORIGIN
*%YMoveAttributes: LIST(SEND_CR_FIRST)
*MaxLineSpacing: 0
*XMoveThreshold: 0
*YMoveThreshold: *
*XMoveUnit: 203
*YMoveUnit: 203
*Command: CmdXMoveAbsolute {*Cmd : "<1B><24>" %l{DestX  }}
*Command: CmdYMoveRelDown {
	    *CallbackID:3
	    *Params: LIST(DestYRel)
                *%Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel) )}
                 }
*Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing) } }
*Command: CmdCR { *Cmd : "" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "" }
*EjectPageWithFF?: TRUE
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT
*DefaultFont: -1
*DefaultCTT: -1
*DeviceFonts: LIST()
*%Command: CmdBoldOn { *Cmd : "<1B><42><01>" }
*%Command: CmdBoldOff { *Cmd : "<1B><42><00>" }
*%Command: CmdUnderlineOn { *Cmd : "<1B><75><01>" }
*%Command: CmdUnderlineOff { *Cmd : "<1B><75><00>" }
*%Command: CmdItalicOn {*Cmd:"<1B><49><01>"}
*%Command: CmdItalicOff {*Cmd:"<1B><49><00>"}
*%Command: CmdSelectSingleByteMode { *Cmd : "<1C0F>" }
*%Command: CmdSelectDoubleByteMode { *Cmd : "<1C12>" }
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: 80MM
    *Option: 58MM
    {
        *rcNameID: 600
        *PageDimensions: PAIR(464,3248)
        *PrintableArea: PAIR(432, 3248)
        *PrintableOrigin: PAIR(16,0)
   }
    *Option: 80MM
    {
        *rcNameID: 602
        *PageDimensions: PAIR(640,3248)
        *PrintableArea: PAIR(576, 3248)
        *PrintableOrigin: PAIR(32,0)
   }

   *Option: 112MM
 {
       *rcNameID: 603
       *PageDimensions: PAIR(896,3248)
       *PrintableArea: PAIR(832, 3248)
       *PrintableOrigin: PAIR(32,0)
  }
   *Option: CUSTOMSIZE
  {
       *rcNameID: =USER_DEFINED_SIZE_DISPLAY
       *MinSize: PAIR(8, 1)
       *MaxSize: PAIR(1728, 3248)
       *MaxPrintableWidth: 1728
       *MinLeftMargin: 0
       *TopMargin:0
       *BottomMargin:0
       *CenterPrintable?: TRUE
       *CursorOrigin:PAIR(0,0)
   }
}
