You can download the files mentioned below from
http://www.lichters.net/download.html -> CalcAddin.
Regards,
Roland
From: Roland Lichters <roland.lichters@web.de>
Subject: Calc Addin Example
Date: 10 April 2014 16:38:53 CEST
To: users@global.libreoffice.org
Dear LibreOffice Users,
I am looking for an example of how to write a calc add-in for LibreOffice 4.1.5.3.
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
https://wiki.openoffice.org/wiki/SimpleCalcAddIn
https://wiki.openoffice.org/wiki/Calc/Add-In/CompleteAddIn
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
attached).
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
browser.
Any hint at what is wrong with my example would be much appreciated!
Best regards,
Roland
--
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: 4.1.5.3, Build ID: 1c1366bba2ba2b554cd2ca4d87c06da81c05d24
LibreOffice SDK 4.1
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
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
Context
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.