UNO API

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

UNO API

k.misha
Hi!

 

Could someone give me some examples for working with UNO API in Visual
Studio C++!

p.s.: And some documentation if you have.

 

Thanks!

Reply | Threaded
Open this post in threaded view
|

Re: UNO API

Andreas Säger
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 02.04.2013 11:45, k.misha wrote:

> Hi!
>
>
>
> Could someone give me some examples for working with UNO API in
> Visual Studio C++!
>
> p.s.: And some documentation if you have.
>
>
>
> Thanks!
>
>

> http://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJRWqsbAAoJEGTlfXWiA5oedlsH/jyuEl8tJAgKZul1MHV9fiF2
cYS/Rf4/+s1v9FT7DkVZvlKhnucxVjGp0Y/1KIya7jX0YHVD5pKd4skglcBws5P/
3kmrbLcmEY+i+wAT9uTzqe+ix0hUrA8ZzFT4BYHmhTCizaQsD7Chrf9BPg/sIzN+
uSCtu0Tsufi3tKrgQbMKi2mjucCYAPzfqmAGm+VngA62uz8E8nkCdBGqzD+1rpiW
J+JxbRI2MSne4nnSmHWiSm9G0jOuy0+UDU0c/HJQGns4K/1CpJz7siGlWOpSY9Kd
H7NMZJ117KTdr8bt2yL0k8pLWXaXZhoUrLkVqeZaEnBytZuGbobk7OMWsiuYojU=
=AhyI
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: UNO API

k.misha
http://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide<неи<неиThis page is empty!<неи<неи-----Original Message-----<неиFrom: Andreas Säger [mailto:[hidden email]] <неиSent: Tuesday, April 02, 2013 12:56 PM<неиTo: [hidden email]<неиSubject: Re: UNO API<неи<неи-----BEGIN PGP SIGNED MESSAGE-----<неиHash: SHA1<неи<неиAm 02.04.2013 11:45, k.misha wrote:<неи> Hi!<неи> <неи> <неи> <неи> Could someone give me some examples for working with UNO API in<неи> Visual Studio C++!<неи> <неи> p.s.: And some documentation if you have.<неи> <неи> <неи> <неи> Thanks!<неи> <неи> <неи<неи> http://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide<неи-----BEGIN PGP SIGNATURE-----<неиVersion: GnuPG v1.4.11 (GNU/Linux)<неиComment: Using GnuPG with undefined - http://www.enigmail.net/<неи<неиiQEcBAEBAgAGBQJRWqsbAAoJEGTlfXWiA5oedlsH/jyuEl8tJAgKZul1MHV9fiF2<неиcYS/Rf4/+s1v9FT7DkVZvlKhnucxVjGp0Y/1KIya7jX0YHVD5pKd4skglcBws5P/<неи3kmrbLcmEY+i+wAT9uTzqe+ix0hUrA8ZzFT4BYHmhTCizaQsD7Chrf9BPg/sIzN+<неиuSCtu0Tsufi3tKrgQbMKi2mjucCYAPzfqmAGm+VngA62uz8E8nkCdBGqzD+1rpiW<неиJ+JxbRI2MSne4nnSmHWiSm9G0jOuy0+UDU0c/HJQGns4K/1CpJz7siGlWOpSY9Kd<неиH7NMZJ117KTdr8bt2yL0k8pLWXaXZhoUrLkVqeZaEnBytZuGbobk7OMWsiuYojU=<неи=AhyI<неи-----END PGP SIGNATURE-----<неи<неи---------------------------------------------------------------------<неиTo unsubscribe, e-mail: [hidden email]<неиFor additional commands, e-mail: [hidden email]<неи<неи


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: UNO API

Andreas Säger
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 02.04.2013 12:00, k.misha wrote:
> http://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide<неи<неиThis
> page is empty!<неи<неи-----

This page is far from empty. It contains lots of text with an index to
thousands of documentation pages covering each and every aspect.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJRWq2SAAoJEGTlfXWiA5oe3AYIAIGRa5YHm+15dnarzkZn3PSb
VOM8GiRPLh+TzaXwGixtAgpO9PVgDZumHCEbPNBXMf5yjKOHdqz1NxiF84+HWvmK
8TCOuJg8tuQ2fKjaRALu+cB9/tfHviSFWeKJ3EXx6kMsN3w5fCzGBSuFdklIYSBI
Li2LtVQ1BtIKV6oLUIxZ+rjM9w4CU+5I6Y+s7AnlW1JHGAirGSzehXmUhpdhUNib
xqHjQKQpSfrr5bbKM2dJVRL9a92G6q/bpVhEQnlGvMJtVTb9ccK7sdo9X/2n8aky
JAunOebYotihDNANgAjMX0MUQRpeTSJitIoKhrREZIxo2Pcj0H4wFZb2tub3Oj8=
=Za7H
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: UNO API

k.misha
But where can I get some examples in visual studio C++? That documentation don't have enough examples =(<неи<неи-----Original Message-----<неиFrom: Andreas Säger [mailto:[hidden email]] <неиSent: Tuesday, April 02, 2013 1:06 PM<неиTo: [hidden email]<неиSubject: Re: UNO API<неи<неи-----BEGIN PGP SIGNED MESSAGE-----<неиHash: SHA1<неи<неиAm 02.04.2013 12:00, k.misha wrote:<неи> http://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide<неи<неиThis<неи> page is empty!<неи<неи-----<неи<неиThis page is far from empty. It contains lots of text with an index to<неиthousands of documentation pages covering each and every aspect.<неи<неи-----BEGIN PGP SIGNATURE-----<неиVersion: GnuPG v1.4.11 (GNU/Linux)<неиComment: Using GnuPG with undefined - http://www.enigmail.net/<неи<неиiQEcBAEBAgAGBQJRWq2SAAoJEGTlfXWiA5oe3AYIAIGRa5YHm+15dnarzkZn3PSb<неиVOM8GiRPLh+TzaXwGixtAgpO9PVgDZumHCEbPNBXMf5yjKOHdqz1NxiF84+HWvmK<неи8TCOuJg8tuQ2fKjaRALu+cB9/tfHviSFWeKJ3EXx6kMsN3w5fCzGBSuFdklIYSBI<неиLi2LtVQ1BtIKV6oLUIxZ+rjM9w4CU+5I6Y+s7AnlW1JHGAirGSzehXmUhpdhUNib<неиxqHjQKQpSfrr5bbKM2dJVRL9a92G6q/bpVhEQnlGvMJtVTb9ccK7sdo9X/2n8aky<неиJAunOebYotihDNANgAjMX0MUQRpeTSJitIoKhrREZIxo2Pcj0H4wFZb2tub3Oj8=<неи=Za7H<неи-----END PGP SIGNATURE-----<неи<неи---------------------------------------------------------------------<неиTo unsubscribe, e-mail: [hidden email]<неиFor additional commands, e-mail: [hidden email]<неи<неи


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: UNO API

Shukla, Mangesh
Hi Misha,
    Have you succeeded in setting up the build environment using the scripts. Are you able to build the C++  samples given in the SDK. I ask this, because it is important that you follow the steps mentioned in the wiki. http://wiki.openoffice.org/wiki/SDKInstallation

Here you will also find instructions to build the C++ samples under VC++ .

Once you are able to do this, let me know if you have any specific query on the use of UNO Api's.

Thanks,
Mangesh.

-----Original Message-----
From: k.misha [mailto:[hidden email]]
Sent: Tuesday, April 02, 2013 4:01 PM
To: [hidden email]
Subject: RE: UNO API

But where can I get some examples in visual studio C++? That documentation don't have enough examples =(<неи<неи-----Original Message-----<неиFrom: Andreas Säger [mailto:[hidden email]] <неиSent: Tuesday, April 02, 2013 1:06 PM<неиTo: [hidden email]<неиSubject: Re: UNO API<неи<неи-----BEGIN PGP SIGNED MESSAGE-----<неиHash: SHA1<неи<неиAm 02.04.2013 12:00, k.misha wrote:<неи> http://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide<неи<неиThis<неи> page is empty!<неи<неи-----<неи<неиThis page is far from empty. It contains lots of text with an index to<неиthousands of documentation pages covering each and every aspect.<неи<неи-----BEGIN PGP SIGNATURE-----<неиVersion: GnuPG v1.4.11 (GNU/Linux)<неиComment: Using GnuPG with undefined - http://www.enigmail.net/<неи<неиiQEcBAEBAgAGBQJRWq2SAAoJEGTlfXWiA5oe3AYIAIGRa5YHm+15dnarzkZn3PSb<неиVOM8GiRPLh+TzaXwGixtAgpO9PVgDZumHCEbPNBXMf5yjKOHdqz1NxiF84+HWvmK<неи8TCOuJg8tuQ2fKjaRALu+cB9/tfHviSFWeKJ3EXx6kMsN3w5fCzGBSuFdklIYSBI<неиLi2LtVQ1BtIKV6oLUIxZ+rjM9w4CU+5I6Y+s7AnlW1JHGAirGSzehXmUhpdhUNib<неиxqHjQKQpSfrr5bbKM2dJVRL9a92G6q/bpVhEQnlGvMJtVTb9ccK7sdo9X/2n8aky<неиJAunOebYotihDNANgAjMX0MUQRpeTSJitIoKhrREZIxo2Pcj0H4wFZb2tub3Oj8=<неи=Za7H<неи-----END PGP SIGNATURE-----<неи<неи---------------------------------------------------------------------<неиTo unsubscribe, e-mail: [hidden email]<неиFor additional commands, e-mail: [hidden email]<неи<неи


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: UNO API

k.misha
Hi! I build C++ project and connected to OpenOffice service. I used a code from example "DocumentLoader"!<неиI wrote some functions like SetText(), SetBold(), GetText() which are working with OO Calc. I used examples in wiki to build my project and write functions. But I can't find more examples or documentations to work with more interfaces and write more useful functions =(<неи<неи-----Original Message-----<неиFrom: Shukla, Mangesh [mailto:[hidden email]] <неиSent: Tuesday, April 02, 2013 1:39 PM<неиTo: [hidden email]<неиSubject: RE: UNO API<неи<неиHi Misha,<неи    Have you succeeded in setting up the build environment using the scripts. Are you able to build the C++  samples given in the SDK. I ask this, because it is important that you follow the steps mentioned in the wiki. http://wiki.openoffice.org/wiki/SDKInstallation<неи<неиHere you will also find instructions to build the C++ samples under VC++ .<неи<неиOnce you are able to do this, let me know if you have any specific query on the use of UNO Api's.<неи<неиThanks,<неиMangesh.<неи<неи-----Original Message-----<неиFrom: k.misha [mailto:[hidden email]] <неиSent: Tuesday, April 02, 2013 4:01 PM<неиTo: [hidden email]<неиSubject: RE: UNO API<неи<неиBut where can I get some examples in visual studio C++? That documentation don't have enough examples =(<неи<неи-----Original Message-----<неиFrom: Andreas Säger [mailto:[hidden email]] <неиSent: Tuesday, April 02, 2013 1:06 PM<неиTo: [hidden email]<неиSubject: Re: UNO API<неи<неи-----BEGIN PGP SIGNED MESSAGE-----<неиHash: SHA1<неи<неиAm 02.04.2013 12:00, k.misha wrote:<неи> http://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide<неи<неиThis<неи> page is empty!<неи<неи-----<неи<неиThis page is far from empty. It contains lots of text with an index to<неиthousands of documentation pages covering each and every aspect.<неи<неи-----BEGIN PGP SIGNATURE-----<неиVersion: GnuPG v1.4.11 (GNU/Linux)<неиComment: Using GnuPG with undefined - http://www.enigmail.net/<неи<неиiQEcBAEBAgAGBQJRWq2SAAoJEGTlfXWiA5oe3AYIAIGRa5YHm+15dnarzkZn3PSb<неиVOM8GiRPLh+TzaXwGixtAgpO9PVgDZumHCEbPNBXMf5yjKOHdqz1NxiF84+HWvmK<неи8TCOuJg8tuQ2fKjaRALu+cB9/tfHviSFWeKJ3EXx6kMsN3w5fCzGBSuFdklIYSBI<неиLi2LtVQ1BtIKV6oLUIxZ+rjM9w4CU+5I6Y+s7AnlW1JHGAirGSzehXmUhpdhUNib<неиxqHjQKQpSfrr5bbKM2dJVRL9a92G6q/bpVhEQnlGvMJtVTb9ccK7sdo9X/2n8aky<неиJAunOebYotihDNANgAjMX0MUQRpeTSJitIoKhrREZIxo2Pcj0H4wFZb2tub3Oj8=<неи=Za7H<неи-----END PGP SIGNATURE-----<неи<неи---------------------------------------------------------------------<неиTo unsubscribe, e-mail: [hidden email]<неиFor additional commands, e-mail: [hidden email]<неи<неи<неи<неи<неи---------------------------------------------------------------------<неиTo unsubscribe, e-mail: [hidden email]<неиFor additional commands, e-mail: [hidden email]<неи<неи<неи-----------------------<неи ssi,-i inbrepoi.aer<неиrdtn mn,-i [hidden email]<неи


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: UNO API

Alexandro Colorado-4
There is some specializied pages on C++/Visual STudio. I suggest this
page for C++ related tutorials.

Unfortuantely some moderation needs to be done to verify these
tutorials are still up to date and if not they should be either
labeled or updated.

http://wiki.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK

On 12/31/12, k.misha <[hidden email]> wrote:

> Hi! I build C++ project and connected to OpenOffice service. I used a code
> from example "DocumentLoader"!<неиI wrote some functions like SetText(),
> SetBold(), GetText() which are working with OO Calc. I used examples in wiki
> to build my project and write functions. But I can't find more examples or
> documentations to work with more interfaces and write more useful functions
> =(<неи<неи-----Original Message-----<неиFrom: Shukla, Mangesh
> [mailto:[hidden email]] <неиSent: Tuesday, April 02, 2013 1:39
> PM<неиTo: [hidden email]<неиSubject: RE: UNO API<неи<неиHi
> Misha,<неи    Have you succeeded in setting up the build environment using
> the scripts. Are you able to build the C++  samples given in the SDK. I ask
> this, because it is important that you follow the steps mentioned in the
> wiki. http://wiki.openoffice.org/wiki/SDKInstallation<неи<неиHere you will
> also find instructions to build the C++ samples under VC++ .<неи<неиOnce you
> are able to do this, let me know if you have any specific query on the use
> of UNO Api's.<неи<неиThanks,<неиMangesh.<неи<неи-----Original
> Message-----<неиFrom: k.misha [mailto:[hidden email]] <неиSent: Tuesday,
> April 02, 2013 4:01 PM<неиTo: [hidden email]<неиSubject: RE: UNO
> API<неи<неиBut where can I get some examples in visual studio C++? That
> documentation don't have enough examples =(<неи<неи-----Original
> Message-----<неиFrom: Andreas Säger [mailto:[hidden email]] <неиSent:
> Tuesday, April 02, 2013 1:06 PM<неиTo: [hidden email]<неиSubject:
> Re: UNO API<неи<неи-----BEGIN PGP SIGNED MESSAGE-----<неиHash:
> SHA1<неи<неиAm 02.04.2013 12:00, k.misha wrote:<неи>
> http://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide<неи<неиThis<неи>
> page is empty!<неи<неи-----<неи<неиThis page is far from empty. It contains
> lots of text with an index to<неиthousands of documentation pages covering
> each and every aspect.<неи<неи-----BEGIN PGP SIGNATURE-----<неиVersion:
> GnuPG v1.4.11 (GNU/Linux)<неиComment: Using GnuPG with undefined -
> http://www.enigmail.net/<неи<неиiQEcBAEBAgAGBQJRWq2SAAoJEGTlfXWiA5oe3AYIAIGRa5YHm+15dnarzkZn3PSb<неиVOM8GiRPLh+TzaXwGixtAgpO9PVgDZumHCEbPNBXMf5yjKOHdqz1NxiF84+HWvmK<неи8TCOuJg8tuQ2fKjaRALu+cB9/tfHviSFWeKJ3EXx6kMsN3w5fCzGBSuFdklIYSBI<неиLi2LtVQ1BtIKV6oLUIxZ+rjM9w4CU+5I6Y+s7AnlW1JHGAirGSzehXmUhpdhUNib<неиxqHjQKQpSfrr5bbKM2dJVRL9a92G6q/bpVhEQnlGvMJtVTb9ccK7sdo9X/2n8aky<неиJAunOebYotihDNANgAjMX0MUQRpeTSJitIoKhrREZIxo2Pcj0H4wFZb2tub3Oj8=<неи=Za7H<неи-----END
> PGP
> SIGNATURE-----<неи<неи---------------------------------------------------------------------<неиTo
> unsubscribe, e-mail: [hidden email]<неиFor additional
> commands, e-mail:
> [hidden email]<неи<неи<неи<неи<неи---------------------------------------------------------------------<неиTo
> unsubscribe, e-mail: [hidden email]<неиFor additional
> commands, e-mail:
> [hidden email]<неи<неи<неи-----------------------<неи ssi,-i
> inbrepoi.aer<неиrdtn mn,-i [hidden email]<неи
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Alexandro Colorado
Apache OpenOffice Contributor
http://es.openoffice.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

jg
Reply | Threaded
Open this post in threaded view
|

Re: UNO API

jg
In reply to this post by k.misha
A couple of weeks ago I had a UNO project that required using Visual
Studio/MFC. Despite the fact that there not a lot of information about
this setup, Visual Studio (2012 in my case) works nicely with the UNO
API. I did not read the old docs Alexandro Colorado referred to in the
other reply.

To get started I would suggest the following steps:

(1) Download and install Java/Netbeans/OO Plugin to learn NO using Java.
(2) Then go to C++. There is a simple mapping from the Java to C++ syntax.
(3) Decide whether you want to support the current method of
bootstrapping (you don't have to).

The old message
http://markmail.org/message/gzzv3we42b36aavn?q=list:org%2Eapache%2Eincubator%2Eooo-api+from:%22jg%22&page=1 
has some more details on what to look for.

jg

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: UNO API

Andreas Säger
In reply to this post by k.misha
Am 31.12.2012 12:44, k.misha wrote:
> Hi! I build C++ project and connected to OpenOffice service. I used a code from example "DocumentLoader"!<неиI wrote some functions like SetText(), SetBold(), GetText() which are working with OO Calc. I used examples in wiki to build my project and write functions. But I can't find more examples or documentations to work with more interfaces and write more useful functions


The API is _exactly_ the same for all languages and it is perfectly well
documented in the link I gave you.
You have to install an additional object inspector.

I recommend
> http://extensions.services.openoffice.org/de/project/MRI

which can even write code snippets in C++, Java, Python and Basic.

MRI tutorial:
> http://forum.openoffice.org/en/forum/viewtopic.php?f=74&t=49294



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: UNO API

k.misha
Hi! I have a code:<неи<неиReference< ::com::sun::star::sheet::XSpreadsheetDocument > xSpreadsheetDocument(xCalcComponent, UNO_QUERY);<неиReference< ::com::sun::star::sheet::XSpreadsheets > xSpreadsheets = xSpreadsheetDocument->getSheets();<неиReference< ::com::sun::star::container::XNameAccess > xNameAccess(xSpreadsheets, UNO_QUERY);<неи<неиSequence< OUString > sElementNames = xNameAccess->getElementNames();<неи<неиI want to get a list of sheets in document. How I can see it using printf("%s", variable)?<неи<неиThanks!<неи


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: UNO API

Ariel Constenla-Haile-2
Hi k.misha,

On Wed, Apr 10, 2013 at 01:00:58PM +0300, k.misha wrote:
> Hi!
> I have a code:
> <неи<неиReference< ::com::sun::star::sheet::XSpreadsheetDocument > xSpreadsheetDocument(xCalcComponent, UNO_QUERY);
> <неиReference< ::com::sun::star::sheet::XSpreadsheets > xSpreadsheets = xSpreadsheetDocument->getSheets();
> <неиReference< ::com::sun::star::container::XNameAccess > xNameAccess(xSpreadsheets, UNO_QUERY);
> <неи<неиSequence< OUString > sElementNames = xNameAccess->getElementNames();
> <неи<неиI want to get a list of sheets in document.
> How I can see it using printf("%s", variable)?<неи<неиThanks!<неи

(side note: your mail client, Microsoft Office Outlook 12.0, seems to
mess with the format; at least gmail shows your mails in a single line,
almost impossible to read)

Iterate over the css::uno::Sequence, and get the null terminated string
from the rtl::OUString with rtl::OUStringToOString
http://www.openoffice.org/api/docs/cpp/ref/names/rtl/o-ustring.hxx.html#OUStringToOString-1421

Alternatively, you can use operator<< with std::ostream instead of C's
printf, as in the example attached.


Regards
--
Ariel Constenla-Haile
La Plata, Argentina

main.cxx (4K) Download Attachment
attachment1 (853 bytes) Download Attachment