| View previous topic :: View next topic |
| Author |
Message |
freefly010 General User

Joined: 13 Feb 2009 Posts: 6
|
Posted: Mon Feb 16, 2009 7:20 am Post subject: cppumaker problem |
|
|
Hi all,
I have generated the header files from the types.rdb and services.rdb using
cppumaker -BUCR -O <path to save the headerfiles> <path+types.rdb> < path+services.rdb>
( looks to me that there are only two registry files included in the SDK... types.rdb and services.rdb )
but I it is not generating all the type header files.. for example XComponentLoader.hpp
do anyone know why ? how can generate headers from a single idl file from the idl folder in the SDK |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
freefly010 General User

Joined: 13 Feb 2009 Posts: 6
|
Posted: Mon Feb 16, 2009 8:54 am Post subject: |
|
|
yes I have used the same script that was in the link...
I have modified the script because there is no off*.rdb present with the 3.0 SDK
so when the script is run it returns with error.
So I changed the script to use the services.rdb in the URE/misc folder
so everything works fine.. but the types in
com.sun.star.frame namespace are not fully available..
that means, there are no XComponentLoader and some other header files
why can't they just put the headers with the SDK
any particular reason for that.. ? |
|
| Back to top |
|
 |
Alain Rist General User

Joined: 07 Oct 2008 Posts: 18
|
Posted: Tue Feb 17, 2009 2:12 am Post subject: |
|
|
| freefly010 wrote: | the types in
com.sun.star.frame namespace are not fully available..
that means, there are no XComponentLoader and some other header files |
With OOo 3 you must generate from types.rdb and offapi.rdb.
If you work in Windows(tm) you can use the OOoCpp.js script attached to my article:
Integrate the OpenOffice.org power in a WTL (or other native Win32) application.
@admins: The file is Open Source licensed, so you may make it available here
cheers,
AR |
|
| Back to top |
|
 |
freefly010 General User

Joined: 13 Feb 2009 Posts: 6
|
Posted: Tue Feb 17, 2009 2:54 am Post subject: |
|
|
I were using your script from the beginning... and thanks for putting up a script ... I really appreciate your efforts.
it is just that I wasn't waiting enough for the cppumaker to return.. ( you know it showed me the path updated to the propertysheet dialog ) and I just close the console window thinking it is finished. It is a little misleading though...
thanks |
|
| Back to top |
|
 |
Alain Rist General User

Joined: 07 Oct 2008 Posts: 18
|
Posted: Tue Feb 17, 2009 3:12 am Post subject: |
|
|
| freefly010 wrote: | I were using your script from the beginning... and thanks for putting up a script ... I really appreciate your efforts.
...
It is a little misleading though...
thanks |
Thanks for your thanks , I will think of a better UI for this script
My article is in CodeProject Best C++/MFC article of January 2009 contest. If it helped you, vote it up here
cheers,
AR |
|
| Back to top |
|
 |
freefly010 General User

Joined: 13 Feb 2009 Posts: 6
|
Posted: Tue Feb 17, 2009 3:29 am Post subject: |
|
|
for your time and efforts I have voted for you in codeproject..
 |
|
| Back to top |
|
 |
|