sc a11y: Pass OAccessible for ScAccessibleDocument parent

Switch parent param in the ScAccessibleDocument ctor
from the abstract XAccessible UNO interface to the
more concrete OAccessible.

Change-Id: I946317b6b60c499285ab6bd6d223fbfc16af604e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210667
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-09-12 22:12:40 +02:00
parent 1aed2f6287
commit da387990bf
2 changed files with 8 additions and 12 deletions
@@ -1284,14 +1284,12 @@ void ScChildrenShapes::VisAreaChanged() const
pAccShapeData->pAccShape->ViewForwarderChanged();
}
ScAccessibleDocument::ScAccessibleDocument(
const uno::Reference<XAccessible>& rxParent,
ScTabViewShell* pViewShell,
ScSplitPos eSplitPos)
: ImplInheritanceHelper(rxParent),
mpViewShell(pViewShell),
meSplitPos(eSplitPos),
mbCompleteSheetSelected(false)
ScAccessibleDocument::ScAccessibleDocument(const rtl::Reference<comphelper::OAccessible>& rpParent,
ScTabViewShell* pViewShell, ScSplitPos eSplitPos)
: ImplInheritanceHelper(rpParent)
, mpViewShell(pViewShell)
, meSplitPos(eSplitPos)
, mbCompleteSheetSelected(false)
{
maVisArea = GetVisibleArea_Impl();
}
+2 -4
View File
@@ -44,10 +44,8 @@ class ScAccessibleDocument final
public accessibility::IAccessibleViewForwarder
{
public:
ScAccessibleDocument(
const css::uno::Reference<css::accessibility::XAccessible>& rxParent,
ScTabViewShell* pViewShell,
ScSplitPos eSplitPos);
ScAccessibleDocument(const rtl::Reference<comphelper::OAccessible>& rpParent,
ScTabViewShell* pViewShell, ScSplitPos eSplitPos);
void PreInit();