Need help for unit test about undo
Miklos Vajna
vmiklos at collabora.com
Fri Nov 8 08:33:27 UTC 2019
Hi,
On Thu, Nov 07, 2019 at 11:01:33PM +0100, Regina Henschel <rb.henschel at t-online.de> wrote:
> Ok, that contains how to use an UndoManager.
Yes, that was the intention I assume -- tiledrendering is just a suite
that happened to contain that example code. :-)
> But how can I act with the shape, so that an undo-entry is generated?
> UI actions, that produce the error are: changing line or fill attributes,
> switching extrusion on/off, setting "Autofit text" on.
I think the general concept is that if you manipulate the doc model
directly (SdrModel), then you don't get undo/redo. In contrast, if you
manipulate the doc model via UNO or the UI shells, then you get it.
> And would it be correct to add my test to that file? My topic is different
> from 'tiledrendering'.
If you want to test Impress undo/redo, my first guess would be
sd/qa/unit/uiimpress.cxx.
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/20191108/44c7b809/attachment.sig>
More information about the LibreOffice
mailing list