[Libreoffice] c++ sample for calc add-on

Michael Meeks michael.meeks at suse.com
Mon Dec 19 04:41:12 PST 2011

Hi Lars,

On Sat, 2011-12-17 at 21:33 +0100, Lars Callenbach wrote:
> I have a template for the quantlib addin which works for OO3.2.
> Unfortunately it does not work for LibreOffice-3.4. Does anybody have
> a template with necessary interface functions in c++ for LO-3.4? I
> have looked at the c++ examples in the SDK without success. Using the
> ideas of the java examples did not work. At the moment the plugin
> crashes LO if I try to insert a function.

	Sounds nasty; when you say 'insert a function' - you're wanting to add
a function to calc ? if so the code in 'scaddins' is prolly best
practise, but of course if it worked with OO.o 3.2 it should work with
LibO 3.3+ etc. Having said that we got stricter on XML validation for
various config files & so on.

> By the way: I have to replace the onboard libstdc++ in ure-link/lib by
> the system libstdc++ to use other libraries. Why is there on old
> libstdc++?

	This may be related to your problems I guess. The old libstdc++ is
there to support old extensions that compiled against that, presumably
that became part of our C++ ABI at some stage.

	Do you have some code to play with / test ? and/or a stack trace and/or
more details ? Also - we really prefer to put useful functionality into
the core of LibreOffice so more users can get at it - would that make
sense for your feature ?



michael.meeks at suse.com  <><, Pseudo Engineer, itinerant idiot

More information about the LibreOffice mailing list