acoliver    02/04/17 16:04:53

  Modified:    src/java/org/apache/poi/hssf/record/formula
                        ParenthesisPtg.java
  Log:
  changed to match Avik's
  
  Revision  Changes    Path
  1.2       +22 -22    
jakarta-poi/src/java/org/apache/poi/hssf/record/formula/ParenthesisPtg.java
  
  Index: ParenthesisPtg.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/record/formula/ParenthesisPtg.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ParenthesisPtg.java       31 Jan 2002 02:23:44 -0000      1.1
  +++ ParenthesisPtg.java       17 Apr 2002 23:04:53 -0000      1.2
  @@ -53,51 +53,51 @@
    * <http://www.apache.org/>.
    */
   
  -/*
  - * ParenthesisPtg.java
  - *
  - * Created on November 21, 2001, 6:42 PM
  - */
   package org.apache.poi.hssf.record.formula;
   
   /**
  - * Denotes that the previous operation (if just after an operation) or operand
  - * (if just after an operand) should appear in parenthesis.  For display purposes 
only.
  + * Dummy class, we want it only for for the parsing process
  + * does not actually get into the file  -- note by andy...there is a parenthesis PTG
  + * that can be written and is sometimes!
    *
  - * @author  andy
  + * Avik Sengupta <[EMAIL PROTECTED]>
    */
  -
   public class ParenthesisPtg
       extends Ptg
  +    implements OperationPtg
   {
  -    private final static int SIZE = 1;
  -    public final static byte sid  = 0x15;
  +   
   
  -    /** Creates new ParenthesisPtg */
  +   
   
  -    public ParenthesisPtg()
  +    public void writeBytes(byte [] array, int offset)
       {
  +        //do nothing
       }
   
  -    /** Creates new ParenthesisPtg */
  -
  -    public ParenthesisPtg(byte [] data, int offset)
  +    public int getSize()
       {
  -
  -        // doesn't read anything
  +        return 0;
       }
   
  -    public void writeBytes(byte [] array, int offset)
  +    public int getType()
       {
  +        return TYPE_BINARY;
       }
   
  -    public int getSize()
  +    public int getNumberOfOperands()
       {
  -        return SIZE;
  +        return 0;
       }
   
       public String toFormulaString()
       {
  -        return "()";   // bug...should be an operation?  have a new "Cosmetic and 
unnecessary" interface?
  +        return "(";
  +    }
  +
  +    public String toFormulaString(Ptg [] operands)
  +    {
  +        return "(";
       }
   }
  +
  
  
  


Reply via email to