Ask Your Question
0

Scroll in Calc via API

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

urbanhusky 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 close merge delete

1 Answer

Sort by » oldest newest most voted
0

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

pierre-yves samyn gravatar image

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

Hi

LibreOffice Basic example:

thiscomponent.currentController.setFirstVisibleColumn(23)
thiscomponent.currentController.setFirstVisibleRow(23)

Regards

edit flag offensive delete link more

Comments

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 +0200 )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 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 58 times

Last updated: May 27 '15