package jxl.write.biff;

import jxl.biff.IntegerHelper;
import jxl.biff.Type;
import jxl.biff.WritableRecordData;

class RefreshAllRecord extends WritableRecordData {
  private boolean refreshall;
  
  private byte[] data;
  
  public RefreshAllRecord(boolean refresh) {
    super(Type.REFRESHALL);
    this.refreshall = refresh;
    this.data = new byte[2];
    if (this.refreshall)
      IntegerHelper.getTwoBytes(1, this.data, 0); 
  }
  
  public byte[] getData() {
    return this.data;
  }
}
