Re: [api-dev] get the currently selected shaoe from impress

2007-01-09 Thread Madhan Ponnusamy
But my ned is different...first i will insert all the shapes and then i will click any one of the shape... so can u tell me is there any interfaces for getting clicked shapes in impressi.e) to get which shape is clicked On 1/8/07, Stephan Wunderlich [EMAIL PROTECTED] wrote: in

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Madhan Ponnusamy
yes, I queryed with xshapes and used getbyindex method its working fine...now the problem is on click of the shape iam calling macro which should find which shape is clicked..for this getting the selected shape is not working correctly...so is there any other(interfaces) way to find which shape

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Stephan Wunderlich
Hi there, yes, I queryed with xshapes and used getbyindex method its working fine...now the problem is on click of the shape iam calling macro which should find which shape is clicked..for this getting the selected shape is not working correctly...so is there any other(interfaces) way to

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Madhan Ponnusamy
Hi Stephan, getSelection is working correctly...that is not the problem..i am clearly descriping the scenario here i had inserted a shape inside impress document and made interaction(Onclick) of the shape to call a macro. this macro contains the code to get the currently selected shape. So if i

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Madhan Ponnusamy
Hi Stephan, whether the getselection works when the shape is clicked during slide show..i.e) when the shape is linked to macro and working fine in normal impress document..when the slideshow is started is that possible to get current documents and shape selected. On 1/8/07, Stephan Wunderlich

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Stephan Wunderlich
whether the getselection works when the shape is clicked during slide show..i.e) when the shape is linked to macro and working fine in normal impress document..when the slideshow is started is that possible to get current documents and shape selected. in presentation view nothing is

Re: [api-dev] get the currently selected shaoe from impress

2007-01-07 Thread Madhan Ponnusamy
Thanks for your reply, i had created the code as u told...but it is showing null pointer exception..the code is public void callPlayer(XScriptContext xSc) { String name=; XComponent xComponent = xSc.getDocument(); XModel xModel = (XModel)

Re: [api-dev] get the currently selected shaoe from impress

2007-01-04 Thread Christian Lippka
Yes, get the current XController from the XModel and use the XSelectionSupplier interface on it. This either returns a single XShape reference or a sequence of XShape for multi selections. Regards, Christian Madhan Ponnusamy wrote: Hi, i had inserted many shapes inside impress document using