Handles reading other forms of Reference PTG

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352547 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew C. Oliver 2002-04-28 22:31:55 +00:00
parent d0c85667da
commit 7bd031a16b

View File

@ -162,6 +162,11 @@ public abstract class Ptg
byte id = data[ offset + 0 ];
Ptg retval = null;
final int valueRef = ReferencePtg.sid + 0x20; //note this only matters for READ
final int arrayRef = ReferencePtg.sid + 0x40; // excel doesn't really care which one you
// write.
switch (id)
{
@ -209,6 +214,14 @@ public abstract class Ptg
case ReferencePtg.sid :
retval = new ReferencePtg(data, offset);
break;
case valueRef :
retval = new ReferencePtg(data, offset);
break;
case arrayRef :
retval = new ReferencePtg(data, offset);
break;
case ParenthesisPtg.sid :
retval = new ParenthesisPtg(data, offset);