https://bugs.documentfoundation.org/show_bug.cgi?id=170796

--- Comment #13 from Michael <[email protected]> ---
I found a few other lines where AccessibleContext still works in LO 26.2. It
seems to depend on the object, but you probably know that. It fails if the
object is the window. I just offer this as an FYI.

GetAccessibleSpreadsheet=FindAccessibleRole(oAccDoc.AccessibleContext,
58).AccessibleContext ' 58 TABLE 

================================================
In Function(FindAccessibleRole(oAccDoc.AccessibleContext, 58)) As Object

oAccChild=oAccContext.getAccessibleChild(i).AccessibleContext

=================================================

In Function FindAccessibleRoot(ByVal oAccContext) As Object

oAccParent=oAccParent.AccessibleContext.AccessibleParent

================================================

In Function GetAccessibleCell(ByVal oDoc, ByVal oCell) As Object
GetAccessibleCell=oAccSpreadsheet.getAccessibleCellAt(oCell.CellAddress.Row, 

oCell.CellAddress.Column).AccessibleContext


================================================================


The three lines that needed getProperty("XAccessible") in place of
AccessibleContext were:

oPosw =
FindAccessibleRoot(oWindow.getProperty("XAccessible")).AccessibleContext.LocationOnScreen

oAccDoc=FindAccessibleRole(oDoc.CurrentController.ComponentWindow.getProperty("XAccessible"),
84)   ' 84 DOCUMENT_SPREADSHEET

getPositionXY = posP.Y * zoom + .VisibleAreaOnScreen.Y - posW.Y +
oWindow.getProperty("XAccessible").Location.Y

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to