Bernard Marcelly wrote:
Message de Fernand Vanrie  date 2008-01-07 12:26 :
Hei,

I need the "current selection" made by the UI but after I worked on the object I wont to UNselect the slection made by the UI

so in basic:

object = thiscomponent.getcurrentselection

i do somthing with the object

and now I hav to unselect the object ????


It depends on the document. In Writer, Calc, AFAIK there is always a selection : in Writer it is a collapsed cursor, in Calc it is the current cell. In Draw it is a Null.
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



when the



______
Bernard

---------------------------------------------------------------------
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]

Reply via email to