#55906 Extern Sheet References can have a last as well as a first sheet
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613302 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
899ff0569b
commit
1fc5397a59
@ -231,6 +231,17 @@ public class ExternSheetRecord extends StandardRecord {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the last sheet that the reference applies to, or
|
||||
* -1 if the referenced sheet can't be found, or -2 if the
|
||||
* reference is workbook scoped.
|
||||
* For a single sheet reference, the first and last should be
|
||||
* the same.
|
||||
*/
|
||||
public int getLastSheetIndexFromRefIndex(int extRefIndex) {
|
||||
return getRef(extRefIndex).getLastSheetIndex();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a zero-based reference to a {@link org.apache.poi.hssf.record.SupBookRecord}.
|
||||
* <p>
|
||||
* If the type of the SupBook record is same-sheet referencing, Add-In referencing,
|
||||
|
Loading…
Reference in New Issue
Block a user