final Worksheet dstSheet = BookHelper.getSheet(_sheet, dstRefSheet);
final Ref pasteRef = new AreaRefImpl(dstT, dstL, dstB, dstR, dstRefSheet);
return new RangeImpl(pasteRef, dstSheet).isAnyCellProtected() ? null : pasteRef;
}
private Ref copyRefs(boolean sameRow, SortedMap<Integer, Ref> srcRefs, int srcColCount, int srcRowCount, int colRepeat, int rowRepeat, Ref dstRef, int pasteType, int pasteOp, boolean skipBlanks, boolean transpose, ChangeInfo info) {
final Ref pasteRef = getPasteRef(srcRowCount, srcColCount, rowRepeat, colRepeat, dstRef, transpose);
if (pasteRef == null) {
return null;
}
if (pasteType == Range.PASTE_COLUMN_WIDTHS) {
final Integer lastKey = srcRefs.lastKey();
final Ref srcRef = srcRefs.get(lastKey);
final int srclCol = srcRef.getLeftCol();
final Worksheet srcSheet = BookHelper.getSheet(_sheet, srcRef.getOwnerSheet());
final int widthRepeatCount = srcRef.getColumnCount();
copyColumnWidths(srcSheet, widthRepeatCount, srclCol, pasteRef);
return pasteRef;
}
final RefSheet dstSheet = dstRef.getOwnerSheet();