Permalink
Browse files

Report current worksheet in excel (PR #6736)

Provide a command to report the name of the worksheet and the cell
location while in MS excel. This can be triggered with `NVDA+numpadDelete` or for laptop layout `NVDA+delete`

Fixes #6613
  • Loading branch information...
feerrenrut committed Jan 31, 2017
1 parent d6c33d1 commit 97b0dd416c9d64398bfad467b1daed641656f68b
Showing with 8 additions and 0 deletions.
  1. +8 −0 source/NVDAObjects/window/excel.py
@@ -987,6 +987,9 @@ def _getFormatFieldAndOffsets(self,offset,formatConfig,calculateOffsets=True):
pass
return formatField,(self._startOffset,self._endOffset)
def _get_locationText(self):
return self.obj.getCellPosition()
class ExcelCell(ExcelBase):
def doAction(self):
@@ -1127,6 +1130,11 @@ def _get_columnNumber(self):
colSpan=1
def getCellPosition(self):
rowAndColumn = self.cellCoordsText
sheet = self.excelWindowObject.ActiveSheet.name
return "Sheet {0}, {1}".format(sheet, rowAndColumn)
def _get_tableID(self):
address=self.excelCellObject.address(1,1,0,1)
ID="".join(address.split('!')[:-1])

0 comments on commit 97b0dd4

Please sign in to comment.