|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
OOoDraw questionHi *
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? 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) ? thanks Paolo M --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
Re: OOoDraw questionHi 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? > 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: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
| Free embeddable forum powered by Nabble | Forum Help |