Re: no parameter values for "[in] sequence<sequence >" [equivalent for hasValue() for "[in] any"?]

2017-08-29 Thread Lars Callenbach
> On Fri, Aug 25, 2017 at 08:13:07PM +0200, Lars Callenbach h...@web.de> wrote: > > > > is it possible to have leave the parameter empty in Calc function > > if > > the input is of type "[in] sequence<sequence >" in the IDL- > > file? > >

no parameter values for "[in] sequence<sequence >" [equivalent for hasValue() for "[in] any"?]

2017-08-26 Thread Lars Callenbach
Hi all, is it possible to have leave the parameter empty in Calc function if the input is of type "[in] sequence" in the IDL-file? For scalar parameters of the type "[in] any" it is possible to use the "hasValue()" method to analyse whether a parameter value is provided by the user

Compiling SDK C++ examples under Windows without Visual Studio

2017-02-10 Thread Lars Callenbach
Hi all,   I would like to compile the Calc spreadsheet C++ examples of the SDK (LibreOffice 5.2) under Windows using MinGW / Cygwin. Is there any documentation of how to do this?  I prefer using GNU tools since I use them under Linux and I do not want to register Visual-Studio Community.  Since

QuantLib addin for Calc

2017-01-24 Thread Lars Callenbach
Hello, QuantLib is a c++ library for financial calculations based on boost (ww w.quantlib.org). On GitHub I have a first prototype for automatic addin code generation of QuantLib functions and classes for Calc (github.com/lcallenbach/quantlibaddin). I have two questions concering addins for

global information in Calc plugin

2015-10-01 Thread Lars Callenbach
Hello, I would like to extend the capabilities of my C++ Calc plugin. I open Calc and made some calculations in my plugin in the first spreadsheet "A" (e.g. using set() methods for data - I can retrieve the content using get() method in A). Selecting "file->new spreadsheet" I open a second

Calc AddIn - check for empty cell in parameter list (4.4.3.2)

2015-06-27 Thread Lars Callenbach
In an addin function of calc I would like to test whether a parameter is provided - and not empty. Uno::Any seems to be the appropriate data type (hasValue function is provided). Unfortunately the following code always returns 1 (str.hasValue()==TRUE) even if the cell is empty. How can I check for

Programming Calc-Addin in C++ with CellAdress

2015-06-17 Thread Lars Callenbach
I would like to get the adress of the cell in which an Add-In function is called. How do I have to extend the IDL-file --- #include com/sun/star/uno/XInterface.idl #include com/sun/star/lang/XInitialization.idl #include com/sun/star/lang/XServiceName.idl #include

Re: Adjusting an Array Range in Calc

2012-10-27 Thread Lars Callenbach
.: sorry for my late answer. I have not seen yours since it is a new thread in the mailing list archive. Original-Nachricht Datum: Fri, 5 Oct 2012 17:55:40 +0200 Von: Eike Rathke er...@redhat.com An: Lars Callenbach lars.callenb...@gmx.de CC: libreoffice@lists.freedesktop.org

Re: Adjusting an Array Range in Calc

2012-09-23 Thread Lars Callenbach
the defined C++ addins. Are there other C++ functions that need to be included in the defintion of the addin? Something seems to be missing ... Regards, Lars Original-Nachricht Datum: Mon, 10 Sep 2012 09:45:01 +0200 Von: Jan Holesovsky ke...@suse.cz An: Lars Callenbach

Adjusting an Array Range in Calc

2012-09-02 Thread Lars Callenbach
Hello, I have a working plugin for Quantlib. Scalar results of the library (single numbers) are working fine. If I have a Matrix result (array range formula) than it is not possible to change the size of the array. What happens if I try to change the array range: the name of the formula

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

2011-12-23 Thread Lars Callenbach
michael.me...@suse.com An: Lars Callenbach lars.callenb...@gmx.de CC: libreoffice@lists.freedesktop.org Betreff: Re: [Libreoffice] c++ sample for calc add-on 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

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

2011-12-17 Thread Lars Callenbach
Hello, 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

[Libreoffice] problem with unopkg on Linux/AMD64 using SDK-3.3

2011-06-28 Thread Lars Callenbach
Hello, I have written an addin for Calc. It works fine using (Windows XP - OpenOffice 3.2/Libre Office 3.3) and (Linux - OpenOffice 3.2). But it fails under Libre Office 3.3 with an error message: # [root] /opt/libreoffice/basis3.3/sdk/examples/cpp/Calc_test: