Hi Rony, Rony G. Flatscher escribió: > Hi there, > > could anyone point me to the UNO service that one is supposed to use to > convert a fully qualified file to the UNO URI, which could be used from > Java and/or C++?
com.sun.star.ucb.FileContentProvider implements com.sun.star.ucb.XFileIdentifierConverter see the example in http://api.openoffice.org/servlets/ReadMsg?list=dev&msgNo=19331 where I named the two Java methods convertToURL and convertFromURL ... and you could have answered yourself ;-) http://api.openoffice.org/servlets/ReadMsg?list=dev&msgNo=19335 and teach yourself the ooRexx version :-) IIRC in pyUno there are also two helper functions wrapping this. > [I seem to vaguely remember that such a service existed, but after > researching for quite some time, nothing showed up that would have the > counterpart methods for e.g. Basic's convertToURL() or convertFromURL()...] quoting me from http://api.openoffice.org/servlets/ReadMsg?list=dev&msgNo=19336 in *Basic* we already have convertToURL and convertFromURL, so there is no need to use extra code (createUnoService("com.sun.star.ucb.FileContentProvider") ...). If I used right the LXR Cross Referencer, everything is related and all ends up in sal (/sal/inc/osl/file.hxx): OOo Basic functions: RTLFUNC(ConvertToUrl) in /basic/source/runtime/methods1.cxx 1.36 1478-1496 RTLFUNC(ConvertFromUrl) in /basic/source/runtime/methods1.cxx 1.36 1498-1514 FileContentProvider implementation in ucb/source/ucp/file/prov.hxx, ucb/source/ucp/file/prov.cxx 1.47 721-740 Regards Ariel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
