lokit: unify fill transparency items

Desktop / LibreOffice - Dennis Francis [collabora.com] - 24 March 2020 17:52 EDT

Online just listens to .uno:FillFloatTransparence but the set-item in core it corresponds to, does not represent the fill-transparency types like 'None' and 'Solid'. This is represented by another item called XFillTransparencyItem. As a result the mobile wizard does not show the correct transparency fill type always. To solve this, this patch encodes the constant transparency percentage in case of Solid and None(always 0%) as an intensity and stores this info in the statechange message of .uno:FillFloatTransparence whenever there is no gradient type and corrects the 'style' attribute of the message appropriately.

More detailed information is provided as comments at appropriate places in the patch.

Change-Id: I443ef4ce349badf28f6c2c702b1014868d9c6ed5 (cherry picked from commit 34969e9c04f9305d19826c72a29e38e26794cbe3) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90986

f08bbb5648c0 lokit: unify fill transparency items
svx/source/xoutdev/xattr.cxx | 13 ++++++++++++
sw/source/uibase/shells/drawdlg.cxx | 41 +++++++++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+)

Upstream: cgit.freedesktop.org

  • Share