Trouble with SdrMeasureObj (dimension line)
vmiklos at collabora.com
Tue Dec 1 13:53:50 UTC 2020
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
> 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.
More information about the LibreOffice