Need help for unit test with rotated shape in Calc

Miklos Vajna vmiklos at collabora.com
Tue Dec 3 10:22:35 UTC 2019


Hi Regina,

On Tue, Dec 03, 2019 at 01:38:59AM +0100, Regina Henschel <rb.henschel at t-online.de> wrote:
> Any idea, how I can apply FitToCellSize() to a shape in a unit test?

Here is an sc/ test dispatching an UNO command:

sc/qa/unit/screenshots/screenshots.cxx:302

though this is commented out, but gives you an idea how to get an
SfxViewShell in Calc.

Here is an sd/ test that does the same, and is an active test:

sd/qa/unit/uiimpress.cxx:99

Hopefully this is enough so that you can test your UNO command as well.

Regards,

Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Digital signature
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20191203/024fadd5/attachment.sig>


More information about the LibreOffice mailing list