public final class ScenarioProtectRecord extends StandardRecord
Description: I have no idea what a Scenario is or why on would want to protect it with the lamest "security" ever invented. However this record tells excel "I want to protect my scenarios" (0xAF) with lame security. It appears in conjunction with the PASSWORD and PROTECT records as well as its object protect cousin.
REFERENCE: PG 383 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
| Modifier and Type | Field and Description |
|---|---|
static short |
sid |
| Constructor and Description |
|---|
ScenarioProtectRecord() |
ScenarioProtectRecord(RecordInputStream in) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
protected int |
getDataSize() |
boolean |
getProtect()
get whether the sheet is protected or not
|
short |
getSid()
return the non static version of the id for this record.
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
void |
setProtect(boolean protect)
set whether the sheet is protected or not
|
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging)
|
getRecordSize, serializecloneViaReserialise, serializepublic static final short sid
public ScenarioProtectRecord()
public ScenarioProtectRecord(RecordInputStream in)
public void setProtect(boolean protect)
protect - whether to protect the sheet or notpublic boolean getProtect()
public java.lang.String toString()
Recordpublic void serialize(LittleEndianOutput out)
StandardRecord
The number of bytes written must equal the record size reported by
RecordBase.getRecordSize()} minus four
( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written
by their superclass).
serialize in class StandardRecordout - the output objectprotected int getDataSize()
getDataSize in class StandardRecordpublic short getSid()
RecordCopyright 2018 The Apache Software Foundation or its licensors, as applicable.