summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
authorRegina Henschel <rb.henschel@t-online.de>2022-04-20 18:16:50 +0200
committerRegina Henschel <rb.henschel@t-online.de>2022-04-21 12:53:41 +0200
commit5168d06b1302c43a305d0f670ee65079f21063b5 (patch)
tree4e3007012df4f34d9d68c81b74720a058e64272d /codemaker
parent8ac35ace9fca1e0d348e5f9c1ee777458661338c (diff)
tdf#109169 export Type encoded shading to OOXML
A shape might have the shading information not in commands in the enhanced-path, but generated in ctor of EnhancedCustomShape2d from the Type value of the shape. This shading information is a 32 bit value with first the number of the shadings and then the shadings. A shading is encoded with 1,2,3,4,5,6,7 for lighten 10 to 70 and 8,9,a,b,c,d,e,f for darken -80 to -10. To get this information from EnhanceCustomShape2d I have made its method GetLuminanceChange() public. Because OOXML only has darken, darkenLess, lighten and lightenLess our values are mapped: -10, -20, -30 to darkenLess -40, -50, -60, -70, -80 to darken 10, 20, 30 to lightenLess 40, 50, 60, 70 to lighten The bupreport mentions only 'Octagon Bevel' and 'Diamond Bevel'. But the patch fixes missing shading for shapes of Types 'ActionButton*' as well. Such shapes come in from MS binary import. Change-Id: I03f19496b915f3ced6346222e8806832b4ee2827 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133220 Tested-by: Jenkins Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'codemaker')
0 files changed, 0 insertions, 0 deletions