On 2010-03-17 12:10, Frank Schoenheit, Sun Microsystems Germany wrote:
Hi,
is there a way to deploy images in an extension, which can be loaded
without calling code in that extension? That is, ideally I would like
the extension to deploy a configuration entry containing a URL, where
the OOo can pass this URL to the graphic provider, which is able to load
the image without actually loading any code from the extension itself.
Say, something like
"private:graphic/extension/extension_name/path_to_image_file", handled
by the GraphicProvider implementation.
+1. I would love that. Currently I have to do this when opening an About
box:
<CODE>
Dim InfoProvider as Variant
InfoProvider =
GetDefaultContext().GetByName("/singletons/com.sun.star.deployment.PackageInformationProvider")
Dim BaseUrl as String
BaseUrl = InfoProvider.GetPackageLocation(PROTEAX_PACKAGE_NAME)
BaseUrl = BaseUrl & "/graphics/"
Dialog.GetControl("BiochemfusionLogoImage").Model.ImageURL = BaseUrl
& "biochemfusion-logo-for-applications.png"
</CODE>
It would be so much easier to just be able to reference that image in
the deployed .OXT via a URL that I could set when designing the dialog.
Hints/Opinions, anybody? If we don't have anything, yet, I'm probably
going to extend the GraphicProvider implementation.
I am not aware of other ways of referencing images but I am no authority
on the subject. Again, I'm all for an improved GraphicProvider
implementation that allows us to specify URLs at design time.
Cheers
-- Jan Holst Jensen
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]