How to create a macro to insert callout at cursor? [closed]

asked 2013-09-17 17:58:52 +0200

Peter.OU gravatar image

I want to click on a writer document at any point, click on macro and have a callout inserted with the pointer at that cursor and the body of the callout to the left.

I can do this with a text frame getting the cursor coordinates

oViewCursor = ThisComponent.CurrentController.getViewCursor()

v = oViewCursor.getPosition()

dXCursor = v.X

dYCursor = v.Y

then I can style and insert a text frame at the cursor.

However although I can create and style a callout with a macro, I cannot get it to appear at the cursor position, or manipulate the callout pointer.

[ I can do this without any problems in Microsoft Word ]

Any help appreciated.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-10-04 22:49:06.445883