Impress Macro: getting a view cursor?

asked 2018-12-12 18:34:05 +0100

Brian Fraser gravatar image


For an Impress macros, is there a way to get a View Cursor when editing a text object?

In writer one can execute: ThisComponent.currentController.getViewCursor(). However, currentController in Impress does not have this method.

I can get a Text Cursor ( with:

dim oSel as Object

dim oTextCursor as Object

oSel = ThisComponent.getCurrentSelection()

oTextCursor = oSel.getText().CreateTextCursorByRange(oSel.getStart())

However; I want to know the selected text's position on the page, and hence I believe I need a View Cursor to call its getPosition() method.

Thank you for your help!

edit retag flag offensive close merge delete