Hi Daniel,

On 02/23/09 20:31, Daniel Brosseau wrote:
Hi,

I insert a Table of Contents into an Xmodel, ContentIndex service
represented by XDocumentIndex interface.
Then I call XDocumentIndex.update(). Is the update absolutely synchronous?
Is there a listener I can use to
make sure the update is finished?

I also call XRefreshable.refresh(). Is refresh synchronous or do I have to
use a XRefeshListener?

I later call XStorable.storeToUrl. Is storeToUrl also synchronous?

The call itself is definitely synchronous. It uses other components during the storing, for example filters. They must be synchronous as well.

Is there
a store listener I can use?

Yes, please implement com.sun.star.document.XEventListener interface in your listener. The model implements com.sun.star.document.XEventBroadcaster interface that allows to register the listener.

The events you are interested for are
"OnCopyTo" - is sent on start of storeToURL() action
"OnCopyToDone" - is sent when the action is successfuly ended
"OnCopyToFailed" - is sent when the action has failed

But since the call is synchronous, a simple storing implementation would not need the listener. Of course I do not know how complex your implementation is.

Best regards,
Mikhail.


Thank you very much,

Daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to