|
| static std::optional< ParseDiagnostic > | ParseAndSetAttribute (SVGParserContext &context, SVGElement &element, const xml::XMLQualifiedNameRef &name, std::string_view value) noexcept |
| | Parse an XML attribute and set it on the given element.
|
| static std::optional< ParseDiagnostic > | ApplyParsedAttribute (SVGElement &element, const xml::XMLQualifiedNameRef &name, std::string_view value, bool *consumedAsPresentationAttribute=nullptr) |
| | Apply an XML attribute read by the SVG parser without writing back to source.
|
| static void | RemoveParsedAttribute (SVGElement &element, const xml::XMLQualifiedNameRef &name) |
| | Remove an XML attribute from the SVG projection without writing back to source.
|
| static components::TypedFilterAttributeEdit | ReapplyTypedFilterAttributes (SVGParserContext &context, SVGElement &element, const xml::XMLQualifiedNameRef &editedName) |
| | After editedName was set on or removed from a filter element (see IsFilterElementFamily), parse that attribute's stored value again, or its absence, so its typed state matches a fresh parse of the element.
|
Parses XML attributes and sets applies them to SVGElements.
After editedName was set on or removed from a filter element (see IsFilterElementFamily), parse that attribute's stored value again, or its absence, so its typed state matches a fresh parse of the element.
Other attributes' state, including values set through the typed setters, is not touched, and nothing happens when editedName is not one of the element's type-specific attributes.
- Parameters
-
| context | Parser context; its warning sink receives the attribute's warnings. |
| element | The edited element. |
| editedName | The attribute that was set or removed. |