sw XHTML export: avoid writing default transparent background for ReqIF
commit04cc6e079e3122c183054fde046c054ed6c7b737
authorMiklos Vajna <vmiklos@collabora.com>
Fri, 10 Jun 2022 07:12:33 +0000 (10 09:12 +0200)
committerMiklos Vajna <vmiklos@collabora.com>
Fri, 10 Jun 2022 12:28:11 +0000 (10 14:28 +0200)
treedd69c9a3c056e69b29fc78119c39a3275f5a6b13
parentaf3c766cb5ddb1959fb659e3c316e42f832d8de3
sw XHTML export: avoid writing default transparent background for ReqIF

We started writing properties of tables and rows since commit
c3c3303516c3da9372dce3f05f38f15a104e961c (sw XHTML export: output table
/ table row background format using CSS, 2022-05-10).

In case the SwTableLine has an explicit SvxBrushItem with its color set
to COL_TRANSPARENT, we turn that into a "background: transparent" CSS by
default. This is a 1:1 mapping from the doc model, but HTML defaults to
this already, so this is considered as noise.

Extend IgnorePropertyForReqIF() to filter out these unwanted defaults,
and fix SwHTMLWriter::OutCSS1_Property(), because it used to not pass
the CSS value for the filter function.

The behavior for table cells is unchanged, we continue to not export
cell properties (in the ReqIF case) at all.

Change-Id: Idbcd07809e159def694f4de017eebc7ad4104575
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135576
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
sw/qa/extras/htmlexport/htmlexport.cxx
sw/source/filter/html/css1atr.cxx