You are viewing a plain text version of this content. The canonical link for it is here.
Posted to api@openoffice.apache.org by "DEWI - N. Zacharias" <N....@dewi.de> on 2014/07/08 19:21:01 UTC
UNO for Dummies wanted
Hi,
I thougt that M$ Word was complicated to interface from C++. But for me OO seems to be much much more a pain in the ass because of all the tons of information about services, interfaces and factories etc. you have to know before you are able to do something useful. I assume that this concept superior over the M$ office concept, but for a simple C++ user who simply wants to create a document which presents the result of measurements and other data by using tables plots and some text it is far too complicated.
I would gratefully appreciate a howto which explain with practical examples how to create a writer document and creating tables , formatted text (with sub and superscript) inserting plots (e.g. SVG or postscript), filling document variables with formatted text etc. Which also explain in very simple manner how to change the properties of a table like the back ground color or the font of the text or the width of a column.
Thank you very much and best regards
Norbert Zacharias
________________________________
Dipl. Phys.
Norbert Zacharias
Wind Measurements & Power Curve Measurements
DEWI GmbH
Ebertstrasse 96
26382 Wilhelmshaven
Germany
Tel.: +49 4421 4808 876
Fax: +49 4421 4808 843
Email: N.Zacharias@dewi.de<ma...@dewi.de>
Home: www.dewi.de<http://www.dewi.de>
a UL company
DEWI GmbH has been acquired by UL (Underwriters Laboratories) and now operates as a UL Company.
DEWI GmbH
Commercial Register No.: Amtsgericht Oldenburg, HRB 130241
Managing Director: Juan Francisco Martinez Cobo, Jens Peter Molly, Michael A. Saltzman, Sajeev Jesudas, Gitte Schj?tz
P Please consider the environment before printing this email.
Re: UNO for Dummies wanted
Posted by Alexandro Colorado <jz...@oooes.org>.
I am assuming you are using C++ to code to the API. This is not as
common, and most of the tools are done for other languages like Java,
that said. You can read the Development guide which includes
information about which interface to use, or what tool to use. Even a
Macro could be much easier to do if all you want is to code to the
document as opposed to the application.
There are many guides that talk about all the things you just
mentioned here are some links:
https://wiki.openoffice.org/wiki/API/Samples/Java/Writer/TextDocumentStructure
https://wiki.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
https://wiki.openoffice.org/wiki/UNO_automation_with_a_binary_(executable)#Create_a_new_Document
On 7/8/14, DEWI - N. Zacharias <N....@dewi.de> wrote:
> Hi,
>
> I thougt that M$ Word was complicated to interface from C++. But for me OO
> seems to be much much more a pain in the ass because of all the tons of
> information about services, interfaces and factories etc. you have to know
> before you are able to do something useful. I assume that this concept
> superior over the M$ office concept, but for a simple C++ user who simply
> wants to create a document which presents the result of measurements and
> other data by using tables plots and some text it is far too complicated.
>
> I would gratefully appreciate a howto which explain with practical examples
> how to create a writer document and creating tables , formatted text (with
> sub and superscript) inserting plots (e.g. SVG or postscript), filling
> document variables with formatted text etc. Which also explain in very
> simple manner how to change the properties of a table like the back ground
> color or the font of the text or the width of a column.
>
> Thank you very much and best regards
> Norbert Zacharias
>
>
> ________________________________
>
> Dipl. Phys.
>
> Norbert Zacharias
>
> Wind Measurements & Power Curve Measurements
>
>
> DEWI GmbH
>
> Ebertstrasse 96
>
> 26382 Wilhelmshaven
>
> Germany
>
> Tel.: +49 4421 4808 876
> Fax: +49 4421 4808 843
>
> Email: N.Zacharias@dewi.de<ma...@dewi.de>
> Home: www.dewi.de<http://www.dewi.de>
>
> a UL company
>
>
>
> DEWI GmbH has been acquired by UL (Underwriters Laboratories) and now
> operates as a UL Company.
>
> DEWI GmbH
>
> Commercial Register No.: Amtsgericht Oldenburg, HRB 130241
>
> Managing Director: Juan Francisco Martinez Cobo, Jens Peter Molly, Michael
> A. Saltzman, Sajeev Jesudas, Gitte Schj?tz
>
> P Please consider the environment before printing this email.
>
>
>
>
>
--
Alexandro Colorado
Apache OpenOffice Contributor
882C 4389 3C27 E8DF 41B9 5C4C 1DB7 9D1C 7F4C 2614
---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org
Re: UNO for Dummies wanted
Posted by Alexandro Colorado <jz...@oooes.org>.
I am assuming you are using C++ to code to the API. This is not as
common, and most of the tools are done for other languages like Java,
that said. You can read the Development guide which includes
information about which interface to use, or what tool to use. Even a
Macro could be much easier to do if all you want is to code to the
document as opposed to the application.
There are many guides that talk about all the things you just
mentioned here are some links:
https://wiki.openoffice.org/wiki/API/Samples/Java/Writer/TextDocumentStructure
https://wiki.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
https://wiki.openoffice.org/wiki/UNO_automation_with_a_binary_(executable)#Create_a_new_Document
On 7/8/14, DEWI - N. Zacharias <N....@dewi.de> wrote:
> Hi,
>
> I thougt that M$ Word was complicated to interface from C++. But for me OO
> seems to be much much more a pain in the ass because of all the tons of
> information about services, interfaces and factories etc. you have to know
> before you are able to do something useful. I assume that this concept
> superior over the M$ office concept, but for a simple C++ user who simply
> wants to create a document which presents the result of measurements and
> other data by using tables plots and some text it is far too complicated.
>
> I would gratefully appreciate a howto which explain with practical examples
> how to create a writer document and creating tables , formatted text (with
> sub and superscript) inserting plots (e.g. SVG or postscript), filling
> document variables with formatted text etc. Which also explain in very
> simple manner how to change the properties of a table like the back ground
> color or the font of the text or the width of a column.
>
> Thank you very much and best regards
> Norbert Zacharias
>
>
> ________________________________
>
> Dipl. Phys.
>
> Norbert Zacharias
>
> Wind Measurements & Power Curve Measurements
>
>
> DEWI GmbH
>
> Ebertstrasse 96
>
> 26382 Wilhelmshaven
>
> Germany
>
> Tel.: +49 4421 4808 876
> Fax: +49 4421 4808 843
>
> Email: N.Zacharias@dewi.de<ma...@dewi.de>
> Home: www.dewi.de<http://www.dewi.de>
>
> a UL company
>
>
>
> DEWI GmbH has been acquired by UL (Underwriters Laboratories) and now
> operates as a UL Company.
>
> DEWI GmbH
>
> Commercial Register No.: Amtsgericht Oldenburg, HRB 130241
>
> Managing Director: Juan Francisco Martinez Cobo, Jens Peter Molly, Michael
> A. Saltzman, Sajeev Jesudas, Gitte Schj?tz
>
> P Please consider the environment before printing this email.
>
>
>
>
>
--
Alexandro Colorado
Apache OpenOffice Contributor
882C 4389 3C27 E8DF 41B9 5C4C 1DB7 9D1C 7F4C 2614
---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org
Re: UNO for Dummies wanted
Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi Norbert,
On Mon, Jul 14, 2014 at 08:18:30AM +0200, DEWI - N. Zacharias wrote:
> > > > When you do so, you'll realize that you need a Visual Studio C++
> > > > compiler; it won't work if you are using Qt Creator with the
> > > > MinGW toolchain.
> > >
> > > [zac] This means that the use of UNO under Linux is not possible
> > > ??
>
> > No, as your first post was talking about MS Word, I assumed you are
> > working on Windows.
>
> That is not wrong but I want to change to Linux for some tasks. E.g.
> to produce the reports.
>
>
> > If you are going to work with UNO on Windows and with C++, you need
> > the Visual C++ compiler (OpenOffice is only 32 bit).
>
> As far as I understand it is possible to run OO remotely. So why do
> 32/64 bit matter ?
It depends on what you are trying to do:
- "client applications" connect to the office "from outside", so you can
start OpenOffice listening for remote connections on a certain port,
the client application can be compiled in a different system and
architecture than the "OpenOffice server"
- extensions implementing UNO components must be installed in the
office; if you are trying to develop a C++ extension, you will need to
compile a version for every OS and architecture
Regards
--
Ariel Constenla-Haile
La Plata, Argentina
AW: UNO for Dummies wanted
Posted by "DEWI - N. Zacharias" <N....@dewi.de>.
Hi Ariel,
> Von: Ariel Constenla-Haile [arielch@apache.org]
> Gesendet: Freitag, 11. Juli 2014 20:08
> An: api@openoffice.apache.org; Zacharias, Norbert
> Betreff: Re: UNO for Dummies wanted
> On Fri, Jul 11, 2014 at 06:41:36PM +0200, DEWI - N. Zacharias wrote:
> > > When you do so, you'll realize that you need a Visual Studio C++
> > > compiler; it won't work if you are using Qt Creator with the MinGW
> > > toolchain.
> >
> > [zac] This means that the use of UNO under Linux is not possible ??
> No, as your first post was talking about MS Word, I assumed you are
> working on Windows.
That is not wrong but I want to change to Linux for some tasks. E.g. to produce the reports.
> If you are going to work with UNO on Windows and
> with C++, you need the Visual C++ compiler (OpenOffice is only 32 bit).
As far as I understand it is possible to run OO remotely. So why do 32/64 bit matter ?
> On Linux and MacOSX you will need Boost if you are going to use STL
> containers, this is explained in sdk/docs/install.html.
I'll check after I'm back.
Thanks for your time and your help.
Best regards
Norbert
--------------------------------------------------------------------------
Dipl. Phys.
Norbert Zacharias
Wind Measurements & Power Curve Measurements
DEWI GmbH
Ebertstrasse 96
26382 Wilhelmshaven
Germany
Tel.: +49 4421 4808 876
Fax: +49 4421 4808 843
Email: N.Zacharias@dewi.de
Home: http://www.dewi.de
a UL company
DEWI GmbH has been acquired by UL (Underwriters Laboratories) and now operates as a UL Company.
DEWI GmbH
Commercial Register No.: Amtsgericht Oldenburg, HRB 130241
Managing Director: Juan Francisco Martinez Cobo, Jens Peter Molly, Michael A. Saltzman, Sajeev Jesudas, Gitte Schjøtz
P Please consider the environment before printing this email.
---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org
Re: UNO for Dummies wanted
Posted by Ariel Constenla-Haile <ar...@apache.org>.
On Fri, Jul 11, 2014 at 06:41:36PM +0200, DEWI - N. Zacharias wrote:
> > When you do so, you'll realize that you need a Visual Studio C++
> > compiler; it won't work if you are using Qt Creator with the MinGW
> > toolchain.
>
> [zac] This means that the use of UNO under Linux is not possible ??
No, as your first post was talking about MS Word, I assumed you are
working on Windows. If you are going to work with UNO on Windows and
with C++, you need the Visual C++ compiler (OpenOffice is only 32 bit).
If you are going to work on Linux, you need the GCC compiler (OO is both
32 and 64 bit); in MacOSX you need clang for OpenOffice 4.1 (only 64
bit) and GCC for 4.0 and below (only 32 bit).
On Linux and MacOSX you will need Boost if you are going to use STL
containers, this is explained in sdk/docs/install.html.
Of course, you can avoid compiling in different platforms and
architectures by using UNO with Java or Python, instead of C++.
Regards
--
Ariel Constenla-Haile
La Plata, Argentina
AW: UNO for Dummies wanted
Posted by "DEWI - N. Zacharias" <N....@dewi.de>.
Hi Ariel,
>
--------------------------------------------------------------------------
Dipl. Phys.
Norbert Zacharias
Wind Measurements & Power Curve Measurements
DEWI GmbH
Ebertstrasse 96
26382 Wilhelmshaven
Germany
Tel.: +49 4421 4808 876
Fax: +49 4421 4808 843
Email: N.Zacharias@dewi.de
Home: http://www.dewi.de
a UL company
DEWI GmbH has been acquired by UL (Underwriters Laboratories) and now operates as a UL Company.
DEWI GmbH
Commercial Register No.: Amtsgericht Oldenburg, HRB 130241
Managing Director: Juan Francisco Martinez Cobo, Jens Peter Molly, Michael A. Saltzman, Sajeev Jesudas, Gitte Schjøtz
P Please consider the environment before printing this email.
-----Ursprüngliche Nachricht-----
> Von: Ariel Constenla-Haile [mailto:arielch@apache.org]
> Gesendet: Freitag, 11. Juli 2014 17:38
> An: api@openoffice.apache.org; Zacharias, Norbert
> Betreff: Re: UNO for Dummies wanted
>
> On Thu, Jul 10, 2014 at 03:55:35PM +0200, DEWI - N. Zacharias wrote:
> [...]
> > By the way I use QT for development.
>
> I assumed you had set up the OpenOffice SDK in order to work with C++
> (you need to generate C++ header from UNO interface definition files).
[zac] Nope, I thought that there is a kind of C++ API which provides access to UNO
> When you do so, you'll realize that you need a Visual Studio C++
> compiler; it won't work if you are using Qt Creator with the MinGW
> toolchain.
[zac] This means that the use of UNO under Linux is not possible ??
Best regards
Norbet
---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org
Re: UNO for Dummies wanted
Posted by Ariel Constenla-Haile <ar...@apache.org>.
On Thu, Jul 10, 2014 at 03:55:35PM +0200, DEWI - N. Zacharias wrote:
[...]
> By the way I use QT for development.
I assumed you had set up the OpenOffice SDK in order to work with C++
(you need to generate C++ header from UNO interface definition files).
When you do so, you'll realize that you need a Visual Studio C++
compiler; it won't work if you are using Qt Creator with the MinGW
toolchain.
Regards
--
Ariel Constenla-Haile
La Plata, Argentina
Re: UNO for Dummies wanted
Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hello Norbert,
note that you are not subscribed to the list, so you may miss some
answers.
On Tue, Jul 08, 2014 at 07:21:01PM +0200, DEWI - N. Zacharias wrote:
> Hi,
>
> I thougt that M$ Word was complicated to interface from C++. But for
> me OO seems to be much much more a pain in the ass because of all the
> tons of information about services, interfaces and factories etc. you
> have to know before you are able to do something useful. I assume
> that this concept superior over the M$ office concept, but for
> a simple C++ user who simply wants to create a document which presents
> the result of measurements and other data by using tables plots and
> some text it is far too complicated.
>
> I would gratefully appreciate a howto which explain with practical
> examples how to create a writer document and creating tables
> , formatted text (with sub and superscript) inserting plots (e.g. SVG
> or postscript), filling document variables with formatted text etc.
> Which also explain in very simple manner how to change the properties
> of a table like the back ground color or the font of the text or the
> width of a column.
Did you set up the SDK and try to build the C++ examples? At least try
with
sdk/examples/DevelopersGuide/ProfUNO/SimpleBootstrap_cpp
sdk/examples/DevelopersGuide/ProfUNO/CppBinding
sdk/examples/cpp/complextoolbarcontrols
I have a collection of C++ examples (with VS C++ project files), but
didn't check them in a while, it will have to wait until the weekend.
You can also search this mailing list for mails with attachments,
something like
http://markmail.org/search/?q=list%3A+org.apache.incubator.ooo-api+attach%3Acxx
Regards
--
Ariel Constenla-Haile
La Plata, Argentina