add EditViewCallbacks handler to support updating scrollbar state

Desktop / LibreOffice - Caolán McNamara [redhat.com] - 8 October 2020 12:29 UTC

the problem is that since...

commit 319d8be9dad248a3ced5ac311e0b20ec3ed4cef7 Date: Tue Nov 22 16:21:20 2011 +0000

tweak experimental gsoc multiline input bar, better resizing, enable scroll

that uses SetNofifyHdl to try and keep its scrollbar up to date, but that SetNotifyHdl is also used by a11y to listen to the editengine and only one can be set at a time, so with a11y enabled (the gtk default case) either a11y works or the multiline scroll doesn't or vice versa.

Seeing as the a11y case is the very complicated case, leave a11y alone and plot a route to disentangle the straightforward calc multiline edit from a11y.

Change-Id: Iedc7ffc39940354e8a05c0620944f617eee6b550 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104080

e67a755e6d4e add EditViewCallbacks handler to support updating scrollbar state
editeng/source/editeng/editeng.cxx | 4 +++-
editeng/source/editeng/impedit.cxx | 12 ++++++++++++
editeng/source/editeng/impedit.hxx | 2 ++
editeng/source/editeng/impedit3.cxx | 9 +++++++++
include/editeng/editview.hxx | 5 +++++
5 files changed, 31 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share