I try to build an OXT named Dandy which intercepts OnLoad event in Writer.
It must run a macro OpenMeFirst in Main module.
This is my job.xcu
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data oor:name="Jobs"
oor:package="org.openoffice.Office"
xmlns:oor="http://openoffice.org/2001/registry" >
<node oor:name="Jobs">
<node oor:name="InterceptJob" oor:op="replace">
<prop oor:name="Service">
<value>org.openoffice.extensions.dandy</value>
</prop>
</node>
</node>
<node oor:name="Events">
<node oor:name="OnLoad" oor:op="replace">
<node oor:name="JobList">
<node oor:name="InterceptJob" oor:op="replace"/>
</node>
</node>
</node>
</oor:component-data>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<manifest:manifest>
<manifest:file-entry manifest:full-path="Dandy/" manifest:media-type="application/vnd.sun.star.basic-library"/>
<manifest:file-entry manifest:full-path="job.xcu" manifest:media-type="application/vnd.sun.star.configuration-data"/>
</manifest:manifest>
Any idea welcome