@@ -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 == controlTypes .ROLE_ARTICLE and not formatConfig ["reportArticles" ])
@@ -101,7 +103,8 @@ def getPresentationCategory(self, ancestors, formatConfig, reason=controlTypes.R
101103 controlTypes .ROLE_MENUBUTTON ,
102104 controlTypes .ROLE_TREEVIEW ,
103105 controlTypes .ROLE_CHECKMENUITEM ,
104- controlTypes .ROLE_RADIOMENUITEM
106+ controlTypes .ROLE_RADIOMENUITEM ,
107+ controlTypes .ROLE_CAPTION ,
105108 )
106109 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 ))
107110 or (role == controlTypes .ROLE_LIST and controlTypes .STATE_READONLY not in states )
@@ -126,6 +129,8 @@ def getPresentationCategory(self, ancestors, formatConfig, reason=controlTypes.R
126129 elif (
127130 role in (
128131 controlTypes .ROLE_BLOCKQUOTE ,
132+ controlTypes .ROLE_GROUPING ,
133+ controlTypes .ROLE_FIGURE ,
129134 controlTypes .ROLE_FRAME ,
130135 controlTypes .ROLE_INTERNALFRAME ,
131136 controlTypes .ROLE_TOOLBAR ,
0 commit comments