Re: [dev] Re: Can OOo objects be used in-process?

2008-05-20 Thread Mathias Bauer
rick cameron wrote:

> Hi, Ariel
> 
> Thanks again for the examples. I'll try them once I get the basics in place.
> 
> Can you tell me whether it's possible for a C++ client app to create OOo 
> objects (such as a spreadsheet) in the same process as the calling code?

That isn't possible ATM, but you can do it the other way around: create
your own code as an OOo extension that is loaded by OOo on startup.

Just out of curiosity: why do you want to do it in-process? Do you have
some performance critical calls with a high call frequency?

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Re: Can OOo objects be used in-process?

2008-05-13 Thread Matthias B.
On Sat, May 10, 2008 at 7:34 AM, rick cameron <[EMAIL PROTECTED]> wrote:
> Hi, Ariel
>
>  Thanks again for the examples. I'll try them once I get the basics in place.
>
>  Can you tell me whether it's possible for a C++ client app to create OOo
>  objects (such as a spreadsheet) in the same process as the calling code?

It seems that what you want is a LIBRARY that allows you to work with
OpenDocument files, that you could link into your program or load
dynamically. OOo does not provide such a library (using OOo's own
libraries is only a theoretical option), so the answer to your
question is: No. The only supported way of interfacing with OpenOffice
is to have an extra OOo process and to communicate with it via the UNO
interface.

Matthias

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Re: Can OOo objects be used in-process?

2008-05-09 Thread Ariel Constenla-Haile

Hi Rick,

rick cameron escribió:

Hi, Ariel

Thanks again for the examples. I'll try them once I get the basics in place.

Can you tell me whether it's possible for a C++ client app to create OOo 
objects (such as a spreadsheet) in the same process as the calling code?


that's what the snipet does: first bootstraps the office (connects to a
running office or, if not already running, it creates a new process),
then gets the service manager from the component context and start
instantiating objects.

"creating a spreadsheet" means loading a spreadsheet document, an
existing or a new one.

I send you some examples (they all are in a "pre-alpha" state) that can
be compiled with the SDK environment, they need to be cleaned but at
least they run.

Regards
Ariel.




--
Ariel Constenla-Haile
La Plata, Argentina

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.ArielConstenlaHaile.com.ar/ooo/



"Aus der Kriegsschule des Lebens
- Was mich nicht umbringt,
macht mich härter."
Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Re: Can OOo objects be used in-process?

2008-05-09 Thread rick cameron
Hi, Ariel

Thanks again for the examples. I'll try them once I get the basics in place.

Can you tell me whether it's possible for a C++ client app to create OOo 
objects (such as a spreadsheet) in the same process as the calling code?

Ciao

- rick 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]