Hi Peter, > The MediaProperties allow private URLs with the syntax (e.g.) > "private:resource/projectshortname/imagelist/12345". > It seems, that this does not refer to the zip-archive, because (e.g.) > "private:resource/sw/imagelist/lc20556.png" or > "private:resource/sw/imglst/lc20556.png" are no valid URLs. > Do you have an example for that?
private:resource refers to the .res files in your installation's program/resource directory. Since those are completely compile-time dependent (i.e. with the next build, the location of a given resource might have changed without notice), you cannot use them in code with a different ... build frequency. That is, you cannot use it in extensions. The good news is that the online documentation is not up-to-date: http://api.openoffice.org/source/browse/api/offapi/com/sun/star/graphic/MediaProperties.idl?rev=1.5&view=markup tells you that "private:graphicrepository/sw/imglst/lc20556.png" is what you're looking for. Again, not that there is a certain uncertainity when using those URLs, too. You might not rely on files having the same name/location in two different releases (though chances are usually pretty good). Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Database http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
