diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2022-02-01 20:38:07 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-02-02 08:38:11 +0100 |
commit | 9877a0190e43241f4a5102e5d9cc7181f91d5a6f (patch) | |
tree | 187b8c68c6e9bb76d2e5f676cbc672e40781867f /soltools/README.md | |
parent | ea23f640d3bf06e4035a96ebe8b8c07a59d6f12c (diff) |
tdf#107727 disable border in RTF export if not drawn
A border of a text frame is not drawn, if it is really disabled or if
its line style is None. The patch considers both cases. Previously the
first case was missing.
LO can disable single border lines and single border lines can have
different styles. The patch uses a border line now, that is really
drawn, to get the color and width. It uses the first one in order
top, bottom, left, right.
In theory RTF can describe disabling single border lines by using the
flags fTopLine, fBottomLine, fLeftLine or fRightLine. But Word has
only the ability to enable all or none of the border lines for an old
kind text box as contained in an rtf-document. The current patch uses
therefore this all-or-none approach too. It enables border if at least
one is actually drawn, because that keeps the style settings for that
border line. Previously all four border lines need to be drawn.
If it is changed to use the flags fTopLine, fBottomLine, fLeftLine
and fRightLine on export, then it would be possible to recover showing
only single border lines on reimport. But that is out of scope here.
Change-Id: Ib78604def154c133d3c93bc75a38731eb6b02294
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129305
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'soltools/README.md')
0 files changed, 0 insertions, 0 deletions