Scroll in Calc via API

How can I scroll in Calc without moving the selection via the API? (C++)

I tried dispatching .uno:GoLeft etc. but that only moves the selected cell.


LibreOffice Basic example:



So SetFirstVisibleColumn seems to be part of the XViewPane interface - but that’s as far as I get. How can I resolve it, starting at the component (which was loaded via XComponentLoader->loadComponentFromURL)?

Okay, got it. I can get it directly from the XController (from XModel->getcurrentController, from resolving the XModel from the XComponent)