Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index

You can download the files mentioned below from -> CalcAddin.

From: Roland Lichters <>
Subject: Calc Addin Example
Date: 10 April 2014 16:38:53 CEST

Dear LibreOffice Users,

I am looking for an example of how to write a calc add-in for LibreOffice 
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 
"… 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!

Best regards,


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 build 2336.11.00)
LibreOffice Version:, Build ID: 1c1366bba2ba2b554cd2ca4d87c06da81c05d24
LibreOffice SDK 4.1

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: 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.