summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorVladislav Tarakanov <vladislav.tarakanov@bk.ru>2024-10-19 00:12:34 +0200
committerTomaž Vajngerl <quikee@gmail.com>2024-10-19 14:26:23 +0200
commitbaf179188d8b9e29188387fd4b7d887dd3168792 (patch)
tree9663b7dc35dd410f91f656a34d3c8f80bd1f0d61 /sd/source
parent2bbd247f16d456eaa5591251e7a17ea198d3b39d (diff)
tdf#156333 Adding a tint/shade values to the model
Before implementing text effects from the TextFill tag, their values must be directly saved in ComplexColor, without saving in GrabBag. To achieve this, DomainMapper has introduced separate processing of the LN_textFill_textFill tag using the new TextFillHandler class. TextFillHandler inherits from TextEffectsHandler. As a parameter in the constructor, it receives a reference to the ComplexColor to which changes will be added. This is done because some text effects (ThemeTint, ThemeShade) can be specified in the <color> tag, so TextFill must complement existing transformations. For the same reason, when processing LN_EG_RPrBase_color, the ComplexColor value is taken from the context if it was placed there previously. In docx export, existing "Tint" and "Shade" transformations are preserved only in <color ThemeTint=...> and <color ThemeShade=...>. Because the Tint and Shade values from TextFill must be distinguished from the values from color during export, the "Tint" and "Shade" transforms have been renamed to "ThemeTint" and "ThemeShade". Also added new "Tint" and "Shade" transformations, which are currently only saved in TextFill. Change-Id: I0ebba53eba83ccfc99fa812e60d6cebb2ff6bf0f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157979 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd/source')
0 files changed, 0 insertions, 0 deletions