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


Now I am facing another issue that _is_ critical - I need to return
arrays from a worksheet function (for array formula as described here
https://help.libreoffice.org/3.3/Calc/Array_Functions). I see that
there's 'sequence' keyword in UNO IDL language to define arrays
(http://www.openoffice.org/udk/java/man/map_idl_to_java.html#Mapping
of sequence) so I tried to define a function returning a
single-dimensional array of doubles:


Please disregard this issue - it was some fault on my side. I
re-tested following IDL definition for array function:

sequence < sequence < any > > MyFunc(
     [in] com::sun::star::beans::XPropertySet xOptions
);

With Java implementation

        public Object[][] MyFunc(
                com.sun.star.beans.XPropertySet xOptions
        ) {
            return new Object[][] { {1.1, 2.5}, {3.6, 7.8} };
        }

and it works OK.

Regards,
Mike

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.