diff options
author | Nick Burch <nick@apache.org> | 2008-09-15 17:01:46 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2008-09-15 17:01:46 +0000 |
commit | edee0621b4307fa8eaa982bc7e88ac65c43e5f0f (patch) | |
tree | 9f3d2191c85ed0037c5b076af095440ba5d90771 /src/ooxml/java | |
parent | a9623d08af5cfc9e3374ddc68f018d177521864a (diff) | |
download | poi-edee0621b4307fa8eaa982bc7e88ac65c43e5f0f.tar.gz poi-edee0621b4307fa8eaa982bc7e88ac65c43e5f0f.zip |
Merged revisions 695264,695303,695420 via svnmerge from
https://svn.apache.org:443/repos/asf/poi/trunk
........
r695264 | josh | 2008-09-14 19:55:28 +0100 (Sun, 14 Sep 2008) | 1 line
Fix for bug 45978 - removed eager initialisation of SheetReferences
........
r695303 | nick | 2008-09-14 23:19:06 +0100 (Sun, 14 Sep 2008) | 1 line
Make a start on exposing the StyleRecord details into HSSFCellStyle, but not fully there yet
........
r695420 | nick | 2008-09-15 12:02:18 +0100 (Mon, 15 Sep 2008) | 1 line
Finish exposing the name of Named Cell Styles via HSSFCellStyle (normally held on the parent style though)
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@695549 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java')
-rw-r--r-- | src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java index b90058e543..28cee42278 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java @@ -39,7 +39,6 @@ import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.StylesSource; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Row.MissingCellPolicy; -import org.apache.poi.ss.util.SheetReferences; import org.apache.poi.util.POILogFactory; import org.apache.poi.util.POILogger; import org.apache.poi.xssf.model.CommentsTable; @@ -463,6 +462,14 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook { public int getSheetIndexFromExternSheetIndex(int externSheetNumber) { return externSheetNumber; } + /** + * Doesn't do anything special - returns the same as getSheetName() + * TODO - figure out if this is a ole2 specific thing, or + * if we need to do something proper here too! + */ + public String findSheetNameFromExternSheet(int externSheetIndex) { + return getSheetName(externSheetIndex); + } public Sheet getSheet(String name) { CTSheet[] sheets = this.workbook.getSheets().getSheetArray(); @@ -509,14 +516,6 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook { return this.workbook.getSheets().getSheetArray(sheet).getName(); } - public SheetReferences getSheetReferences() { - SheetReferences sr = new SheetReferences(); - for(int i=0; i<getNumberOfSheets(); i++) { - sr.addSheetReference(getSheetName(i), i); - } - return sr; - } - /** * Are we a normal workbook (.xlsx), or a * macro enabled workbook (.xlsm)? |