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:
parent
909c13b8b1
commit
96c5649208
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -26,4 +26,8 @@ package org.apache.poi.ss.formula;
|
||||
*/
|
||||
public interface ExternSheetReferenceToken {
|
||||
int getExternSheetIndex();
|
||||
/**
|
||||
* @return formula text for this reference token without the qualifying sheet name
|
||||
*/
|
||||
String format2DRefAsString();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user