Hi all,
this is my first post so I want to congratulate for the project and the
efforts given to it.
I'm writing a merge script for impress slide, based on some Basic code
found on various forums.
It works but I find difficulties in handling the prompt asking to adapt
the slides to the presentation where they are merged.
I want to macro-click "Yes"
I try handling it by an event from TopWindow but I can't get useful
debug information (using MRI loops triggering window open and log to
file is not useful either) so I'm stuck.
Can someone kindly suggest me a way to handle the "click Yes" or
references to docs?
Thanks in advance.
Best Regards,
Luca
ps: some code follow
Sub doMerge()
'...
oList = createUnoListener("TopW_",
"com.sun.star.awt.XTopWindowListener")
oToolkit =
srcDoc.getCurrentController().getFrame().getContainerWindow().getToolkit()
oToolkit.addTopWindowListener(oList)
'...
End Sub
Sub TopW_windowOpened(e as Object)
On Error Goto ErrorHandler
oACWin = e.source.AccessibleContext
'mriLog(oACWin) '# this loop, I think
'wLog( oACWin.getAccessibleChild(0) )
oAC_Yes = oACWin.getAccessibleChild(0).AccessibleContext
oAC_No = oAC.getAccessibleChild(1).AccessibleContext
oAC_Yes.doAccessibleAction(0)
ErrorHandler:
Exit Sub
'On Error GoTo 0
End Sub
--
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted