On 10/29/09 14:59, Steffen Boersig wrote:
I didn't know if loadFromURL can handle E:/Test.ods as well since my converting function adds file:/// and gets rid of backslashes to get a valid file URL ( file:///E:/Test.ods ). But tested it and at least there it throws an error and does not open in read only mode or sth. like that.
I see.
An error on ALL kinds of invalid urls would be great. Would make debugging easier.
Yes, I agree. The problem, however, is probably along the lines that loadComponentFromURL is also used to load whatever the user types on the command line or in the file open dialog etc., where the "smart logic" to understand that "E:\Test.ods" is a Windows pathname while "file:///E:/Test.ods" is a URL is called for. (Not that all this could not probably be disentangled in a sane way, but just to give some context why things are the way they are...)
-Stephan --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
