Re: [Libreoffice] LibreOffice / OpenOffice.org sniffing in extension

2011-05-19 Thread Christophe Strobbe
Hi Laurent, On Mon, 16 May 2011 16:53:05 +0200, Laurent Godard wrote: > Hi Christophe > > perharps not perfect (and in fact surely ;) ) > here is how i quickly solved this using macros > can be implemented in java Thanks a lot. I managed to create a Java version that I can use in an extension.

Re: [Libreoffice] LibreOffice / OpenOffice.org sniffing in extension

2011-05-16 Thread Fernand Vanrie
dag Christophe , in Basic and OO i use, works also for LO i think :-) If (Not GlobalScope.BasicLibraries.isLibraryLoaded("Tools")) Then GlobalScope.BasicLibraries.LoadLibrary("Tools") End If xray GetRegistryKeyContent("org.openoffice.Setup/Product") hope it helps Fernand Hi, I am in

Re: [Libreoffice] LibreOffice / OpenOffice.org sniffing in extension

2011-05-16 Thread Laurent Godard
Hi Christophe perharps not perfect (and in fact surely ;) ) here is how i quickly solved this using macros can be implemented in java btw, perharps not the right mailing list HTH laurent '- function isLibreOffice dim aSettings, nom aSettings = getConfigSetting("/org.open

[Libreoffice] LibreOffice / OpenOffice.org sniffing in extension

2011-05-16 Thread Christophe Strobbe
Hi, I am involved in a project that develops a few extensions (mostly in Java) for OpenOffice.org and LibreOffice, and I would like to find a way to make an extension detect in which of these two office suites it is installed. I have not been able to find this in API documentation or elsewhere. Ca