added method format2DRefAsString() to interface ExternSheetReferenceToken to help with refactoring 3D ref code

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@881698 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Josh Micich 2009-11-18 08:39:17 +00:00
parent 909c13b8b1
commit 96c5649208
3 changed files with 12 additions and 4 deletions

View File

@ -89,7 +89,9 @@ public final class Area3DPtg extends AreaPtgBase<Area3DPtg> implements WorkbookD
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.

View File

@ -80,7 +80,9 @@ public final class Ref3DPtg extends RefPtgBase<Ref3DPtg> implements WorkbookDepe
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.

View File

@ -19,11 +19,15 @@ package org.apache.poi.ss.formula;
/**
* 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();
}