Skip to content

Commit

Permalink
Report current worksheet in excel (PR #6736)
Browse files Browse the repository at this point in the history
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 97b0dd4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/NVDAObjects/window/excel.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 97b0dd4

Please sign in to comment.