Re: [api-dev] porting the code from SDK 2.4.1 to SDK 3.1

2009-06-21 Thread Alain Rist
Hi Lorean, I wrote a script to generate the cpp files from the OOo 3.* SDK (and a little more for Windows VC++ users) at http://www.codeproject.com/KB/wtl/Wtl_OOo.aspx . cheers, AR - Original Message - From: Loredan Neagu To: dev@api.openoffice.org Sent: Sunday, June 21,

[api-dev] Solved: [api-dev] App crashes when user closes OpenOffice

2009-02-18 Thread Alain Rist
The solution is the OOo::TerminationMonitor class in the updated http://www.codeproject.com/KB/wtl/Wtl_OOo.aspx. Thanks for community support ;) cheers, AR - Original Message - From: Alain Rist a...@navpoch.com To: dev@api.openoffice.org Sent: Friday, January 30, 2009 12:04 AM

[api-dev] App crashes when user closes OpenOffice

2009-01-29 Thread Alain Rist
Hi, I refer to the WtlOOo.exe http://www.codeproject.com/KB/wtl/Wtl_OOo/WtlOOo_exe.zip Win32 app described at http://www.codeproject.com/KB/wtl/Wtl_OOo.aspx. When user closes a running OpenOffice app with the Quit (Ctrl-Q) command, WtlOOo.exe crashes: the OOo dlls have been unloaded by the

Re: [api-dev] Re: [dev] FOSDEM 2009: Call for Papers for our OpenOffice.org DevRoom

2009-01-09 Thread Alain Rist
Hi Juergen, Just posted Integrate the OpenOffice.org power in a WTL (or other native WIN32) application at http://www.codeproject.com/KB/wtl/Wtl_OOo.aspx. If it is of interest to you, I can make a presentation. cheers, Alain - Original Message - From: Juergen Schmidt

[api-dev] C++ equivalent of the java desk sample

2008-10-27 Thread Alain Rist
Hi, As a homework, I have written a C++ WTL 'equivalent' of the java desk sample: http://www.codeproject.com/script/Membership/Uploads/161329/WtlOOo.zip. The VS/VCExpress project requiring WTL 8.0: http://www.codeproject.com/script/Membership/Uploads/161329/VC2005X.zip. Thanks for any

Re: [api-dev] Best way to know if SomeFileName is loadable ?

2008-10-21 Thread Alain Rist
thought of that. If we are talking about possibly corrupt files, then I see no other way than opening them and see if it works. Regards, Steffen Alain Rist wrote: Hi, I need to know if a user selected file can be loaded by OOo. My current (working) implementation tests if OOo can load

Re: [api-dev] Best way to know if SomeFileName is loadable ?

2008-10-21 Thread Alain Rist
Thanks Steffen, I more or less hoped that TypeDetection could be used in that purpose :( Is this the right place to suggest a bool com::sun::star::frame::XComponentLoader::checkComponentFromURL() API? cheers, AR - Original Message - From: Steffen Grund [EMAIL PROTECTED]

[api-dev] Best way to know if SomeFileName is loadable ?

2008-10-20 Thread Alain Rist
Hi, I need to know if a user selected file can be loaded by OOo. My current (working) implementation tests if OOo can load the file (in hidden mode). It is costly, specially when the answer is yes, as the file will actually be loaded before return. Is there a lighter way to get the answer?