To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=85438
                 Issue #|85438
                 Summary|%origin% alternative to reference the real pkg root
               Component|api
                 Version|680m141
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|FEATURE
                Priority|P3
            Subcomponent|code
             Assigned to|kso
             Reported by|jsc





------- Additional comments from [EMAIL PROTECTED] Mon Jan 21 13:47:48 +0000 
2008 -------
%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

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to