Re: Trouble with SdrMeasureObj (dimension line)

2020-12-01 Thread Miklos Vajna
Hi Regina, On Tue, Dec 01, 2020 at 01:25:22PM +0100, Regina Henschel wrote: > The approach with dispatcher did not work. But after some days and several > failed attempts I found a solution to create the default measure line: > >ScTabViewShell* pTabViewShell = pDocSh->GetBestViewShell(false

Re: Trouble with SdrMeasureObj (dimension line)

2020-12-01 Thread Regina Henschel
Hi Miklos, hi all, Regina Henschel schrieb am 20-Nov-20 um 11:46: Hi Miklos, Miklos Vajna schrieb am 19-Nov-20 um 09:22: Hi Regina, On Wed, Nov 18, 2020 at 11:56:01PM +0100, Regina Henschel wrote: Do you know examples for unit tests with "drag create" and for unit tests with "create defau

Re: Trouble with SdrMeasureObj (dimension line)

2020-11-20 Thread Regina Henschel
Hi Miklos, Miklos Vajna schrieb am 19-Nov-20 um 09:22: Hi Regina, On Wed, Nov 18, 2020 at 11:56:01PM +0100, Regina Henschel 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

Re: Trouble with SdrMeasureObj (dimension line)

2020-11-19 Thread Miklos Vajna
Hi Regina, On Wed, Nov 18, 2020 at 11:56:01PM +0100, Regina Henschel 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

Trouble with SdrMeasureObj (dimension line)

2020-11-18 Thread Regina Henschel
Hi all, I have wondered why a SdrMeasureObj, which is anchored "to cell (resize with cell), does not work in Calc (e.g. tdf#137576). Problems detected so far: (A) TRGetBaseGeometry does not include a rotation angle. So a chain of TRGetBaseGeometry followed by TRSetBaseGeometry does not work.