Trouble with SdrMeasureObj (dimension line)
Miklos Vajna
vmiklos at collabora.com
Tue Dec 1 13:53:50 UTC 2020
Hi Regina,
On Tue, Dec 01, 2020 at 01:25:22PM +0100, Regina Henschel <rb.henschel at t-online.de> 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);
> SfxRequest aReq(pTabViewShell->GetViewFrame(), SID_DRAW_MEASURELINE);
> aReq.SetModifier(8192); // Ctrl
> pTabViewShell->ExecDraw(aReq);
>
> I had seen the magic number "8192" in uitest
Nice find. :-)
> sw/qa/uitest/writer_tests7/tdf130629.py and in Visual Studio. There might be
> a "speaking" define, I don't know.
That would be KEY_MOD1 in include/vcl/keycodes.hxx, I think.
Regards,
Miklos
More information about the LibreOffice
mailing list