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

C++ program. XComponentLoader.hpp not found

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


Joined: 11 Dec 2008
Posts: 5

PostPosted: Thu Dec 11, 2008 11:40 pm    Post subject: C++ program. XComponentLoader.hpp not found Reply with quote

Hello all

I am trying to handle OpenOffice from an external C++ program but after googling for days I did not find documentation enough basic for me.
Could you send me links or references to books were I could find basic instructions to:
- Install SDK for C++
- Program a program for something as simple as opening a new file in Calc, fill some cells and save the file.

Best regards
Koldo


Last edited by Koldo on Tue Dec 16, 2008 11:38 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
Koldo
General User
General User


Joined: 11 Dec 2008
Posts: 5

PostPosted: Tue Dec 16, 2008 1:57 am    Post subject: XComponentLoader.hpp not found Reply with quote

Hello all

After many efforts I am trying to compile a demo but the compiler does not find include file: 'com/sun/star/frame/XComponentLoader.hpp'.

I have seen that cppumaker does not do that folder and file.

Is there a way to get that file?. Perhaps changing in any way the file types.rdb?.

Best regards
Koldo
Back to top
View user's profile Send private message Send e-mail
itskumaranand
Newbie
Newbie


Joined: 02 Feb 2011
Posts: 3

PostPosted: Wed Feb 02, 2011 2:30 am    Post subject: DocumentLoader.Hpp is created with the following command. Reply with quote

DocumentLoader.Hpp is created with the following command.

cppumaker -Gc -BUCR -O<includes_path> <ooffice_path>\URE\misc\types.rdb <ooffice_path>\Basis\program\offapi.rdb

i think you used

cppumaker -BUCR -O <oo_sdk_path>\includecpp <office_programm_dir>\types.rdb
Back to top
View user's profile Send private message Send e-mail
Koldo
General User
General User


Joined: 11 Dec 2008
Posts: 5

PostPosted: Thu Feb 03, 2011 12:01 am    Post subject: Re: DocumentLoader.Hpp is created with the following command Reply with quote

itskumaranand wrote:
DocumentLoader.Hpp is created with the following command.

cppumaker -Gc -BUCR -O<includes_path> <ooffice_path>\URE\misc\types.rdb <ooffice_path>\Basis\program\offapi.rdb

i think you used

cppumaker -BUCR -O <oo_sdk_path>\includecpp <office_programm_dir>\types.rdb


Hello itskumaranand

Thank you for your answer.

I will try it, although I did this post 2 years ago.

Do you know where is there a simple description about handling OpenOffice from C or C++?
Back to top
View user's profile Send private message Send e-mail
itskumaranand
Newbie
Newbie


Joined: 02 Feb 2011
Posts: 3

PostPosted: Thu Feb 03, 2011 6:04 am    Post subject: DocumentLoader.Hpp is created with the following command. Reply with quote

I followed the steps in the link below. could compile the sample app.
http://wiki.services.openoffice.org/wiki/SDKInstallation#Installation_under_Windows
Back to top
View user's profile Send private message Send e-mail
Koldo
General User
General User


Joined: 11 Dec 2008
Posts: 5

PostPosted: Thu Feb 03, 2011 11:33 pm    Post subject: Re: DocumentLoader.Hpp is created with the following command Reply with quote

itskumaranand wrote:
I followed the steps in the link below. could compile the sample app.
http://wiki.services.openoffice.org/wiki/SDKInstallation#Installation_under_Windows


Thank you again. I will try it!
Back to top
View user's profile Send private message Send e-mail
SergeM
Super User
Super User


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

PostPosted: Sat Feb 05, 2011 9:28 am    Post subject: Reply with quote

I have spent five years to document such things. I know my English is very bad and I finaly stop my work around OpenOffice for six months now.
See my signature below.
_________________
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
Koldo
General User
General User


Joined: 11 Dec 2008
Posts: 5

PostPosted: Mon Feb 07, 2011 12:57 am    Post subject: Reply with quote

SergeM wrote:
I have spent five years to document such things. I know my English is very bad and I finaly stop my work around OpenOffice for six months now.
See my signature below.

Hello Serge

You have done a great job! Smile

However after reviewing it, I think it is a huge job for me to do a library to interface OpenOffice through UNO.

I tried it unsuccessfully two years ago, so, as a last solution, I did it only for Windows using OLE Automation. It works for MinGW and Visual C++ and the same interface is used for OpenOffice and Microsoft Office. License is BSD. You can see the doc here:

- Initial page: http://www.ultimatepp.org/srcdoc$OfficeAutomation$OfficeAutomation$en-us.html
- OfficeDoc: http://www.ultimatepp.org/src$OfficeAutomation$OfficeDoc$en-us.html
- OfficeSheet: http://www.ultimatepp.org/src$OfficeAutomation$OfficeSheet$en-us.html

Perhaps I will try it if I get a lot of free time next summer Very Happy

Best regards
Koldo
Back to top
View user's profile Send private message Send e-mail
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