summaryrefslogtreecommitdiff
path: root/sw/inc/IDocumentLayoutAccess.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-06-07 23:29:05 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-06-08 07:45:13 +0200
commit17105fc44bceea61ff8876686cc1362aa787ead2 (patch)
tree61972d4eb59358eef32e00763ff6aa98aef555e2 /sw/inc/IDocumentLayoutAccess.hxx
parent5a2c6f4df7149f8c1f543f120fe19bd66abfc189 (diff)
sw: remove char color GrabBag and fix export, fix tint/shade calc.
Don't store values from grab bag when exporting character theme colors and tint/shade values. The values could be wrong now and aren't needed anyway as we support the values in the model. Add proper export support for char color theme information with correct conversion of values into tint/shade values in 0-255 inverted interval. This also fixes the import of tint/shade values whcih calculation was slightly off. We divided by 256 instead of 255, which introduced an error. In addition introduce ThemeColorUsage enum, which marks if the theme color type has a specific "usage" - text or background. This is determined on import if the theme type is background{1,2} or text{1,2}. This is then taken into account on export, so the exact type is preserved. Change-Id: I0022a159397fd0c3d39a118a7149bb2488dfc149 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152705 Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sw/inc/IDocumentLayoutAccess.hxx')
0 files changed, 0 insertions, 0 deletions