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

Regina Henschel <rb.hensc...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
                 CC|                            |rb.hensc...@t-online.de

--- Comment #2 from Regina Henschel <rb.hensc...@t-online.de> ---
PowerPoint switches the algorithm in case the sum of top and bottom margin is
larger than the text area height. LO uses the same algorithm for all cases. So
we need to adapt the values on import and export.

I have made some experiments and have got these results for PowerPoint:
If top margin + bottom margin < text area height
then in case anchor is top, shift text block down by top margin
             anchor is bottom, shift text block up by bottom margin.

In all other cases calculate V = (top margin - bottom margin)/2.
Place the text so that
In case anchor is top, middle of text area + V = top text block
        anchor is middle, middle of text area + V = middle of text block
        anchor is bottom, middle of text area + V = bottom of text block
As usual, y-values increase downwards.

(These are only first experiments and algorithm might be wrong, so verify
before implementing.)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to