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

2017-08-29 Thread Lars Callenbach
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 >" in the IDL- > > file? > > What is the con

no parameter values for "[in] 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 for the func

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 t

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 LibreO

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 spreads

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 #include #include #include #include #include module my_module { interface XSomething : com::sun::star::uno::XInterface { // our four methods string methodO

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 > An: Lars Callenbach > CC: libreoffice@lists.freedesktop.org, Jan Holesovsky &

Re: Adjusting an Array Range in Calc

2012-09-23 Thread Lars Callenbach
ed int i=0; i Datum: Mon, 10 Sep 2012 09:45:01 +0200 > Von: Jan Holesovsky > An: Lars Callenbach > CC: libreoffice@lists.freedesktop.org > Betreff: Re: Adjusting an Array Range in Calc > Hi Lars, > > Lars Callenbach píše v Ne 02. 09. 2012 v 11:15 +0200: > > > I

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 chang

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

2011-12-23 Thread Lars Callenbach
ael Meeks > An: Lars Callenbach > 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 java

[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: "/opt/libreoffice/program/unopk