Skip to content

Commit fbf05fb

Browse files
authored
Merge bfe8db0 into 81d81dc
2 parents 81d81dc + bfe8db0 commit fbf05fb

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

source/NVDAObjects/UIA/wordDocument.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from UIAUtils import *
1919
from . import UIA, UIATextInfo
2020
from NVDAObjects.window.winword import WordDocument as WordDocumentBase
21+
from scriptHandler import script
2122

2223
"""Support for Microsoft Word via UI Automation."""
2324

@@ -302,6 +303,14 @@ def _iterNodesByType(self,nodeType,direction="next",pos=None):
302303

303304
ElementsListDialog=ElementsListDialog
304305

306+
@script(
307+
# Translators: the description for the toggleScreenLayout script.
308+
description = _("Toggles on and off if the screen layout is preserved while rendering the document content"),
309+
gesture ="kb:NVDA+v",
310+
)
311+
def script_toggleScreenLayout(self, gesture):
312+
ui.message(_("Not supported in this document."))
313+
305314
class WordDocumentNode(UIA):
306315
TextInfo=WordDocumentTextInfo
307316

source/NVDAObjects/window/winword.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,14 @@ def script_previousColumn(self,gesture):
11511151
"kb:shift+pageDown":None,
11521152
}
11531153

1154+
@script(
1155+
# Translators: the description for the toggleScreenLayout script.
1156+
description = _("Toggles on and off if the screen layout is preserved while rendering the document content"),
1157+
gesture ="kb:NVDA+v",
1158+
)
1159+
def script_toggleScreenLayout(self, gesture):
1160+
ui.message(_("Not supported in this document."))
1161+
11541162
class WordDocument(Window):
11551163

11561164
def winwordColorToNVDAColor(self,val):

0 commit comments

Comments
 (0)