Implement modifying the current selection programmatically via the ViewProvider object in both C++ and Python. This enables unit testing of GUI tasks that require a selection, and improves scriptability of Spreadsheet.