Files
loongoffice/sw/qa/core/data
Justin Luth c14574e7ad tdf#126533 docx import: page background vml fill
This patch imports bitmaps/tiled textures (primarily),
but also somewhat for gradients
(because of a gradient2 -> gradient mismatch somewhere)
and somewhat for patterns
(because patterns are not well imported in general).

Note that the imported fill likely will NOT match MSO,
because their background CHANGES BASED ON THE ZOOM LEVEL.
For example, my primary testing file (A6 landscape)
has a logo which is only 25% visible in Word 2003 at 100%,
but shows 90% of the logo at 200%, and many tiles of logos
when exported as PDF.
The same is true for gradients etc.

Changing background on zoom is an absolutely bizarre implementation,
and naturally LO could only accidentally look identical
(and should never try to do so).

make CppunitTest_sw_ooxmlexport21 \
    CPPUNIT_TEST_NAME=testTdf126533_noPageBitmap

make CppunitTest_sw_ooxmlexport21 \
    CPPUNIT_TEST_NAME=testTdf126533_pageGradient

This is slightly ugly, but I don't know how to make a COPY
of the XPropertySet UNO junk. All I have is references,
and dispose deletes everything, even the references.

I took some inspiration from RTF
which just disposes the shape after grabbing the background color.

Thus, just change the page style known to exist and be used,
and then simply remove the fill if it isn't needed in the end.
Any new page styles can just copy the default page style fill.

Change-Id: Id3ea002c685642ff4c289982d0108247a6e9bb8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162958
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-02-20 16:54:57 +01:00
..

Files with the string 'CVE' in their name are encrypted to avoid
problems with virus checkers on source code download.; use:

mdecrypt --bare -a arcfour -o hex -k 435645 -s 3 foo.doc # to unencrypt
mcrypt --bare -a arcfour -o hex -k 435645 -s 3   foo.doc # to create new tests

to get access to the plain files for manual testing.


The files in these subdirectories are tested to
ensure that they import without crashing or hanging.
Files that crash during export should go into exportdata.

Both data and exportdata are tested with
make CppunitTest_sw_filters_test      or
make CppunitTest_sw_filters_test2     for ww6.

Files that hang interactively, but pass filters_test
might be failing because of layout issues. See core/layout.

pass: these files now load - without the fix they crashed or hung.
fail: these files still fail to load, but not because of crashing or hanging.
indeterminate: untested temporary holding area - to be sorted as pass/fail.