Re: [dev] Can application work well in the system without installing OOo !

2010-05-15 Thread Qzi er
I am thinking how to develop a application with odb inside using c++!

Maybe it will be used in some machines without OOo !   It can just record
the data without open it !

I will open it in my machine !   can it ?





On Fri, May 14, 2010 at 2:47 PM, Mathias Bauer nospamfor...@gmx.de wrote:

 On 13.05.2010 16:39, Qzi er wrote:

 Can application work well in the system without installing OOo !

 I want to develop a appliciont using mfc  OOo uno , but I don't know how
 can't it work well  !


 OOo runs without installing it, it's enough to copy another installed
 instance. Of course this copied instance then will have no system
 integration. So doubleclicking ODF documents will not start OOo and -
 perhaps more important for you - simple bootstrapping of UNO connections
 won't work and you have to connect manually, explicitly specifying OOo's
 location.

 Regards,
 Mathias

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

 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
 For additional commands, e-mail: dev-h...@openoffice.org




-- 
 作智慧的减法 ...

体会生活的微妙的富足  ...

  嗯 ...


Re: [dev] Can application work well in the system without installing OOo !

2010-05-15 Thread Alexandro Colorado
On Sat, May 15, 2010 at 11:36 AM, Qzi er hotseason...@gmail.com wrote:

 I am thinking how to develop a application with odb inside using c++!

 Maybe it will be used in some machines without OOo !   It can just record
 the data without open it !

 I will open it in my machine !   can it ?


Have a look at JODConverter or PyODconverter they do exactly that. Except is
more oriented to just manipulate formats, you could arguably do something
else.
http://www.artofsolving.com/opensource/jodconverter








 On Fri, May 14, 2010 at 2:47 PM, Mathias Bauer nospamfor...@gmx.de
 wrote:

  On 13.05.2010 16:39, Qzi er wrote:
 
  Can application work well in the system without installing OOo !
 
  I want to develop a appliciont using mfc  OOo uno , but I don't know
 how
  can't it work well  !
 
 
  OOo runs without installing it, it's enough to copy another installed
  instance. Of course this copied instance then will have no system
  integration. So doubleclicking ODF documents will not start OOo and -
  perhaps more important for you - simple bootstrapping of UNO connections
  won't work and you have to connect manually, explicitly specifying
 OOo's
  location.
 
  Regards,
  Mathias
 
  --
  Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
  OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
  Please don't reply to nospamfor...@gmx.de.
  I use it for the OOo lists and only rarely read other mails sent to it.
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
  For additional commands, e-mail: dev-h...@openoffice.org
 
 


 --
  作智慧的减法 ...

体会生活的微妙的富足  ...

  嗯 ...




-- 
Alexandro Colorado
OpenOffice.org Español
http://es.openoffice.org


Re: [dev] Can application work well in the system without installing OOo !

2010-05-15 Thread Charles-H. Schulz

Hello Qzi er,




Le 15 mai 2010 à 19:13, Alexandro Colorado a écrit :

 On Sat, May 15, 2010 at 11:36 AM, Qzi er hotseason...@gmail.com wrote:
 
 I am thinking how to develop a application with odb inside using c++!
 
 Maybe it will be used in some machines without OOo !   It can just record
 the data without open it !
 
 I will open it in my machine !   can it ?
 
 
 Have a look at JODConverter or PyODconverter they do exactly that. Except is
 more oriented to just manipulate formats, you could arguably do something
 else.
 http://www.artofsolving.com/opensource/jodconverter



I think that if you want to stick to c ++ you may find more resources here: 
http://www.odftoolkit.org ; otherwise I'll coin in the project I'm working on:
http://www.lpod-project.org  :-)

Best,

Charles.


 
 
 
 
 
 
 
 
 On Fri, May 14, 2010 at 2:47 PM, Mathias Bauer nospamfor...@gmx.de
 wrote:
 
 On 13.05.2010 16:39, Qzi er wrote:
 
 Can application work well in the system without installing OOo !
 
 I want to develop a appliciont using mfc  OOo uno , but I don't know
 how
 can't it work well  !
 
 
 OOo runs without installing it, it's enough to copy another installed
 instance. Of course this copied instance then will have no system
 integration. So doubleclicking ODF documents will not start OOo and -
 perhaps more important for you - simple bootstrapping of UNO connections
 won't work and you have to connect manually, explicitly specifying
 OOo's
 location.
 
 Regards,
 Mathias
 
 --
 Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
 Please don't reply to nospamfor...@gmx.de.
 I use it for the OOo lists and only rarely read other mails sent to it.
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
 For additional commands, e-mail: dev-h...@openoffice.org
 
 
 
 
 --
 作智慧的减法 ...
 
   体会生活的微妙的富足  ...
 
 嗯 ...
 
 
 
 
 -- 
 Alexandro Colorado
 OpenOffice.org Español
 http://es.openoffice.org



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Can application work well in the system without installing OOo !

2010-05-15 Thread eric b


Le 15 mai 10 à 19:23, Charles-H. Schulz a écrit :



I think that if you want to stick to c ++ you may find more  
resources here: http://www.odftoolkit.org ; otherwise I'll coin in  
the project I'm working on:

http://www.lpod-project.org  :-)




Can we see your code ?

/me curious

--
qɔᴉɹə
Education Project:
http://wiki.services.openoffice.org/wiki/Education_Project
Projet OOo4Kids : http://wiki.ooo4kids.org/index.php/Main_Page
L'association EducOOo : http://www.educoo.org
Blog : http://eric.bachard.free.fr/news







Re: [dev] Can application work well in the system without installing OOo !

2010-05-15 Thread Charles-H. Schulz


Le 15 mai 2010 à 19:46, eric b a écrit :

 
 Le 15 mai 10 à 19:23, Charles-H. Schulz a écrit :
 
 
 I think that if you want to stick to c ++ you may find more resources here: 
 http://www.odftoolkit.org ; otherwise I'll coin in the project I'm working 
 on:
 http://www.lpod-project.org  :-)
 
 
 
 Can we see your code ?
 
 /me curious


Sure: http://lpod-project.org/get-the-code#get-the-lpod-source

Charles.




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Can application work well in the system without installing OOo !

2010-05-15 Thread Qzi er
I am just learning the uno !

   some types of sdk and open , save a document in console !

but I will do that later !  if a app created , I can send you !

On Sun, May 16, 2010 at 1:46 AM, eric b eric.bach...@free.fr wrote:


 Le 15 mai 10 à 19:23, Charles-H. Schulz a écrit :



 I think that if you want to stick to c ++ you may find more resources
 here: http://www.odftoolkit.org ; otherwise I'll coin in the project I'm
 working on:
 http://www.lpod-project.org  :-)



 Can we see your code ?

 /me curious

 --
 qɔᴉɹə
 Education Project:
 http://wiki.services.openoffice.org/wiki/Education_Project
 Projet OOo4Kids : http://wiki.ooo4kids.org/index.php/Main_Page
 L'association EducOOo : http://www.educoo.org
 Blog : http://eric.bachard.free.fr/news








-- 
 作智慧的减法 ...

体会生活的微妙的富足  ...

  嗯 ...


Re: [dev] Can application work well in the system without installing OOo !

2010-05-15 Thread Qzi er
I am so happy to know more info about OOo like http://www.odftoolkit.org ...



   - ODFDOM http://odftoolkit.org/projects/odfdom/pages/Home, Java
   - AODL http://odftoolkit.org/projects/aodl/pages/Home, .NET ( C# )


Can it use in c++ ?


On Sun, May 16, 2010 at 3:00 AM, Qzi er hotseason...@gmail.com wrote:

 I am just learning the uno !

some types of sdk and open , save a document in console !

 but I will do that later !  if a app created , I can send you !


 On Sun, May 16, 2010 at 1:46 AM, eric b eric.bach...@free.fr wrote:


 Le 15 mai 10 à 19:23, Charles-H. Schulz a écrit :



 I think that if you want to stick to c ++ you may find more resources
 here: http://www.odftoolkit.org ; otherwise I'll coin in the project I'm
 working on:
 http://www.lpod-project.org  :-)



 Can we see your code ?

 /me curious

 --
 qɔᴉɹə
 Education Project:
 http://wiki.services.openoffice.org/wiki/Education_Project
 Projet OOo4Kids : http://wiki.ooo4kids.org/index.php/Main_Page
 L'association EducOOo : http://www.educoo.org
 Blog : http://eric.bachard.free.fr/news








 --
  作智慧的减法 ...

 体会生活的微妙的富足  ...

   嗯 ...






-- 
 作智慧的减法 ...

体会生活的微妙的富足  ...

  嗯 ...


[dev] CMake

2010-05-15 Thread Bill Hoffman

Hi,

I noticed the discussion about CMake, and wanted a chance to answer some 
of the questions raised about CMake.  Sorry for starting a new thread, 
but I just joined the list.   If you want to move this back to the old 
thread, please just answer my comments on that thread, I will look for it.



Sure, but CMake does not have target local variables, dynamic evaluation
etc. that make that usable in a large scale project.


I am not sure what the question is here.  CMake does have various forms 
of local variables.


- All variables in the cmake function command are local to that 
function, and can be optionally moved up to a parent scope.

http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:function

- CMake also has target properties that can be set.  These are 
properties that are attached to a target.

See the documentation for set_target_properties here:

cmake.org/cmake/help/cmake-2-8-docs.html#command:set_target_properties

- CMake is certainly being used for many large projects, so I am not 
sure what dynamic eval you are asking about.



The biggest problem of a switch to CMake besides the ones already
mentioned is that it does not offer a migration path for us.
Switching our build system to CMake would require a one shot
conversion, including parallel maintenance of makefiles for the whole
duration of the switch (that is estimated to last for several
months).


There are ways to do this.  In particular, a recent addition to CMake 
call external projects might be useful.


For example, you can build Qt from a cmake file like this:

ExternalProject_Add(Qt
  DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}
  URL ${qt_file}
  UPDATE_COMMAND 
  SOURCE_DIR ${qt_source}
  BUILD_IN_SOURCE 1
  CONFIGURE_COMMAND ${qt_configure}
  BUILD_COMMAND ${qt_build}
  INSTALL_COMMAND ${qt_install}
  )

This could be used to drive the existing build system of open office. 
So, you could have a tree of CMake built sub-parts of openoffice, and a 
tree that still uses the current build system.  An umbrella CMake build 
file could be constructed to build external projects for each part of 
the system.  I am pretty sure that you could get there incrementally if 
you wanted to.


Another topic that is mentioned is the fact that builds have to be run 
from the top.  That is not entirely true.   You can have subprojects 
that are built on their own.  Each add_subdirectory can point to a 
complete project.   If you cd into the sub directory in the build tree, 
you can just run make, and it will only build the targets associated 
with that sub-project.   Also, you could run cmake on the sub-project by 
itself if it is written to work as an independent sub-project.



Another aspect of CMake that you do not address in your evaluation is 
that fact that with CMake you will be outsourcing the maintenance of 
the build system to the CMake developers.  CMake will be creating shared 
libraries, mac OSX bundles, install rules, rpath manipulation, 
potentially packaging in the future, and lots of other features.   CMake 
is not a static project, and has lots of development going on.  Your 
project could enjoy some of that effort, and perhaps guide it if you 
joined the CMake community.   For more general information about the 
whole CMake tool set, you might be interested in the google tech talk 
that I did:


http://www.kitware.com/blog/home/post/2



-Bill


--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



[dev] what's the deference between weak reference and hard reference ?

2010-05-15 Thread Qzi er
what's the deference between  weak reference and hard reference ?

I can't understande the wiki below !

http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/C%2B%2B/Using_Weak_References

Is there other core code show  what is weak distinguish  hard ?
-- 
 作智慧的减法 ...

体会生活的微妙的富足  ...

  嗯 ...