return new ChangeInfo(last, all, changeMerges);
}
private static ChangeInfo insertXSSFColumns(Worksheet sheet, int startCol, int num, int copyOrigin) {
final Book book = (Book) sheet.getWorkbook();
final RefSheet refSheet = getRefSheet(book, sheet);
final Set<Ref>[] refs = refSheet.insertColumns(startCol, num);
final List<CellRangeAddress[]> shiftedRanges = ((XSSFSheetImpl)sheet).shiftColumnsOnly(startCol, -1, num, true, false, true, false, copyOrigin);
final List<MergeChange> changeMerges = prepareChangeMerges(refSheet, shiftedRanges);
final Set<Ref> last = refs[0];
final Set<Ref> all = refs[1];
final int maxrow = book.getSpreadsheetVersion().getLastRowIndex();
final int maxcol = book.getSpreadsheetVersion().getLastColumnIndex();
shiftFormulas(all, sheet, 0, maxrow, 0, startCol, maxcol, num);
return new ChangeInfo(last, all, changeMerges);
}