Re: Testing UNO API service properties

2018-04-05 Thread Jens Carl
On 04/04/2018 01:10 AM, Stephan Bergmann wrote: On 01/04/18 06:41, Jens Carl wrote: I'm currently working on https://opengrok.libreoffice.org/xref/core/qadevOOo/tests/java/ifc/sheet/_FunctionDescription.java Are you sure that code is actually used anywhere?  I can't seem to get it trigger

Re: Testing UNO API service properties

2018-04-04 Thread Stephan Bergmann
On 01/04/18 06:41, Jens Carl wrote: I'm currently working on https://opengrok.libreoffice.org/xref/core/qadevOOo/tests/java/ifc/sheet/_FunctionDescription.java Are you sure that code is actually used anywhere? I can't seem to get it triggered with `make check`.

Re: Testing UNO API service properties

2018-03-31 Thread Jens Carl
On 03/29/2018 12:09 AM, Stephan Bergmann wrote: On 03/27/2018 01:29 AM, Stephan Bergmann wrote: So coming back to my original question: So the intended behaviour is they're read-only and meant to "display" only some information? css.sheet.FunctionDescription is apparently meant to be document

Re: Testing UNO API service properties

2018-03-29 Thread Stephan Bergmann
On 29/03/18 08:46, Jens Carl wrote: On 03/27/2018 01:29 AM, Stephan Bergmann wrote: In a rather unfortunate and confusing way, offapi/com/sun/star/sheet/XFunctionDescriptions.idl mentions the css.sheet.FunctionDescription old-style (see below) service description as a source of documentation f

Re: Testing UNO API service properties

2018-03-28 Thread Jens Carl
On 03/27/2018 01:29 AM, Stephan Bergmann wrote: In a rather unfortunate and confusing way, offapi/com/sun/star/sheet/XFunctionDescriptions.idl mentions the css.sheet.FunctionDescription old-style (see below) service description as a source of documentation for that sequence.  Documenting su

Re: Testing UNO API service properties

2018-03-27 Thread Stephan Bergmann
On 27/03/18 05:38, Jens Carl wrote: On 03/26/2018 12:51 AM, Stephan Bergmann wrote: Can you give an example in the source code of a UNO service implementation passing properties as a sequence of PropertyValue? For FunctionDescription the code is here https://opengrok.libreoffice.org/xref/core

Re: Testing UNO API service properties

2018-03-26 Thread Jens Carl
On 03/26/2018 12:51 AM, Stephan Bergmann wrote: Can you give an example in the source code of a UNO service implementation passing properties as a sequence of PropertyValue? For FunctionDescription the code is here https://opengrok.libreoffice.org/xref/core/sc/source/ui/unoobj/appluno.cxx#578

Re: Testing UNO API service properties

2018-03-26 Thread Stephan Bergmann
On 25/03/18 06:40, Jens Carl wrote: UNO API service passes properties in two ways as beans::XPropertySet or Sequence. Can you give an example in the source code of a UNO service implementation passing properties as a sequence of PropertyValue? ___ L

Testing UNO API service properties

2018-03-24 Thread Jens Carl
Hello List, This related to my efforts to convert the Java UNO API tests to C++. UNO API service passes properties in two ways as beans::XPropertySet or Sequence. beans::XPropertySet is easy to test with the provided methods getPropertyValue() and setPropertyValue(). Sequence are little mo