Hi Ariel,
Ariel Constenla-haile wrote:
Hi Rony,
Rony G. Flatscher escribió:
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
As usual, Ariel: you are the *best*, thank you very much again (I have
been looking for hours in the docs/IDL definition without finding this)!!
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 :-)
Ahem, I only vaguely remembered that (and obviously did not save it
locally and was not able to find my own posting myself) !
:-(
The reason for looking for this is a change I need to make in a piece of
Java code and thought that the Java snippet
<http://codesnippets.services.openoffice.org/Office/Office.CreateUNOCompatibleURL.snip>
would be a little bit too cumbersome (though, if I had used it
immediately, I might have saved myself a couple of hours of research,
OTOH I would not have "stumbled" over all kind of interesting services)...
Again, thank you very much!
Regards,
---rony
P.S.: The ooRexx support has the public routines uno.convertToUrl() and
uno.convertFromUrl() but coded in ooRexx itself. Will probably use the
OOo service just to make sure that I won't forget those services so
quickly anymore...
(My only excuse for totally forgetting this is that I am totally
overworked, but then, everyone on these lists has probably the same
difficulty.)