-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

>> >> Both URLs are wrong, local file URLs start with three slashes. OOo1
>> >> accepted the wrong ULRs but this was a bug that prevented other things
>> >> to work correctly and so it needed to be fixed.

I had a look at my java code, and noticed, that

file.toURL().toExternalForm();

returns a "file:/E:/"... url, so i think for oo i should be converted
to the new format, for example:

            try {
                com.sun.star.util.URL[] url = new com.sun.star.util.URL[1];
                url[0] = new com.sun.star.util.URL();
                // java net url ... (e.g. from file.toURL().toExternalForm();)
                url[0].Complete = "file:/E:/Data/home/file.sxw";

                System.out.println("before: " + url[0].Complete);

                Object obj = xComponentContext.getServiceManager()
                        .createInstanceWithContext(
                                "com.sun.star.util.URLTransformer",
                                xComponentContext);

                XURLTransformer transform = (XURLTransformer) UnoRuntime
                        .queryInterface(XURLTransformer.class, obj);

                transform.parseStrict(url);
                System.out.println("after: " + url[0].Complete);

            } catch (Exception e1) {
                e1.printStackTrace();
            }

is this correct ?

regards

Oliver

- --
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDwqxeTiyrQM/QSkURAnWmAJ0WpEPzwMBqQFzjYeZjl/clIRnOPgCfQ2eh
8kddp/VpcjFfDCiKUTuz3WQ=
=FiL0
-----END PGP SIGNATURE-----

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

Reply via email to