Dear LibreOffice Users,
I am looking for an example of how to write a calc add-in for LibreOffice 188.8.131.52.
Unfortunately there comes no example with the LibreOffice SDK that works out of the box, as far as
I can see.
But I have come across the following wiki pages
I then copied the idl and full cpp code from the "CompleteAddin" wiki (see addin.idl and addin.cxx
attached), copied and amended the Makefile from the SDK example
LibreOffice4.1_SDK/examples/DevelopersGuide/Components/CppComponent (amended version also
When I run "make", then all steps seem to complete, and I get the attached oxt file.
There is no error message when loading it into LibreOffice using the make command.
But when I try to load it by double clicking the file, I get an error message "…CppAddin.uno.dylib:
cannot get symbol: component_getImplementationEnvironment- nor:" in a pop up window from the
Extension Manager. However, the function is defined in the attached addin.cxx as extern "C", see
the bottom of adding.cxx.
Probably consequently, I cannot see the four test functions METHOD1 … METHOD4 in the function
Any hint at what is wrong with my example would be much appreciated!
OS: Mac OSX 10.8.5
gcc --version: i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM
LibreOffice Version: 184.108.40.206, Build ID: 1c1366bba2ba2b554cd2ca4d87c06da81c05d24
LibreOffice SDK 4.1
To unsubscribe e-mail to: firstname.lastname@example.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
- [libreoffice-users] Calc Addin Example · Roland Lichters
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy