/*
 * PrinterModelShtrihFRFv4.java
 *
 * Created on 13 Èþëü 2010 ã., 11:41
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package com.shtrih.fiscalprinter.model;

/**
 *
 * @author V.Kravtsov
 */

import com.shtrih.fiscalprinter.command.*;

public class PrinterModelShtrihFRFv4 extends PrinterModelImpl {

    private static final int[] textLength2 = {36, 18, 36, 18, 36, 40, 36};
    private static final int[] supportedBaudRates2 = {2400, 4800, 9600, 19200, 38400, 57600, 115200};

    /**
     * Creates a new instance of PrinterModelShtrihFRFv4
     */
    public PrinterModelShtrihFRFv4() {
        id = PrinterConst.SMFP_MODELID_SHTRIH_FRFv4;
        modelID = PrinterConst.PRINTER_MODEL_SHTRIH_FRF;
        protocolVersion = 1;
        protocolSubVersion = 4;
        
        name = "SHTRIH-FR-F, version 4";
        capRecPresent = true;
        capRecEmptySensor = true;
        capRecNearEndSensor = true;
        capRecLeverSensor = true;
        capJrnPresent = true;
        capJrnEmptySensor = true;
        capJrnNearEndSensor = true;
        capJrnLeverSensor = true;
        capEJPresent = true;
        capFMPresent = true;
        capSlpPresent = false;
        capSlpEmptySensor = false;
        capSlpNearEndSensor = false;
        numVatRates = 4;
        printWidth = 432;
        capPrintGraphicsLine = false;
        capHasVatTable = true;
        capCoverSensor = true;
        capDoubleWidth = true;
        capDuplicateReceipt = true;
        amountDecimalPlace = 2;
        numHeaderLines = 4;
        numTrailerLines = 3;
        trailerTableNumber = 4;
        headerTableNumber = 4;
        headerTableRow = 4;
        trailerTableRow = 1;
        minHeaderLines = 4;
        minTrailerLines = 0;
        capFullCut = true;
        capPartialCut = true;
        capGraphics = true;
        capPrintStringFont = false;
        capShortStatus = true;
        capFontMetrics = false;
        maxGraphicsWidth = 320;
        maxGraphicsHeight = 200;
        capOpenReceipt = true;
        textLength = textLength2;
        supportedBaudRates = supportedBaudRates2;
        addParameter(PrinterConst.SMFP_PARAMID_AUTO_DRAWER, 1, 1, 7);
        addParameter(PrinterConst.SMFP_PARAMID_AUTO_CUT, 1, 1, 8);
    }
}
