From afefc43fbd1ffeadfe0f168f1c41ba58a06e4bca Mon Sep 17 00:00:00 2001 From: "Andrew C. Oliver" Date: Wed, 17 Apr 2002 23:04:53 +0000 Subject: [PATCH] changed to match Avik's git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352433 13f79535-47bb-0310-9956-ffa450edef68 --- .../hssf/record/formula/ParenthesisPtg.java | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/java/org/apache/poi/hssf/record/formula/ParenthesisPtg.java b/src/java/org/apache/poi/hssf/record/formula/ParenthesisPtg.java index 104fd65860..5bf163b07d 100644 --- a/src/java/org/apache/poi/hssf/record/formula/ParenthesisPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/ParenthesisPtg.java @@ -53,51 +53,51 @@ * . */ -/* - * 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 */ - 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 "("; } } + -- 2.39.5