Report the state of cell formatting when using formatting shortcuts in Excel (#14923)
In Excel, when applying formatting to cells, nothing is reported. Instead, in Word, toggling bold, italic or underline is reported.
Description of user facing changes
When using Excel shortcuts to toggle the format of a full cell in Excel, the result is now reported. The following toggle are supported:
• bold: control+b or control+shift+2
• italic: control+I or control+shift+3
• underline: control+U or control+shift+4
• strikethrough: control+shift+5 (Note: did not find any other shortcut for it)
Description of development approach
• As done for Word text, use object model to look at the properties of the cell after the shortcut is executed.
• Copied the polling function of Word's code to check for value changes polling the object model. (I had initially thought that it was not required, but testing on another system, I have found that it was required)
• Implement the scripts on the whole worksheet so that the scripts work either on single cell or on multi-cell selections. Taking advantage that both excelCellObject and excelRangeObject have a font attribute.