From dfe90ea98f5ff3cec351c4d63807b29a450ae0e4 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Sat, 19 Sep 2026 00:49:39 +0200 Subject: [PATCH] svx a11y: Pass OAccessible for SvxRectCtlChildAccessibleContext parent Pass the more concrete OAccessible for the parent instead of the abstract XAccessible UNO interface, as the parent is known to be an OAccessible subclass. Change-Id: If32d481b35b1de8efd54b2523047822de084f5a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211187 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- svx/source/accessibility/svxrectctaccessiblecontext.cxx | 9 +++------ svx/source/inc/svxrectctaccessiblecontext.hxx | 9 ++++----- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/svx/source/accessibility/svxrectctaccessiblecontext.cxx b/svx/source/accessibility/svxrectctaccessiblecontext.cxx index 33a0ed99bd8e..f6b82be5f03d 100644 --- a/svx/source/accessibility/svxrectctaccessiblecontext.cxx +++ b/svx/source/accessibility/svxrectctaccessiblecontext.cxx @@ -390,14 +390,11 @@ awt::Rectangle SvxRectCtlAccessibleContext::implGetBounds() } SvxRectCtlChildAccessibleContext::SvxRectCtlChildAccessibleContext( - const Reference& rxParent, - OUString aName, - OUString aDescription, - const tools::Rectangle& rBoundingBox, - tools::Long nIndexInParent ) + const rtl::Reference& rpParent, OUString aName, OUString aDescription, + const tools::Rectangle& rBoundingBox, tools::Long nIndexInParent) : msDescription(std::move( aDescription )) , msName(std::move( aName )) - , mxParent(rxParent) + , mxParent(rpParent) , maBoundingBox( rBoundingBox ) , mnIndexInParent( nIndexInParent ) , mbIsChecked( false ) diff --git a/svx/source/inc/svxrectctaccessiblecontext.hxx b/svx/source/inc/svxrectctaccessiblecontext.hxx index 9031cba259bd..9ba09dbce1b5 100644 --- a/svx/source/inc/svxrectctaccessiblecontext.hxx +++ b/svx/source/inc/svxrectctaccessiblecontext.hxx @@ -123,11 +123,10 @@ class SvxRectCtlChildAccessibleContext final css::accessibility::XAccessibleAction> { public: - SvxRectCtlChildAccessibleContext( - const css::uno::Reference< css::accessibility::XAccessible>& rxParent, - OUString aName, OUString aDescription, - const tools::Rectangle& rBoundingBox, - tools::Long nIndexInParent ); + SvxRectCtlChildAccessibleContext(const rtl::Reference& rpParent, + OUString aName, OUString aDescription, + const tools::Rectangle& rBoundingBox, + tools::Long nIndexInParent); // XAccessibleComponent virtual void SAL_CALL grabFocus() override;