Hi Paolo,

Paolo Mantovani wrote:
Hi *

I need to perform some selection in Draw
Inspecting the result of ThisComponent.getCurrentSelection() I saw that
getCurrentSelection() method results always a
css.drawing.ShapeCollection, regardless you selected one or many shapes

Unfortunately this service is not registered at draw document level but
it is registered at level of the context ServiceManager

So my questions:
1) It is safe to pass a "foreing" service as argument for the select()
method of the document controller?
If you mean a foreign implementation of XShapes then yes this is safe.

2) I saw that if I want to perform a single selection I can directly
pass the shape to select (instead of a collection containing the shape)
Will this change in future or can I safely use that way (instead of
using always the shape collection) ?
Yes it is unlikely that support for this will vanish. It is either
the other way, as soon as we add more functionality to the API
selection implementation in Draw and Impress you might also get
a single XShape from getSelection().

Regards,
Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to