Creating singleton UNO components in C++

Dennis Francis at
Tue Nov 1 15:49:36 UTC 2016

Hello all

I tried creating a very simple singleton UNO component which just gets/sets
a boolean value. The code is hosted at . This was created based on
. The component is packaged as an extension and unopkg was used to install
it. The oxt file is also provided in the repo for easy testing.

I tried to instantiate this singleton using macro sub named "TestSingleton"
inside the document TestSingleton.ods provided in the same repo. The vba
code is also provided in the file TestSingleton.vba for convenience. When
the macro is executed, it shows a msgbox with the string
" get environments".

I suppose there is something wrong with my singleton instantiation, but I
could not find any solution either by googling or by using opengrok. Could
someone please give a hint where I am wrong ?

Thanks in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the LibreOffice mailing list