Hi Jorge,
get your ooo-installationpath (folder) from PathSubstitution service, like so:
<code>
pathsub = createUnoService("com.sun.star.util.PathSubstitution")
oodir = pathsub.getSubstituteVariableValue("$(inst)")
</code>
Once you have the installation path it shouldn't be hard to get to
your desired folders (just use string manipulations).
2005/7/18, Jorge Marques Pelizzoni <[EMAIL PROTECTED]>:
>
> Hi, all! I wonder if there is a way to set property ImageURL (e.g. of
> CommandButtons) to some kind of "relative" URL at _design time_ (i.e. not
> resorting to com.sun.star.util.PathSettings at runtime). I what I need is (in
> decreasing order of importance):
>
> 1 - an application dialog to retrieve images from its "installation" folder
> (inside <OpenOffice.org>/user/basic or <OpenOffice.org>/share/basic);
>
> 2 - a document dialog to retrieve images from the directory where its document
> is located.
>
> Unfortuantely, I am bound to version 1.1.4 and no higher. Thanks in advance.
> Cheers,
>
> Jorge.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Best Regards
Christian Junker
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]