Hello Mirko,

Hi Andreas,

Andreas Schlüns wrote:
I was wondering if there is any way to tell OOo to stop loading a
document - i.e. XComponentLoader.loadComponentFromURL() - after starting
the operation?
You are right - it would be nice to have such feature in OOo ...
but currently OOo does not have such feature .-)

There are already interface supporting canceling of load requests.
css.frame.XFrameLoader and css.document.XFilter.
So it seams that only XComponentLoader needs some new functionality.


Interesting. Maybe there is a way to obtain a frame from the Desktop and
then use XFrameLoader to load the document instead of using
XComponentLoader then?

Of course it is ...

But then you will duplicate the whole code behind loadComponentFromURL().

And thats not so easy. You have to create the frame and the window,
you have to deal with typedetection, you have to make sure that some resources (e.g. progress/interaction handler) will be created right, you have to set some additional properties automaticly (macro execution mode etcpp) ....

At least we are talking about nearly 2000 lines of code / it's not a joke .. current implementation of loadComponentFromURL() uses ~2000 lines of C++ code .-)

The only way I can think of is to terminate the OOo process. Anybody has
a better idea?
[...]
Solution b) Kill the office hardly. Then you will trigger the mechanism
behind AutoRecovery and CrashSave. Also not an option to be used realy.


What if OOo is started with -norestore and -nocrashreport?

Data lost .-)
Its your decision.


Thanks

Mirko


Regards
Andreas

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

Reply via email to