Ask Your Question

Scroll in Calc via API [closed]

asked 2015-05-27 09:35:15 +0100

urbanhusky gravatar image

updated 2020-10-12 16:27:18 +0100

Alex Kemp gravatar image

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.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-08-21 19:35:14.024966

1 Answer

Sort by » oldest newest most voted

answered 2015-05-27 10:58:22 +0100

pierre-yves samyn gravatar image

updated 2015-05-27 10:59:32 +0100


LibreOffice Basic example:



edit flag offensive delete link more


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)?

urbanhusky gravatar imageurbanhusky ( 2015-05-27 13:16:09 +0100 )edit

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

urbanhusky gravatar imageurbanhusky ( 2015-05-27 13:45:53 +0100 )edit

Question Tools

1 follower


Asked: 2015-05-27 09:35:15 +0100

Seen: 101 times

Last updated: May 27 '15