Value range of c3DSpecularAmt
Miklos Vajna
vmiklos at collabora.com
Wed Feb 9 07:38:26 UTC 2022
Hi Regina,
On Sat, Feb 05, 2022 at 07:04:07PM +0100, Regina Henschel <rb.henschel at t-online.de> wrote:
> There are problems in xmloff to get draw:extrusion-specularity ODF conform:
> If I write it out in XML_NAMESPACE_LO_EXT in LO 7.4, then the previous
> versions of LO 7 will not be able to read it.
> If I would write a clamped value in XML_NAMESPACE_DRAW and the original
> value in XML_NAMESPACE_LO_EXT, how could I get the original value on
> reading?
>
> For ODF 1.2 I tend to always write out a clamped value.
> ODF 1.1 allows the original value.
Perhaps the following could work:
- write draw:extrusion-specularity with a clamped value (as required by
the current ODF spec)
- write loext:draw:extrusion-specularity with the value as-is
- read both attributes, but prefer the loext one if both are available
Would that work?
Regarding how to prefer loext over draw on reading, page properties have
such post-processing logic in
xmloff/source/style/PageMasterImportPropMapper.cxx, I would hope that
something similar exist for shape properties as well.
Regards,
Miklos
More information about the LibreOffice
mailing list