FileDocCategorySizeDatePackage
NameXPtg.javaAPI DocApache Poi 3.0.12770Mon Jan 01 12:39:40 GMT 2007org.apache.poi.hssf.record.formula

NameXPtg

public class NameXPtg extends Ptg
author
aviks

Fields Summary
public static final short
sid
private static final int
SIZE
private short
field_1_ixals
private short
field_2_ilbl
private short
field_3_reserved
Constructors Summary
private NameXPtg()

   // reserved must be 0


      
      //Required for clone methods
    
public NameXPtg(String name)
Creates new NamePtg

        //TODO
    
public NameXPtg(RecordInputStream in)
Creates new NamePtg

        field_1_ixals        = in.readShort();
        field_2_ilbl        = in.readShort();
        field_3_reserved = in.readShort();
        
        //field_2_reserved = LittleEndian.getByteArray(data, offset + 12,12);
    
Methods Summary
public java.lang.Objectclone()

      NameXPtg ptg = new NameXPtg();
      ptg.field_1_ixals = field_1_ixals;
      ptg.field_3_reserved = field_3_reserved;
      ptg.field_2_ilbl = field_2_ilbl;
      ptg.setClass(ptgClass);
      return ptg;
    
public bytegetDefaultOperandClass()

return Ptg.CLASS_VALUE;
public intgetSize()

        return SIZE;
    
public java.lang.StringtoFormulaString(org.apache.poi.hssf.model.Workbook book)

        return "NO IDEA - NAME";
    
public voidwriteBytes(byte[] array, int offset)

        array[ offset + 0 ] = (byte)(sid + ptgClass);
        LittleEndian.putShort(array, offset + 1, field_1_ixals);
        LittleEndian.putShort(array,offset+3, field_2_ilbl);
        LittleEndian.putShort(array, offset + 5, field_3_reserved);