Issue 85438 - %origin% alternative to reference the real pkg root
Summary: %origin% alternative to reference the real pkg root
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: kai.sommerfeld
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-21 13:47 UTC by jsc
Modified: 2013-02-24 21:06 UTC (History)
1 user (show)

See Also:
Issue Type: FEATURE
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jsc 2008-01-21 13:47:48 UTC
%origin% is used in xcu files to reference other resources in a package. Most
often xcu files are stored flat in an extension package and in this case it
works as expected. It doesn't work if the configuration package structure is
reflected in the package itself. In this case %origin% gets expanded to the
directory of the xcu file and resources are expected relative to this directory. 
The behaviour is exactly described in the DevGuide but probably not really the
behaviour that was intended. 

("Use a variable %origin% as a placeholder for the exact path where the file
will be copied by the Extension Manager. When unopkg installs the data, it
replaces the path with an URL containing a macro and writes into the
configuration. This URL has to be expanded before it is a valid file URL. This
can be done using the <idl>com.sun.star.util.MacroExpander</idl> service. The
%origin% variable is, for instance, used by the ImageIdentifier property of
add-on menus and toolbar items, which is described in the Configuration section.")

Three ways to solve this problem
- %origin% will be changed to reference the real package root. This can break
existing extensions
- new %pkgorigin% or %pkgroot% variable that gets expanded to the real package root
- adapt the options dialog implementation to handle relative URLs in the
OptionsDialog.xcu. This solution would help for options pages only and is so far
not recommended
Comment 1 kai.sommerfeld 2008-01-21 14:58:43 UTC
.
Comment 2 kai.sommerfeld 2008-02-01 15:39:20 UTC
Sorry, no time to implement this until 3.0 feature freeze. => 3.x for now
Comment 3 kai.sommerfeld 2010-08-24 08:37:10 UTC
jsc: Is this still an issue?
Comment 4 kai.sommerfeld 2010-08-24 14:16:44 UTC
jsc. As discussed in person this is no longer an issue. The "Extension-UCP"
solves this problem. Closing....
Comment 5 kai.sommerfeld 2010-08-24 14:17:09 UTC
.