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

2008-10-19 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? in

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

2008-10-21 Thread Alain Rist
ht 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 the file (in

Re: [api-dev] Best way to know if 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]> Newsgr

Re: [api-dev] Getting the document name displayed in the title bar of the window

2008-10-23 Thread Alain Rist
Hi Andreas Looks promising but no such XTitle interface headers in my OOo3 sdk files :( cheers, AR - Original Message - From: "Andreas Schlüns" <[EMAIL PROTECTED]> Newsgroups: openoffice.api.dev To: Sent: Thursday, October 23, 2008 11:39 AM Subject: Re: [api-dev] Getting the documen

Re: [api-dev] Getting the document name displayed in the title bar of the window

2008-10-23 Thread Alain Rist
es the build env will generate all C++ headers for all IDL types at once. Juergen Alain Rist wrote: Hi Andreas Looks promising but no such XTitle interface headers in my OOo3 sdk files :( cheers, AR - Original Message - From: "Andreas Schlüns" <[EMAIL PROTECTED]> N

Re: [api-dev] Getting the document name displayed in the title bar of the window

2008-10-24 Thread Alain Rist
es the build env will generate all C++ headers for all IDL types at once. Juergen Alain Rist wrote: Hi Andreas Looks promising but no such XTitle interface headers in my OOo3 sdk files :( cheers, AR - Original Message - From: "Andreas Schlüns" <[EMAIL PROTECTED]>

Re: [api-dev] Getting the document name displayed in the title bar of the window

2008-10-24 Thread Alain Rist
vious link Should I use different options? Thanks again AR - Original Message - From: "Juergen Schmidt" <[EMAIL PROTECTED]> To: Sent: Friday, October 24, 2008 9:57 AM Subject: Re: [api-dev] Getting the document name displayed in the title bar of the window Alain Rist

Re: [api-dev] Getting the document name displayed in the title bar of the window

2008-10-24 Thread Alain Rist
Thanks a lot, Hadn't caught calling once on two sources :( AR - Original Message - From: "Juergen Schmidt" <[EMAIL PROTECTED]> cppumaker -BUCR -O .../types.rdb .../program/offapi.rdb should make it. You need both registry files or use the -X option for the types.rdb that you have a

[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 comment,

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" To: Cc: ;

[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 sys

[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" To: Sent: Friday, January 30, 2009 12:04 AM Subject: [api-dev] App crashes

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, 2009