/** * Constructor used when copying from an external workbook */ public SupbookRecord(CSharpJExcel.Jxl.Read.Biff.SupbookRecord sr, WorkbookSettings ws) : base(Type.SUPBOOK) { workbookSettings = ws; if (sr.getType() == SupbookRecord.INTERNAL) { type = INTERNAL; numSheets = sr.getNumberOfSheets(); } else if (sr.getType() == SupbookRecord.EXTERNAL) { type = EXTERNAL; numSheets = sr.getNumberOfSheets(); fileName = sr.getFileName(); sheetNames = new string[numSheets]; for (int i = 0; i < numSheets; i++) { sheetNames[i] = sr.getSheetName(i); } } if (sr.getType() == SupbookRecord.ADDIN) { //logger.warn("Supbook type is addin"); } }
/** * Initializes an internal supbook record * * @param sr the read supbook record to copy from */ private void initInternal(CSharpJExcel.Jxl.Read.Biff.SupbookRecord sr) { numSheets = sr.getNumberOfSheets(); initInternal(); }