Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index


Hi Regina,

On Mon, Feb 25, 2019 at 01:13:00AM +0100, Regina Henschel <rb.henschel@t-online.de> wrote:
I have tried to do it the same as in SdImportTest::testTdf93124 in
import-tests.cxx in sd/qa/unit. But I only get a bitmap of the page without
the shape.

Asserting pixel data in bitmap is really the last resort. :-)

If possible, it's much better to do something vector-based. Either
export the shape or page into a metafile:

sw/qa/extras/layout/layout.cxx:2349

or you can also do something similar to export it to SVG.

Can you check if getting the document preview + asserting metafile
content would allow you to test your changes?

I think this approach is good if your code change affects what VCL
methods are used. (If your code change affects what is stored in the
document model, then it's better to assert the document model.)

Regards,

Miklos

Attachment: signature.asc
Description: Digital signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.