Description: Indicated that the sheet/workbook is write protected. REFERENCE: PG 425 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
Constructs a WriteAccess record and sets its fields appropriately.paramid id must be 0x5c or an exception will be throw upon validationparamsize the size of the data area of the recordparamdata data of the record (should not contain sid/len) super(in);
super(in);
return 4;
return sid;
LittleEndian.putShort(data, 0 + offset, sid); LittleEndian.putShort(data, 2 + offset, (short)0); return getRecordSize();
StringBuffer buffer = new StringBuffer(); buffer.append("[WRITEPROTECT]\n"); buffer.append("[/WRITEPROTECT]\n"); return buffer.toString();
if (id != sid) { throw new RecordFormatException("NOT A WRITEPROTECT RECORD"); }