/** * Gets the length of the data portion of this record * Used to adjust when reading sheets which contain just a chart * @return the length of the data portion of this record */ int getLength() { return getRecord().getLength(); }
/** * Package protected function which gets the real internal sheet index * based upon the external sheet reference. This is used for extern sheet * references which are specified in formulas * * @param index the external sheet reference * @return the actual sheet index */ public int getExternalSheetIndex(int index) { // For biff7, the whole external reference thing works differently // Hopefully for our purposes sheet references will all be local if (workbookBof.isBiff7()) { return index; } Assert.verify(externSheet != null); int firstTab = externSheet.getFirstTabIndex(index); return firstTab; }
BOFRecord bof = new BOFRecord(excelFile.next()); workbookBof = bof; bofs++; if (!bof.isBiff8() && !bof.isBiff7()) if (!bof.isWorkbookGlobals()) if (bof.isBiff8()) if (bof.isBiff8()) if (bof.isBiff8()) if (bof.isBiff8()) if (bof.isBiff8()) if (bof.isBiff8()) WriteAccessRecord war = new WriteAccessRecord(r, bof.isBiff8(), settings); settings.setWriteAccess(war.getWriteAccess()); bof = new BOFRecord(r); if (!bof.isBiff8() && !bof.isBiff7()) if (bof.isWorksheet())
if (workbookBof.isBiff8()) if (workbookBof.isBiff8()) if (workbookBof.isBiff8()) Assert.verify(!workbookBof.isBiff8()); lr = new RStringRecord(r, formattingRecords, sheet, workbookSettings, if (workbookBof.isBiff8()) if (workbookBof.isBiff8()) if (workbookBof.isBiff8()) if (workbookBof.isBiff8()) BOFRecord br = new BOFRecord(r); Assert.verify(!br.isWorksheet()); if (br.isChart()) if (!workbook.getWorkbookBof().isBiff8()) if (sheetBof.isChart())
/** * Gets the raw bytes for the formula. This will include the * parsed tokens array * * @return the raw record data */ public byte[] getFormulaData() throws FormulaException { if (!getSheet().getWorkbookBof().isBiff8()) { throw new FormulaException(FormulaException.BIFF8_SUPPORTED); } // Lop off the standard information byte[] d = new byte[data.length - 6]; System.arraycopy(data, 6, d, 0, data.length - 6); return d; }
if (!sheetBof.isWorksheet())
BOFRecord bof = new BOFRecord(excelFile.next()); workbookBof = bof; bofs++; if (!bof.isBiff8() && !bof.isBiff7()) if (!bof.isWorkbookGlobals()) if (bof.isBiff8()) if (bof.isBiff8()) if (bof.isBiff8()) if (bof.isBiff8()) if (bof.isBiff8()) if (bof.isBiff8()) WriteAccessRecord war = new WriteAccessRecord(r, bof.isBiff8(), settings); settings.setWriteAccess(war.getWriteAccess()); bof = new BOFRecord(r); if (!bof.isBiff8() && !bof.isBiff7()) if (bof.isWorksheet())
if (workbookBof.isBiff8()) if (workbookBof.isBiff8()) if (workbookBof.isBiff8()) Assert.verify(!workbookBof.isBiff8()); lr = new RStringRecord(r, formattingRecords, sheet, workbookSettings, if (workbookBof.isBiff8()) if (workbookBof.isBiff8()) if (workbookBof.isBiff8()) if (workbookBof.isBiff8()) BOFRecord br = new BOFRecord(r); Assert.verify(!br.isWorksheet()); if (br.isChart()) if (!workbook.getWorkbookBof().isBiff8()) if (sheetBof.isChart())
/** * Gets the raw bytes for the formula. This will include the * parsed tokens array * * @return the raw record data */ public byte[] getFormulaData() throws FormulaException { if (!getSheet().getWorkbookBof().isBiff8()) { throw new FormulaException(FormulaException.BIFF8_SUPPORTED); } // Lop off the standard information byte[] d = new byte[data.length - 6]; System.arraycopy(data, 6, d, 0, data.length - 6); return d; }
if (!sheetBof.isWorksheet())
/** * Gets the raw bytes for the formula. This will include the * parsed tokens array. Used when copying spreadsheets * * @return the raw record data */ public byte[] getFormulaData() throws FormulaException { if (!getSheet().getWorkbookBof().isBiff8()) { throw new FormulaException(FormulaException.BIFF8_SUPPORTED); } // Lop off the standard information byte[] d = new byte[data.length - 6]; System.arraycopy(data, 6, d, 0, data.length - 6); return d; }
/** * Package protected function which gets the real internal sheet index * based upon the external sheet reference. This is used for extern sheet * references which are specified in formulas * * @param index the external sheet reference * @return the actual sheet index */ public int getExternalSheetIndex(int index) { // For biff7, the whole external reference thing works differently // Hopefully for our purposes sheet references will all be local if (workbookBof.isBiff7()) { return index; } Assert.verify(externSheet != null); int firstTab = externSheet.getFirstTabIndex(index); return firstTab; }
/** * Gets the length of the data portion of this record * Used to adjust when reading sheets which contain just a chart * @return the length of the data portion of this record */ int getLength() { return getRecord().getLength(); }
/** * Gets the raw bytes for the formula. This will include the * parsed tokens array * * @return the raw record data */ public byte[] getFormulaData() throws FormulaException { if (!getSheet().getWorkbookBof().isBiff8()) { throw new FormulaException(FormulaException.BIFF8_SUPPORTED); } // Lop off the standard information byte[] d = new byte[data.length - 6]; System.arraycopy(data, 6, d, 0, data.length - 6); return d; }