nvda
2bf1f71d - UIA text formatting: support paragraph indenting attributes (#12908)

Commit
4 years ago
UIA text formatting: support paragraph indenting attributes (#12908) Fixes #12899 Summary of the issue: When NVDA accessed Microsoft Word documents with the Word object model, it was able to report paragraph indenting. If the user configures NvDA to access MS Word via UIA, ro it is used by default in MS Word build 13901 or higher, paragraph indenting is no longer reported. Description of how this pull request fixes the issue: Report paragraph indenting in UIA text controls (including MS Word documents) by fetching and processing the appropriate UIA text attribute values. These include: indentationFirstLine, indentationLeading and indentationTrailing. These values are all given by the UIA provider in points (1/72 of an inch) thus NvDA converts these to either inches or centermetres first. this pr also adds a new useImperialMeasurements function to languageHandler which returns true if imperial measuremts (inches) should be used according to the user's current Regional preferences, otherwise metric (centermetres).
Parents
Loading