Trouble with SdrMeasureObj (dimension line)
vmiklos at collabora.com
Thu Nov 19 08:22:16 UTC 2020
On Wed, Nov 18, 2020 at 11:56:01PM +0100, Regina Henschel <rb.henschel at t-online.de> wrote:
> Do you know examples for unit tests with "drag create" and for unit tests
> with "create default objects"?
I'm not sure we have such tests. But it does not seem too problematic to
create one. Here is how I would start:
I think the CreateDefaultObject() call in
sd::DrawViewShell::FuPermanent() it the place where such default objects
are created in the Draw/Impress case.
You could put a breakpoint there and see how it's called, what higher
level API is there that could you call from cppunit. E.g. SdrView has
SdrDragView::BegDragObj() and SdrDragView::EndDragObj(), possibly those
could be used for this purpose.
More information about the LibreOffice