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 <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-09-20 22:13:16 +02:00
parent 9a9fdf2ff6
commit dfe90ea98f
2 changed files with 7 additions and 11 deletions
@@ -390,14 +390,11 @@ awt::Rectangle SvxRectCtlAccessibleContext::implGetBounds()
}
SvxRectCtlChildAccessibleContext::SvxRectCtlChildAccessibleContext(
const Reference<XAccessible>& rxParent,
OUString aName,
OUString aDescription,
const tools::Rectangle& rBoundingBox,
tools::Long nIndexInParent )
const rtl::Reference<comphelper::OAccessible>& 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 )
@@ -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<comphelper::OAccessible>& rpParent,
OUString aName, OUString aDescription,
const tools::Rectangle& rBoundingBox,
tools::Long nIndexInParent);
// XAccessibleComponent
virtual void SAL_CALL grabFocus() override;