((ExtraCtrl) getExtraCtrl()).deleteMergeCell(sheet, orng.getLeftCol(),
orng.getTopRow(), orng.getRightCol(), orng.getBottomRow());
}
private void onSizeChange(SSDataEvent event) {
//TODO shall pass the range over to the client side and let client side do it; rather than iterate each column and send multiple command
final Ref rng = event.getRef();
final Worksheet sheet = getSheet(rng);
if (!getSelectedSheet().equals(sheet))
return;
if (rng.isWholeColumn()) {
final int left = rng.getLeftCol();
final int right = rng.getRightCol();
for (int c = left; c <= right; ++c) {
updateColWidth(sheet, c);
}
final Rect rect = ((SpreadsheetCtrl) getExtraCtrl()).getVisibleRect();
syncFriendFocusesPosition(left, rect.getTop(), rect.getRight(), rect.getBottom());
} else if (rng.isWholeRow()) {
final int top = rng.getTopRow();
final int bottom = rng.getBottomRow();
for (int r = top; r <= bottom; ++r) {
updateRowHeight(sheet, r);
}
final Rect rect = ((SpreadsheetCtrl) getExtraCtrl()).getVisibleRect();
syncFriendFocusesPosition(rect.getLeft(), top, rect.getRight(), rect.getBottom());