oox smartart: consider rules when scaling in linear layout

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 31 July 2020 09:56 UTC

The bugdoc has an arrow shape which is 100% wide, and there are multiple shapes before it, which also have a 100% wide constraint. The reason PowerPoint scales down the shapes (but not the arrow) is because rules declare it should happen this way.

So start taking rules into account in linear layouts.

Change-Id: I352443277e88be0eb711659489587127727a258f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99855

0024c48b4822 oox smartart: consider rules when scaling in linear layout
oox/source/drawingml/diagram/diagram.cxx | 20 ++++++
.../drawingml/diagram/diagramlayoutatoms.cxx | 72 +++++++++++++++++++--
.../drawingml/diagram/layoutatomvisitors.cxx | 6 --
sd/qa/unit/data/pptx/smartart-linear-rule.pptx | Bin 0 -> 43353 bytes
sd/qa/unit/import-tests-smartart.cxx | 19 ++++++
5 files changed, 106 insertions(+), 11 deletions(-)

Upstream: cgit.freedesktop.org


  • Share