Re: Trouble with SdrMeasureObj (dimension line)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Regina,

On Tue, Dec 01, 2020 at 01:25:22PM +0100, Regina Henschel <rb.henschel@xxxxxxxxxxx> 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
_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux