https://bugs.documentfoundation.org/show_bug.cgi?id=94731

--- Comment #1 from Regina Henschel <[email protected]> ---
Please do not mix handling of ODF with problems in OOXML import and export.

ODF is very clear, how draw:style="square" should look. Read section
19.218.2<draw:gradient>, item 'square',
"square: defines a gradient that produces a square blend, imitating the visual
perspective in a corridor or the aerial view of a pyramid. Also known as "box
gradient" and "pyramidal gradient". The center of the square is defined with
the draw:cx and draw:cy attributes. The width and height of the square is the
minimum value of either the width or the height of the filled area. The outside
of the square is filled with the end color."

LibeOffice shows it correctly in most cases. Only transparent gradient in
presentation mode is wrong. The names in the UI are wrong for en-US. In German
the gradients in Area dialog have the correct "Quadratisch" for
draw:style="square" and "Rechteckig" for draw:style="rectangle", but German is
wrong in the other cases too.

I think, not the drawing is wrong, but the naming in the UI.


OOXML import and export should be an own issue, but nevertheless a comment:
OOXML has only the gradient types 'linear' and 'path based'. For 'path' it has
the values 'circle', 'rect' and 'shape'. So there exists no direct mapping for
ODF draw:style="square". Read annex L.4.8.4.2, and section 20.1.10.38
ST_PathShadeType, and section 20.1.8.33 gradFill; all in ECMA-376, 4th Edition;
Office Open XML File Formats — Fundamentals and Markup Language Reference;
December 2012. The nearest mapping would be to 'rect' and calculate its corner
positions based on the current shape in a way, that the gradient area is a
square.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to