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 <[EMAIL PROTECTED]> wrote:
Hi there,
now that is a bit inconvenient :-)
What I'd do is add a SelectionChangeListener ... when your "Shape" is
clicked and an "selectionChanged" event should be fired and you can
work with that.
In Basic something like the following should work when binding the
"OnClick" event to the method "OnClick"
global xListener
Sub OnClick
xListener = createUNOListener
("cb_","com.sun.star.view.XSelectionChangeListener")
xView = ThisComponent.currentController
xView.addSelectionChangeListener(xListener)
End Sub
sub cb_selectionChanged()
xView = ThisComponent.currentController
xSelection = xView.getSelection
REM "remove Listener"
xView.removeSelectionChangeListener(xListener)
if not isEmpty(xSelection) then
msgbox xSelection.dbg_supportedInterfaces
endif
end sub
Hope that helps
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]