Re: Wizard Integration

2013-05-20 Thread Jorge Luis Roque Alvarez
hi,

still having problems with wizard integration, now i notice that after a make 
dev-install there is no code of my wizard in install/program/wizards/

best regards
jorge luis

- Mensaje original -
De: Stephan Bergmann sberg...@redhat.com
Para: Jorge Luis Roque Alvarez jlalva...@uci.cu
CC: libreoffice@lists.freedesktop.org
Enviados: Miércoles, 8 de Mayo 2013 4:32:46
Asunto: Re: Wizard Integration

On 05/02/2013 05:49 PM, Jorge Luis Roque Alvarez wrote:
 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

In your new wizards/Jar_calendar.mk (or whatever you called it), do you 
have a gb_Jar_set_componentfile line (similar to the one in 
wizards/Jar_web.mk)?  That should cause the generation of the 
presumably-missing-above 
/mnt/Work/LOGIT/core/solver/unxlngi6.pro/xml/component/wizards/com/sun/star/wizards/calendar/calendar.component
 
from your new calendar.component file.

Stephan

 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.

http://www.uci.cu
http://www.uci.cu
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Wizard Integration

2013-05-10 Thread Stephan Bergmann

On 05/08/2013 04:19 PM, Jorge Luis Roque Alvarez wrote:

Sorry, iam new on git, what command should i run on the core directory to 
generate the patch.
The attachment patch was generate with the below command

git git-patch -1

is it correct?


No, that produces a patch of something completely unrelated to your changes.

If you have just some local changes to some existing files that you did 
not yet git add, the simplest way to produce a patch is just git 
diff.  However, if you also add new files, you need to git add them 
so that git knows about them when generating diff output, at which point 
you will want to git add /all/ your changes, so that git diff 
--cached shows all of them.  In short: you really need to learn more 
about git.


Stephan
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Wizard Integration

2013-05-08 Thread Stephan Bergmann

On 05/02/2013 05:49 PM, Jorge Luis Roque Alvarez wrote:

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


In your new wizards/Jar_calendar.mk (or whatever you called it), do you 
have a gb_Jar_set_componentfile line (similar to the one in 
wizards/Jar_web.mk)?  That should cause the generation of the 
presumably-missing-above 
/mnt/Work/LOGIT/core/solver/unxlngi6.pro/xml/component/wizards/com/sun/star/wizards/calendar/calendar.component 
from your new calendar.component file.


Stephan


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.


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Wizard Integration

2013-05-08 Thread Jorge Luis Roque Alvarez
Stephan,

first thanks for the replay, i already notice that, and inlude my 
Jar_calendar.mk and check it in Repository.mk after that my LO build ok. I 
already has the point of entrance in Writer(wizards/Calendar...) but when i 
click on it, it does nothing.. so it seems that my CallWizard class its not 
declared somewhere. What should i do to declare it?

best regards
jorge luis

- Mensaje original -
De: Stephan Bergmann sberg...@redhat.com
Para: Jorge Luis Roque Alvarez jlalva...@uci.cu
CC: libreoffice@lists.freedesktop.org
Enviados: Miércoles, 8 de Mayo 2013 4:32:46
Asunto: Re: Wizard Integration

On 05/02/2013 05:49 PM, Jorge Luis Roque Alvarez wrote:
 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

In your new wizards/Jar_calendar.mk (or whatever you called it), do you 
have a gb_Jar_set_componentfile line (similar to the one in 
wizards/Jar_web.mk)?  That should cause the generation of the 
presumably-missing-above 
/mnt/Work/LOGIT/core/solver/unxlngi6.pro/xml/component/wizards/com/sun/star/wizards/calendar/calendar.component
 
from your new calendar.component file.

Stephan

 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.

http://www.uci.cu
http://www.uci.cu
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Wizard Integration

2013-05-08 Thread Stephan Bergmann

On 05/08/2013 02:29 PM, Jorge Luis Roque Alvarez wrote:

first thanks for the replay, i already notice that, and inlude my 
Jar_calendar.mk and check it in Repository.mk after that my LO build ok. I 
already has the point of entrance in Writer(wizards/Calendar...) but when i 
click on it, it does nothing.. so it seems that my CallWizard class its not 
declared somewhere. What should i do to declare it?


Please make available your code, so we don't need to guess what's going 
wrong.


Stephan
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Wizard Integration

2013-05-08 Thread Stephan Bergmann

On 05/08/2013 03:48 PM, Jorge Luis Roque Alvarez wrote:

Here it goes ...


Sorry, that's not in a usable form.  From your previous mails, I 
understand that you add your calendar wizard code to the LO sources, and 
try to build it as part of LO.  So please provide your code as a git patch.


Stephan
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Wizard Integration

2013-05-08 Thread Jorge Luis Roque Alvarez
Sorry, iam new on git, what command should i run on the core directory to 
generate the patch.
The attachment patch was generate with the below command

git git-patch -1

is it correct?

best regards
jorge luis

- Mensaje original -
De: Stephan Bergmann sberg...@redhat.com
Para: Jorge Luis Roque Alvarez jlalva...@uci.cu
CC: libreoffice@lists.freedesktop.org
Enviados: Miércoles, 8 de Mayo 2013 9:57:10
Asunto: Re: Wizard Integration

On 05/08/2013 03:48 PM, Jorge Luis Roque Alvarez wrote:
 Here it goes ...

Sorry, that's not in a usable form.  From your previous mails, I
understand that you add your calendar wizard code to the LO sources, and
try to build it as part of LO.  So please provide your code as a git patch.

Stephan
http://www.uci.cu

http://www.uci.cu

From 7885f9820d5d1ca80381bf88ea2be537874e5ad5 Mon Sep 17 00:00:00 2001
From: Thorsten Behrens tbehr...@suse.com
Date: Wed, 3 Apr 2013 13:36:47 +0200
Subject: [PATCH] Make 10.6 sdk in XCode 4 setup work in configury.

Change-Id: Ia7393d177a24ec6d5e3c25e487a8d5ae96e3c02a
---
 configure.ac |   14 +-
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index f096cb3..cc24bf0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2558,11 +2558,15 @@ if test $_os = Darwin; then
 CXX=${gccprefix}g++-4.0 $arch -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH
 ;;
 10.6)
-# Is similar logic as above needed? Is it likely somebody
-# has both an older Xcode with the 10.6 SDK and a current
-# Xcode?
-CC=gcc-4.2 $bitness -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH
-CXX=g++-4.2 $bitness -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH
+# did someone copy her 10.6 sdk into xcode 4 (needed on Mountain Lion)?
+if test $(echo $MACOSX_SDK_PATH | cut -c1-23) = /Applications/Xcode.app; then
+CC=`xcrun -find gcc` $bitness -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH
+CXX=`xcrun -find g++` $bitness -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH
+XCRUN=xcrun
+else
+CC=gcc-4.2 $bitness -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH
+CXX=g++-4.2 $bitness -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH
+fi
 ;;
 10.7|10.8)
 CC=`xcrun -find clang` $bitness -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH
-- 
1.7.10.4

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Wizard Integration

2013-05-02 Thread Jorge Luis Roque Alvarez
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.ku...@gmail.com
Para: Jorge Luis Roque Alvarez jlalva...@uci.cu
CC: libreoffice@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 jlalva...@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
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Wizard Integration

2013-05-01 Thread Matúš Kukan
Hi,

On 30 April 2013 17:16, Jorge Luis Roque Alvarez jlalva...@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
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice