poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r881698 - in /poi/trunk/src/java/org/apache/poi: hssf/record/formula/Area3DPtg.java hssf/record/formula/Ref3DPtg.java ss/formula/ExternSheetReferenceToken.java
Date Wed, 18 Nov 2009 08:39:17 GMT
Author: josh
Date: Wed Nov 18 08:39:17 2009
New Revision: 881698

URL: http://svn.apache.org/viewvc?rev=881698&view=rev
Log:
added method format2DRefAsString() to interface ExternSheetReferenceToken to help with refactoring
3D ref code

Modified:
    poi/trunk/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java
    poi/trunk/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java
    poi/trunk/src/java/org/apache/poi/ss/formula/ExternSheetReferenceToken.java

Modified: poi/trunk/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java?rev=881698&r1=881697&r2=881698&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java Wed Nov 18 08:39:17
2009
@@ -89,7 +89,9 @@
 	public void setExternSheetIndex(int index) {
 		field_1_index_extern_sheet = index;
 	}
-
+	public String format2DRefAsString() {
+		return formatReferenceAsString();
+	}
 	/**
 	 * @return text representation of this area reference that can be used in text
 	 *  formulas. The sheet name will get properly delimited if required.

Modified: poi/trunk/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java?rev=881698&r1=881697&r2=881698&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java Wed Nov 18 08:39:17
2009
@@ -80,7 +80,9 @@
     public void setExternSheetIndex(int index) {
         field_1_index_extern_sheet = index;
     }
-
+    public String format2DRefAsString() {
+        return formatReferenceAsString();
+    }
     /**
      * @return text representation of this cell reference that can be used in text
      * formulas. The sheet name will get properly delimited if required.

Modified: poi/trunk/src/java/org/apache/poi/ss/formula/ExternSheetReferenceToken.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/formula/ExternSheetReferenceToken.java?rev=881698&r1=881697&r2=881698&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/formula/ExternSheetReferenceToken.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/formula/ExternSheetReferenceToken.java Wed Nov 18
08:39:17 2009
@@ -19,11 +19,15 @@
 
 /**
  * Should be implemented by any {@link org.apache.poi.hssf.record.formula.Ptg} subclass that
needs has an extern sheet index <br/>
- * 
+ *
  * For POI internal use only
- * 
+ *
  * @author Josh Micich
  */
 public interface ExternSheetReferenceToken {
 	int getExternSheetIndex();
+	/**
+	 * @return formula text for this reference token without the qualifying sheet name
+	 */
+	String format2DRefAsString();
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message