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


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::PropertyValue>.

beans::XPropertySet is easy to test with the provided methods getPropertyValue() and setPropertyValue().

Sequence<beans::PropertyValue> are little more problematic, because you have to iterate over the sequence and depending of .Name execute the tests fitting the property type.

Also because it's a Sequence you can change the .Value despite in some cases the property is marked read-only. See https://opengrok.libreoffice.org/xref/core/offapi/com/sun/star/sheet/FunctionDescription.idl.

In general is the intended behaviour, when a UNO API service passes the properties as Sequence<beans::Property>, that values are read-only? Regardless that it's possible to change .Value. I so far didn't find anything in code that point to something happens when I change a .Value.

Cheers,

 Jens

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.