settings change

This commit is contained in:
2025-07-28 16:44:54 +05:30
parent 01f63f6a57
commit f50ca8716c
3442 changed files with 1 additions and 2035 deletions

View File

@@ -0,0 +1,48 @@
package jxl.biff.drawing;
import common.Logger;
import jxl.biff.IntegerHelper;
class Sp extends EscherAtom {
private static Logger logger = Logger.getLogger(Sp.class);
private byte[] data;
private int shapeType;
private int shapeId;
private int persistenceFlags;
public Sp(EscherRecordData erd) {
super(erd);
this.shapeType = getInstance();
byte[] bytes = getBytes();
this.shapeId = IntegerHelper.getInt(bytes[0], bytes[1], bytes[2], bytes[3]);
this.persistenceFlags = IntegerHelper.getInt(bytes[4], bytes[5], bytes[6], bytes[7]);
}
public Sp(ShapeType st, int sid, int p) {
super(EscherRecordType.SP);
setVersion(2);
this.shapeType = st.value;
this.shapeId = sid;
this.persistenceFlags = p;
setInstance(this.shapeType);
}
int getShapeId() {
return this.shapeId;
}
int getShapeType() {
return this.shapeType;
}
byte[] getData() {
this.data = new byte[8];
IntegerHelper.getFourBytes(this.shapeId, this.data, 0);
IntegerHelper.getFourBytes(this.persistenceFlags, this.data, 4);
return setHeaderData(this.data);
}
}