Re: [api-dev] small problem with starbasic in OOo 1.1.x

2005-02-28 Thread Christian Andersson
Thank you Christian And Peter, I will look into this now that you have shown me a sollution, and actually I do have an dialog already opened (what my system does is that it saves the document locally first, then takes the file on the disc and transfer it to a remote location using soap with

Re: [api-dev] small problem with starbasic in OOo 1.1.x

2005-02-27 Thread Peter Eberlein
Christian Junker schrieb: Hi Peter, - dialog pops up and receiving focus event is fired, the assigned function is called That's it, thank you (shame on me). All the other things were clear. Peter - To unsubscribe, e-mail: [EMAIL

Re: [api-dev] small problem with starbasic in OOo 1.1.x

2005-02-25 Thread Christian Junker
Hi Peter, should have tested this (again it shows that you should always test something before you give advice). I thought again about your problem and if your script does not run all the time but only sometimes I would propose the following to you: Either you create a dialog, or which is little

Re: [api-dev] small problem with starbasic in OOo 1.1.x

2005-02-25 Thread Peter Eberlein
Christian Junker schrieb: and I forgot: Once the macro has finsihed you call endExecute() on the dialog and it should return to the document again. Christian, when the dialog is executed and shown on the screen, the macro stops (sleeps) at this point until the user triggers any event (pushs a

Re: [api-dev] small problem with starbasic in OOo 1.1.x

2005-02-25 Thread Christian Junker
Hi Peter, please read on! What can be done is to assign the macro to the receiving focus event, this event gets fired when the macro is started, so it is fired right at the beginning. Build the dialog in the Basic IDE, do define the property enabled as Yes. Thus code structure should look like

[api-dev] small problem with starbasic in OOo 1.1.x

2005-02-24 Thread Christian Andersson
Hi there, I have a small problem with Starbasic in OOo that I wonder if there is any sollution to, or perheps a workaround for, I'm not sure this is a bug at all... anyway, I have a small starbasic script that will save the document locally and after that do some small updates to the document

Re: [api-dev] small problem with starbasic in OOo 1.1.x

2005-02-24 Thread Laurent Godard
Hi christian, Is there some way that I can (in script or config) tell OOo to not close the document before the script has finished i see 2 ways : - declaring a listener on the document closing event. Don't sure it suites totally your nee - lock OOo until your script has finished

Re: [api-dev] small problem with starbasic in OOo 1.1.x

2005-02-24 Thread Christian Junker
I can only agree with Laurent, the second way by locking the controllers would be the best option, I think. That way you can be very sure that your macro gets executed from beginning to end without any disturbance. Best Regards Christian Junker Laurent Godard wrote: Hi christian, Is there some

Re: [api-dev] small problem with starbasic in OOo 1.1.x

2005-02-24 Thread Peter Eberlein
Hi Laurent, hi Christian, Laurent Godard schrieb: Hi, I can only agree with Laurent, the second way by locking the controllers would be the best option, I think. That way you can be very sure that your macro gets executed from beginning to end without any disturbance. for me this does not work