Apache OpenOffice (AOO) Bugzilla – Issue 80374
Add possibility to cancel a loadComponentFromURL() request
Last modified: 2013-07-30 02:37:48 UTC
It would be nice to be able to cancel an XComponentLoader.loadComponentFromURL() request, in the same way that e.g. XFrameLoader has a cancel() method for its load() one. Related discussion on the api-dev mailing list http://www.mail-archive.com/dev@api.openoffice.org/msg05901.html
My area .-)
Only the asynchronous frame loader has this method and as loadComponentFromURL is a synchronous call it shouldn't use asynchronous frame loaders at all. IMHO asynchronous frame loaders should become deprecated. Anyway, it doesn't make sense to have a "cancel" in a synchronous method (as it can't be canceled anymore when it returns).
closing
The business case for this Feature Request is clear - if you read the related mailing list discussion that originated it. Some documents may take a long time to load, and in some scenarios it would be better to interrupt the loading operation and just return a message to the user saying "Sorry, your document could not be loaded", rather than making him wait for several minutes. If the current implementation of loadComponentFromURL cannot be interrupted because it's synchronous, then provide an asynchronous one that can be interrupted. In any case, I don't think that this request can be considered INVALID, different people have agreed that it would be a useful feature and 2 persons (not me) have voted for it. For this reason I am reopening it.
as->mnasato: This task needs a lot or rework we cant do currently. So I set the target to OOoLater now. If you find some developers on OOo which can do that job I will support you. Regards Andreas
Reset assignee on issues not touched by assignee in more than 1000 days.