/** * Set the index sheet reference for a record name * 0 is for a global reference * */ public void setSheetRef(int i) { sheetRef = i; IntegerHelper.getTwoBytes(sheetRef, data, 8); }
/** * Initializes an internal supbook record */ private void initInternal() { data = new byte[4]; IntegerHelper.getTwoBytes(numSheets, data, 0); data[2] = 0x1; data[3] = 0x4; type = INTERNAL; }
/** * Gets the data to write out to the file * * @return the binary data */ public byte[] getData() { byte[] data = new byte[2]; IntegerHelper.getTwoBytes(calcCount, data, 0); return data; } }
/** * Constructor * * @param newHideMode the hide all flag */ public HideobjRecord(int newHideMode) { super(Type.HIDEOBJ); hidemode = newHideMode; data = new byte[2]; IntegerHelper.getTwoBytes(hidemode, data, 0); }
/** * Constructor * * @param w the default column width */ public DefaultColumnWidth(int w) { super(Type.DEFCOLWIDTH); width = w; data = new byte[2]; IntegerHelper.getTwoBytes(width, data, 0); }
/** * Set the index sheet reference for a record name * 0 is for a global reference * */ public void setSheetRef(int i) { sheetRef = i; IntegerHelper.getTwoBytes(sheetRef, data, 8); }
/** * Initializes an internal supbook record */ private void initInternal() { data = new byte[4]; IntegerHelper.getTwoBytes(numSheets, data, 0); data[2] = 0x1; data[3] = 0x4; type = INTERNAL; }
/** * Constructor */ public FunctionGroupCountRecord() { super(Type.FNGROUPCOUNT); numFunctionGroups = 0xe; data = new byte[2]; IntegerHelper.getTwoBytes(numFunctionGroups, data, 0); }
/** * Constructor * * @param w the default column width */ public DefaultColumnWidth(int w) { super(Type.DEFCOLWIDTH); width = w; data = new byte[2]; IntegerHelper.getTwoBytes(width, data, 0); }
/** * Gets the data to write out to the file * * @return the binary data */ public byte[] getData() { byte[] data = new byte[2]; IntegerHelper.getTwoBytes(calcCount, data, 0); return data; } }
/** * Constructor * * @param sheets the number of sheets */ public TabIdRecord(int sheets) { super(Type.TABID); data = new byte[sheets * 2]; for (int i = 0 ; i < sheets; i++) { IntegerHelper.getTwoBytes(i+1, data, i * 2); } }
/** * Constructor * * @param ph the password hash code */ public PasswordRecord(int ph) { super(Type.PASSWORD); data = new byte[2]; IntegerHelper.getTwoBytes(ph, data, 0); }
/** * Gets the binary to data to write to the output file * * @return the binary data */ public byte[] getData() { byte[] data = new byte[2]; IntegerHelper.getTwoBytes(calculationMode.value, data, 0); return data; } }
/** * Retrieves the data to be written to the binary file * * @return the binary data */ public byte[] getData() { byte[] data = new byte[4]; IntegerHelper.getTwoBytes(language, data, 0); IntegerHelper.getTwoBytes(regionalSettings, data, 2); return data; } }
/** * Constructor * * @param sheets the number of sheets */ public TabIdRecord(int sheets) { super(Type.TABID); data = new byte[sheets * 2]; for (int i = 0 ; i < sheets; i++) { IntegerHelper.getTwoBytes(i+1, data, i * 2); } }
/** * Gets the binary to data to write to the output file * * @return the binary data */ public byte[] getData() { byte[] data = new byte[2]; IntegerHelper.getTwoBytes(calculationMode.value, data, 0); return data; } }
/** * Gets the data to write to the output file * * @return the binary data */ public byte[] getData() { byte[] mydata = new byte[6]; IntegerHelper.getTwoBytes(row, mydata, 0); IntegerHelper.getTwoBytes(column, mydata, 2); IntegerHelper.getTwoBytes(format.getXFIndex(), mydata, 4); return mydata; }
/** * Gets the data to write to the output file * * @return the binary data */ public byte[] getData() { byte[] mydata = new byte[6]; IntegerHelper.getTwoBytes(row, mydata, 0); IntegerHelper.getTwoBytes(column, mydata, 2); IntegerHelper.getTwoBytes(format.getXFIndex(), mydata, 4); return mydata; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[3]; data[0] = Token.INTEGER.getCode(); IntegerHelper.getTwoBytes((int) value, data, 1); return data; }
/** * Gets the token representation of this item in RPN * * @return the bytes applicable to this formula */ byte[] getBytes() { byte[] data = new byte[3]; data[0] = Token.INTEGER.getCode(); IntegerHelper.getTwoBytes((int) value, data, 1); return data; }