@@ -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" ])
@@ -125,6 +127,7 @@ def getPresentationCategory(self, ancestors, formatConfig, reason=controlTypes.R
125127 elif (
126128 role in (
127129 controlTypes .ROLE_BLOCKQUOTE ,
130+ controlTypes .ROLE_GROUPING ,
128131 controlTypes .ROLE_FRAME ,
129132 controlTypes .ROLE_INTERNALFRAME ,
130133 controlTypes .ROLE_TOOLBAR ,
0 commit comments