Mathias Röllig wrote:

> Hi everybody!
> 
> I want to do the following in a basic macro:
> 
> oDoc = StarDesktop.loadComponentFromURL( myDoc, "_blank", 0, props() )
> '***(1)*** waiting for document load
> oForm = oDoc.DrawPage.Forms.getByName( "myForm" )
> oControl = oForm.getByName( "myControl" )
> '***(2)*** waiting for form load
> oControl.setString( "myString" )
> 
> At (1) the macro must wait till the document is loaded if it isn't so.
> Otherwise i get a exception.
> 
> At (2) the macro must wait till the form is fully loaded. Otherwise the
> "myString" is deleted because the control default.
> 
> So my questions:
> (1) How can i test that the document ist loaded and the form is available?

As long as the document isn't an HTML document the loading process is
complete already when loadComponentFromURL returns.

> (2) How can i test that the form is fully loaded?
No idea, sorry. What does that mean?

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to