@@ -62,11 +62,13 @@ def getPresentationCategory(self, ancestors, formatConfig, reason=controlTypes.R
6262 table = None
6363 if not table or (not formatConfig ["includeLayoutTables" ] and table .get ("table-layout" , None )) or table .get ('isHidden' ,False ):
6464 return self .PRESCAT_LAYOUT
65+ name = self .get ("name" )
6566 landmark = self .get ("landmark" )
6667 if reason in (controlTypes .REASON_CARET , controlTypes .REASON_SAYALL , controlTypes .REASON_FOCUS ) and (
6768 (role == controlTypes .ROLE_LINK and not formatConfig ["reportLinks" ])
6869 or (role == controlTypes .ROLE_HEADING and not formatConfig ["reportHeadings" ])
6970 or (role == controlTypes .ROLE_BLOCKQUOTE and not formatConfig ["reportBlockQuotes" ])
71+ or (role == controlTypes .ROLE_GROUPING and (not name or not formatConfig ["reportGroupings" ]))
7072 or (role in (controlTypes .ROLE_TABLE , controlTypes .ROLE_TABLECELL , controlTypes .ROLE_TABLEROWHEADER , controlTypes .ROLE_TABLECOLUMNHEADER ) and not formatConfig ["reportTables" ])
7173 or (role in (controlTypes .ROLE_LIST , controlTypes .ROLE_LISTITEM ) and controlTypes .STATE_READONLY in states and not formatConfig ["reportLists" ])
7274 or (role in (controlTypes .ROLE_FRAME , controlTypes .ROLE_INTERNALFRAME ) and not formatConfig ["reportFrames" ])
@@ -100,7 +102,8 @@ def getPresentationCategory(self, ancestors, formatConfig, reason=controlTypes.R
100102 controlTypes .ROLE_MENUBUTTON ,
101103 controlTypes .ROLE_TREEVIEW ,
102104 controlTypes .ROLE_CHECKMENUITEM ,
103- controlTypes .ROLE_RADIOMENUITEM
105+ controlTypes .ROLE_RADIOMENUITEM ,
106+ controlTypes .ROLE_CAPTION ,
104107 )
105108 or (role == controlTypes .ROLE_EDITABLETEXT and controlTypes .STATE_MULTILINE not in states and (controlTypes .STATE_READONLY not in states or controlTypes .STATE_FOCUSABLE in states ))
106109 or (role == controlTypes .ROLE_LIST and controlTypes .STATE_READONLY not in states )
@@ -125,6 +128,8 @@ def getPresentationCategory(self, ancestors, formatConfig, reason=controlTypes.R
125128 elif (
126129 role in (
127130 controlTypes .ROLE_BLOCKQUOTE ,
131+ controlTypes .ROLE_GROUPING ,
132+ controlTypes .ROLE_FIGURE ,
128133 controlTypes .ROLE_FRAME ,
129134 controlTypes .ROLE_INTERNALFRAME ,
130135 controlTypes .ROLE_TOOLBAR ,
0 commit comments