first commit

This commit is contained in:
2025-07-28 13:56:49 +05:30
commit e9eb805edb
3438 changed files with 520990 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
package jxl.biff.drawing;
import common.Logger;
import jxl.biff.IntegerHelper;
import jxl.biff.Type;
import jxl.biff.WritableRecordData;
import jxl.read.biff.Record;
public class TextObjectRecord extends WritableRecordData {
private static Logger logger = Logger.getLogger(TextObjectRecord.class);
private byte[] data;
private int textLength;
TextObjectRecord(String t) {
super(Type.TXO);
this.textLength = t.length();
}
public TextObjectRecord(Record t) {
super(t);
this.data = getRecord().getData();
this.textLength = IntegerHelper.getInt(this.data[10], this.data[11]);
}
public TextObjectRecord(byte[] d) {
super(Type.TXO);
this.data = d;
}
public byte[] getData() {
if (this.data != null)
return this.data;
this.data = new byte[18];
int options = 0;
options |= 0x2;
options |= 0x10;
options |= 0x200;
IntegerHelper.getTwoBytes(options, this.data, 0);
IntegerHelper.getTwoBytes(this.textLength, this.data, 10);
IntegerHelper.getTwoBytes(16, this.data, 12);
return this.data;
}
}