Files
loongoffice/include/comphelper
Michael Weghorn d9e31f3c82 tdf#156683 a11y: Handle both disposing variants in context wrapper
commit db0044242a897e447988169630ff74e4c8bfecf9
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Wed Sep 6 09:12:23 2023 +0200

        tdf#156683 a11y: Forward when wrapped a11y context is disposing

switched from overriding `disposing()` to overriding
`disposing(const css::lang::EventObject&)` in
`OAccessibleContextWrapperHelper` in order to
make sure that the corresponding entry in the
`AccessibleEventNotifier` client map is removed and
event listeners for the wrapper get notified
(via `AccessibleEventNotifier::revokeClientNotifyDisposing`)
when the wrapped object is disposing.

As Noel points out in [1], the `disposing()`
case should probably still be overriden/handled
and make sure that the wrapped object etc. get
disposed, so disposing one object via the other
works both ways.
(If the wrapped object is disposed, so is the
wrapper. If the wrapper gets disposed, so is
the wrapped object.)

Therefore, add back `OAccessibleContextWrapper::disposing()`
and extract the logic to a separate helper method
that is called from both `disposing` variants.

[1] https://gerrit.libreoffice.org/c/core/+/156592/comments/bb7c24bc_94033649

Change-Id: If15fd1839b222ad94fcbc569842dc43b517d3574
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156620
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-09-06 20:24:16 +02:00
..
2022-08-12 13:24:14 +02:00
2023-08-19 11:15:25 +02:00
2023-03-13 12:21:33 +00:00
2022-05-30 16:00:35 +02:00
2023-07-04 20:19:06 +02:00
2023-07-02 12:09:03 +02:00
2023-04-19 19:18:51 +02:00
2023-04-12 11:21:36 +02:00
2023-03-30 20:03:41 +00:00