mirror of https://github.com/apache/poi.git
compile under jdk1.2.2
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352677 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8f3e68ccff
commit
753c2d7c6d
|
@ -68,7 +68,7 @@ import org.apache.poi.hssf.util.RangeAddress;
|
||||||
|
|
||||||
public class Area3DPtg extends Ptg
|
public class Area3DPtg extends Ptg
|
||||||
{
|
{
|
||||||
public final static short sid = 0x3b;
|
public final static byte sid = 0x3b;
|
||||||
private final static int SIZE = 11; // 10 + 1 for Ptg
|
private final static int SIZE = 11; // 10 + 1 for Ptg
|
||||||
private short field_1_index_extern_sheet;
|
private short field_1_index_extern_sheet;
|
||||||
private short field_2_first_row;
|
private short field_2_first_row;
|
||||||
|
|
|
@ -75,7 +75,7 @@ import java.util.List;
|
||||||
public class AttrPtg
|
public class AttrPtg
|
||||||
extends OperationPtg
|
extends OperationPtg
|
||||||
{
|
{
|
||||||
public final static short sid = 0x19;
|
public final static byte sid = 0x19;
|
||||||
private final static int SIZE = 4;
|
private final static int SIZE = 4;
|
||||||
private byte field_1_options;
|
private byte field_1_options;
|
||||||
private short field_2_data;
|
private short field_2_data;
|
||||||
|
|
|
@ -3,7 +3,7 @@ import org.apache.poi.util.LittleEndian;
|
||||||
|
|
||||||
public class FuncPtg extends AbstractFunctionPtg{
|
public class FuncPtg extends AbstractFunctionPtg{
|
||||||
|
|
||||||
public final static short sid = 0x21;
|
public final static byte sid = 0x21;
|
||||||
private int numParams=0;
|
private int numParams=0;
|
||||||
/**Creates new function pointer from a byte array
|
/**Creates new function pointer from a byte array
|
||||||
* usually called while reading an excel file.
|
* usually called while reading an excel file.
|
||||||
|
@ -20,7 +20,7 @@ public class FuncPtg extends AbstractFunctionPtg{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void writeBytes(byte[] array, int offset) {
|
public void writeBytes(byte[] array, int offset) {
|
||||||
array[offset+0]=(byte) (sid + ptgClass);
|
array[offset+0]= (byte) (sid + ptgClass);
|
||||||
//array[offset+1]=field_1_num_args;
|
//array[offset+1]=field_1_num_args;
|
||||||
LittleEndian.putShort(array,offset+1,field_2_fnc_index);
|
LittleEndian.putShort(array,offset+1,field_2_fnc_index);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ package org.apache.poi.hssf.record.formula;
|
||||||
import org.apache.poi.util.LittleEndian;
|
import org.apache.poi.util.LittleEndian;
|
||||||
public class FuncVarPtg extends AbstractFunctionPtg{
|
public class FuncVarPtg extends AbstractFunctionPtg{
|
||||||
|
|
||||||
public final static short sid = 0x22;
|
public final static byte sid = 0x22;
|
||||||
|
|
||||||
/**Creates new function pointer from a byte array
|
/**Creates new function pointer from a byte array
|
||||||
* usually called while reading an excel file.
|
* usually called while reading an excel file.
|
||||||
|
|
|
@ -68,7 +68,7 @@ import org.apache.poi.hssf.util.RangeAddress;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Ref3DPtg extends Ptg {
|
public class Ref3DPtg extends Ptg {
|
||||||
public final static short sid = 0x3a;
|
public final static byte sid = 0x3a;
|
||||||
private final static int SIZE = 7; // 6 + 1 for Ptg
|
private final static int SIZE = 7; // 6 + 1 for Ptg
|
||||||
private short field_1_index_extern_sheet;
|
private short field_1_index_extern_sheet;
|
||||||
private short field_2_row;
|
private short field_2_row;
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class TestSCLRecord
|
||||||
extends TestCase
|
extends TestCase
|
||||||
{
|
{
|
||||||
byte[] data = new byte[] {
|
byte[] data = new byte[] {
|
||||||
(short)0x3,(short)0x0,(short)0x4,(short)0x0
|
(byte)0x3,(byte)0x0,(byte)0x4,(byte)0x0
|
||||||
};
|
};
|
||||||
|
|
||||||
public TestSCLRecord(String name)
|
public TestSCLRecord(String name)
|
||||||
|
|
Loading…
Reference in New Issue