Hello Jorge Marques,

> Hi, all! I am struggling to deploy a BASIC library including a dialog which, 
> in
> turn, should have ImageURLs (buttons and stuff) referencing files inside the
> same package. I understand this is just one instance of a bigger problem,
> namely handling resources not directly manipulated by OOo.
> 
> The problem is that, when I pkgchk a new package, it is inflated into
> ..\OpenOffice.org1.1.4\user\uno_packages\cache\uno_packages with a filename I
> cannot predict (the original name plus some number). Therefore, although
> loading the library and stuff works fine, I cannot correctly set my ImageURLs,
> for example.
> 
> Any ideas? Thanks in advance. Cheers,

Have you tried to place relative file urls?
Nevertheless, if that don't work:
The "number" you have mentioned is the encoded time stamp of the package
to distinguish it from other versions.  So you are right, you generally
should and cannot predict your cache path.  It is implementation detail
of pkgchk, too.
The only supported way I see is to get your actual (inflated cache)
directory by placing a configuration data "%origin%" item which will be
replaced by pkgchk to a macrofied url ("vnd.sun.star.expand:...").  This
url can be demacrofied.  All this would require that you can
programmatically set your ImageURL.
This sounds complicated, of course it is, there is space for improvement.

but I HTH,
-Daniel

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

Reply via email to