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,35 @@
package jxl.write.biff;
import jxl.SheetSettings;
import jxl.biff.Type;
import jxl.biff.WritableRecordData;
class Window2Record extends WritableRecordData {
private byte[] data;
public Window2Record(SheetSettings settings) {
super(Type.WINDOW2);
int selected = settings.isSelected() ? 6 : 0;
int options = 0;
options |= 0x0;
if (settings.getShowGridLines())
options |= 0x2;
options |= 0x4;
options |= 0x0;
if (settings.getDisplayZeroValues())
options |= 0x10;
options |= 0x20;
options |= 0x80;
if (settings.getHorizontalFreeze() != 0 || settings.getVerticalFreeze() != 0) {
options |= 0x8;
selected |= 0x1;
}
this.data = new byte[] {
(byte)options, (byte)selected, 0, 0, 0, 0, 64, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0 };
}
public byte[] getData() {
return this.data;
}
}