Marc Santhoff wrote:
Am Dienstag, den 08.01.2008, 13:44 +0100 schrieb Fernand Vanrie:
its in a writer doc where a "picture" is selected and i want to protect
this picture from user alternation by placing a simple macro on it who
says "do not move" and exits .
But after exiting the sub the picture is still selected and can now
been altered by the user ...
So in my macro i must unselect the picture before exiting the sub
As a workaround you could get the ViewCursor
no i had not the viewcursor but the combination of
oGraphic1 = thiscomponent.getcurrentselection
oViewCursor = thiscomponent.getCurrentController().getViewCursor()
make OO crash !!
so not realy a workaround :-)
do you see other ways ??
Fernand
(I think you have it
already, if your code does selection) and use one of it's moving methods
back and forth, like
VC.goNextWord()
VC.goPrevious()
or whatever fits your needs (e.g. SentenceCursor-IF).
HTH,
Marc
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]