Hi Ian, Sorry for the late reply. I only now noticed your question.
Ian Laurenson wrote:
I have two macros that it would be useful to assign to the application events: Open Document and Create Document. While it is possible to do this via "Customize > Events" a lot of end users have difficulty in setting this up so I would like to be able to automate this process for them. Is it possible to modify: .openoffice.org2/user/registry/data/org/openoffice/Office/Events.xcu by the .xcu file in a uno package? If so some pointers would be useful.
Yes. The various xcu files for one component (here "org.openoffice.Office.Events") are merged at runtime. Packages can provide xcu files containing such settings. These are merged by the package manager into one file that is used at runtime.
For the Events components, you can add an xcu file containing a number of event bindings to your package. These bindings should then become effective - possibly after restarting the application. You can create such an xcu file by editing event bindings in OOo and then coyping (possibly editing) the resulting user/registry/data/.../Events.xcu file. The name of the file you add to your package does not matter - the component is identified by attributes inside the file.
If a user (or a document) already has an event binding for one of the events that binding takes precedence (to me it looks like the event configuration only allows one binding for each event). If multiple packages have a binding for the same event, it is unspecified which one prevails.
For more documentation check the documents listed at http://util.openoffice.org.
HTH, Joerg
OpenOffice.org Conference (OOoCon 2005) September 28th - 30th 2005, Koper-Capodistria, Slovenia http://marketing.openoffice.org/ooocon2005/index.html
Will you be there? -- Joerg Barfurth Sun Microsystems - Desktop - Hamburg >>>>>>>>>>>>>>>>>> using std::disclaimer <<<<<<<<<<<<<<<<<<<<<<< Software Engineer [EMAIL PROTECTED] OpenOffice.org Configuration http://util.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
