Skip to main content

is_fill_choice_element

Function is_fill_choice_element 

Source
pub fn is_fill_choice_element(start: &BytesStart<'_>) -> bool
Expand description

Parses one already-matched EG_FillProperties choice element (<a:noFill/>, <a:solidFill>, <a:gradFill>, <a:pattFill>, or <a:blipFill>) into a Fill, given the caller has already read its own Start/Empty event and knows (e.g. via is_fill_choice_element) that it is one — for a host that mixes a bare fill choice among other, individually-matched sibling elements at the same nesting level, so can’t hand the whole scan over to read_fill (which skips anything that isn’t a fill choice, silently discarding those other siblings). PresentationML table cell properties (<a:tcPr>’s own trailing fill choice, sitting alongside <a:lnL>/<a:lnR>/<a:lnT>/<a:lnB>powerpoint-ooxml’s own TableCellProperties, point 8) is exactly this case.