Skip to content

Commit 6cccd5d

Browse files
Merge 377ac92 into 9cf9251
2 parents 9cf9251 + 377ac92 commit 6cccd5d

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

source/NVDAObjects/IAccessible/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,8 @@ def _get_positionInfo(self):
14851485
try:
14861486
info={}
14871487
info["level"],info["similarItemsInGroup"],info["indexInGroup"]=self.IAccessibleObject.groupPosition
1488+
if not info["level"]:
1489+
info["level"] = self.IA2Attributes["level"]
14881490
# Object's with an IAccessibleTableCell interface should not expose indexInGroup/similarItemsInGroup as the cell's 2d info is much more useful.
14891491
if self._IATableCell:
14901492
del info['indexInGroup']

source/appModules/soffice.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ class SymphonyText(IAccessible, EditableText):
222222
TextInfo = SymphonyTextInfo
223223

224224
def _get_positionInfo(self):
225+
# LibreOffice versions >= 5.0 report the "level" attribute that's
226+
# handled in the base class, but Apache OpenOffice doesn't,
227+
# so check for the custom "heading-level" attribute first
225228
level = self.IA2Attributes.get("heading-level")
226229
if level:
227230
return {"level": int(level)}

user_docs/en/changes.t2t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Users of Poedit 1 are encouraged to update to Poedit 3 if they want to rely on e
8888
- Announcement of the status bar using the ``NVDA+end`` keyboard shortcut now also works for dialogs in LibreOffice version 24.2 and newer. (#15591, @michaelweghorn)
8989
- All expected text attributes are now supported in LibreOffice versions 24.2 and above.
9090
This makes the announcement of spelling errors work when announcing a line in Writer. (#15648, @michaelweghorn)
91+
- Announcement of heading levels now also works for LibreOffice versions 24.2 and newer. (#15881, @michaelweghorn)
9192
-
9293
- Microsoft Office:
9394
- In Excel with UIA disabled, braille is updated, and the active cell content is spoken, when ``control+y``, ``control+z`` or ``alt+backspace`` is pressed. (#15547)

0 commit comments

Comments
 (0)