Wizard Integration
Jorge Luis Roque Alvarez
jlalvarez at uci.cu
Thu May 2 08:49:16 PDT 2013
Sorry, to bother you again, once i run "make dev-install" i get this
cannot process /mnt/Work/LOGIT/core/solver/unxlngi6.pro/xml/component/wizards/com/sun/star/wizards/calendar/calendar.component
make[1]: *** [/mnt/Work/LOGIT/core/workdir/unxlngi6.pro/Rdb/services.rdb] Error 10
make[1]: *** Se borra el archivo «/mnt/Work/LOGIT/core/workdir/unxlngi6.pro/Rdb/services.rdb»
make[1]: *** Se espera a que terminen otras tareas....
make: *** [build] Error 2
Here is a description of the steps i follow before running make dev-install
1- Edit the file officecfg/registry/data/org/openoffice/Office/Common.xcu, here i include my code within the Wizard space:
<node oor:name="m15" oor:op="replace" install:module="writer">
<prop oor:name="URL" oor:type="xs:string">
<value >service:com.sun.star.wizards.calendar.CallWizard?insert</value>
</prop>
<prop oor:name="Title">
<value xml:lang="en-US">~Calendar...</value>
</prop>
<prop oor:name="TargetName" oor:type="xs:string">
<value >_self</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value >private:image/3216</value>
</prop>
</node>
2- Then on wizards/com/sun/star/wizards/ put the source of my wizard wich is call calendar and rewrite the my component calendar.component:
<component loader="com.sun.star.loader.Java2"
xmlns="http://openoffice.org/2010/uno-components">
<implementation
name="com.sun.star.wizards.calendar.CallWizard$WizardImplementation">
<service name="com.sun.star.wizards.calendar.CallWizard"/>
</implementation>
</component>
3- Include it in postprocess/Rdb_services.mk, right below this line "wizards/com/sun/star/wizards/web/web \" i put mine "wizards/com/sun/star/wizards/calendar/calendar \"
4- In wizards/com/sun/star/wizards/calendar/CallWizard.java i call my wizard.
betst regards
jorge luis
----- Mensaje original -----
De: "Matúš Kukan" <matus.kukan at gmail.com>
Para: "Jorge Luis Roque Alvarez" <jlalvarez at uci.cu>
CC: libreoffice at lists.freedesktop.org
Enviados: Miércoles, 1 de Mayo 2013 8:59:24
Asunto: Re: Wizard Integration
Hi,
On 30 April 2013 17:16, Jorge Luis Roque Alvarez <jlalvarez at uci.cu> wrote:
> Iam new in LO Development, i wrote an small wizard in java .... i notice that the defaults wizards are been migrated to python but i still want to include it in my local LO since it will of great help for me.
If it could be useful for others too, I think you can include it in
Libreoffice if you want, even if it's written in java.
> Can anyone give some advised or a quick tutorial of the steps i should follow to include my wizard in my currently installed LO or in my local LO source(clone from here http://anongit.freedesktop.org/git/libreoffice/core.git) to be build later.
Hm, how do you run the wizard currently?
I am not an expert at all, but probably you want to add something into
officecfg/registry/data/org/openoffice/Office/Common.xcu
Check <node oor:name="Wizard">
Then create component file similar to
wizards/com/sun/star/wizards/web/web.component
add it to postprocess/Rdb_services.mk
and implement class similar to
wizards/com/sun/star/wizards/web/CallWizard.java I think?
Does this help ?
Or maybe someone else could step in.
Best,
Matus
http://www.uci.cu
http://www.uci.cu
More information about the LibreOffice
mailing list