spreadsheet_intelligence.parsers.theme.theme_element_parser package#
Submodules#
spreadsheet_intelligence.parsers.theme.theme_element_parser.theme_parser module#
- class spreadsheet_intelligence.parsers.theme.theme_element_parser.theme_parser.ThemeParser(namespaces: dict[str, str])[source]#
Bases:
BaseParser
Parser for theme elements in a spreadsheet.
This class is responsible for parsing XML elements related to themes and converting them into Theme objects.
- namespaces#
A dictionary of XML namespaces.
- Type:
dict[str, str]
- parse(element: Element) Theme [source]#
Parses a theme element and returns a Theme object.
- Parameters:
element (ET.Element) – The XML element to parse.
- Returns:
The parsed Theme object.
- Return type:
- _parse_clr_scheme(element: Element) ClrScheme [source]#
Parses a color scheme element and returns a ClrScheme object.
- Parameters:
element (ET.Element) – The XML element representing the color scheme.
- Returns:
The parsed ClrScheme object.
- Return type:
- _abc_impl = <_abc._abc_data object>#