OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

cppumaker problem

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
freefly010
General User
General User


Joined: 13 Feb 2009
Posts: 6

PostPosted: Mon Feb 16, 2009 7:20 am    Post subject: cppumaker problem Reply with quote

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
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Mon Feb 16, 2009 8:31 am    Post subject: Reply with quote

Have a look at http://www.oooforum.org/forum/viewtopic.phtml?t=79911&highlight= for a start.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
freefly010
General User
General User


Joined: 13 Feb 2009
Posts: 6

PostPosted: Mon Feb 16, 2009 8:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Alain Rist
General User
General User


Joined: 07 Oct 2008
Posts: 18

PostPosted: Tue Feb 17, 2009 2:12 am    Post subject: Reply with quote

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 Smile

cheers,
AR
Back to top
View user's profile Send private message
freefly010
General User
General User


Joined: 13 Feb 2009
Posts: 6

PostPosted: Tue Feb 17, 2009 2:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Alain Rist
General User
General User


Joined: 07 Oct 2008
Posts: 18

PostPosted: Tue Feb 17, 2009 3:12 am    Post subject: Reply with quote

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 Very Happy , I will think of a better UI for this script Smile

My article is in CodeProject Best C++/MFC article of January 2009 contest. If it helped you, vote it up here Smile
cheers,
AR
Back to top
View user's profile Send private message
freefly010
General User
General User


Joined: 13 Feb 2009
Posts: 6

PostPosted: Tue Feb 17, 2009 3:29 am    Post subject: Reply with quote

for your time and efforts I have voted for you in codeproject..
Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group