|
Hi, I setup a procedure in StarBasic and assinged this to the Open Document event for OpenOffice.org via Tools>Configure. Something like this: sub onOpenDocumentMain dim CurrentDB as variant CurrentDB = starDesktop.CurrentComponent Xray.Xray CurrentDB ' if isNULL( thisComponent ) then ' odb file ' CurrentDB = starDesktop.CurrentComponent ' Xray.Xray CurrentDB ' else ' other file type ' print thisComponent.CurrentController.Frame.Title ' endif end sub Now here is my problem. When I started, as you can see, I thought, "well just catch when thisComponent isNULL" . Of course as soon as there is some other document type open this fails because thisComponent is set. Not too mention that knowing this doesn't really help me, as I need to know whcich Base file is being opened. So, then I went to the idea of using the StarDesktop as a way to catch this..but this is not working either. If I open an ODB file or other type, the procedure is called with these behaivors:
So, my question is this. Is there a way I can catch the event of an ODB document being opened. It does not have to be using Basic, I can work in Java if is requires some technique that StarBasic cannot handle. If I simply overlooked the answer in the Developers Guide I aplolgize, but I can't seem to find any real help with this there. Thanks for any help you can offer. Andrew 'Drew' Jensen |
- [api-dev] Is there any way to catch when a Base document... Andrew Jensen
- Re: [api-dev] Is there any way to catch when a Base... Matthias Benkmann
- Re: [api-dev] Is there any way to catch when a ... Andrew Jensen
- Re: [api-dev] Is there any way to catch whe... Andrew Jensen
- Re: [api-dev] Is there any way to catch whe... Jörg Schmidt
- Re: [api-dev] Is there any way to catch... Andrew Jensen
- Re: [api-dev] Is there any way to catch whe... Matthias Benkmann
- Re: [api-dev] Is there any way to catch... Andrew Jensen
