clearClipboard();
return;
}
final Rect srcRect = _clipboard.sourceRect;
Range rng = Utils.pasteSpecial(srcSheet,
srcRect,
_spreadsheet.getSelectedSheet(),
selection.getTop(),
selection.getLeft(),
selection.getBottom(),
selection.getRight(),
pasteType,
pasteOperation,
skipBlank, transpose);
if (_clipboard.type == Clipboard.Type.CUT) {
Ranges
.range(srcSheet, srcRect.getTop(), srcRect.getLeft(), srcRect.getBottom(), srcRect.getRight())
.clearContents();
clearStyleImp(srcRect, srcSheet);
_clipboard = null;//clear used clipboard
_spreadsheet.setHighlight(null);
}
if (rng != null) {
_spreadsheet.setSelection(new Rect(rng.getColumn(), rng.getRow(),
rng.getLastColumn(), rng.getLastRow()));
}
}
}