Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
syntactic-decomposition.h File Reference

Parsing utils capable of producing a rudimentary syntactic decomposition of a CSS stylesheet. More...

Go to the source code of this file.

Classes

struct  Inkscape::CSS::RuleStatement
 A decomposed CSS rule statement, consisting of a selector (which can be complex), and the associated set of rules. More...
 
struct  Inkscape::CSS::BlockAtStatement
 A decomposed block -statement, consisting of the statement and the contents of the associated block. More...
 
class  Inkscape::CSS::SyntacticDecomposition
 A partial syntactic decomposition of a CSS stylesheet into syntactic elements. More...
 

Namespaces

namespace  Inkscape
 Helper class to stream background task notifications as a series of messages.
 
namespace  Inkscape::CSS
 

Concepts

concept  Inkscape::CSS::SyntacticElementHandler
 A SyntacticElementHandler is a callable which can accept all possible variant types of a syntactic element, assuming that they are passed by const &.
 

Typedefs

using CRSelector = _CRSelector
 
using Inkscape::CSS::OtherStatement = std::string
 Another CSS statement, currently not handled in a special way; for example @charset.
 
using Inkscape::CSS::SyntacticElement = std::variant< RuleStatement, BlockAtStatement, OtherStatement >
 A syntactic element of a CSS stylesheet is either a rule set statement, a block -statement, or some other, "generic" statement.
 

Functions

std::string Inkscape::CSS::selector_to_validated_string (CRSelector const &croco_selector)
 Convert a CSS selector to a string, performing a fix-up if needed.
 

Detailed Description

Parsing utils capable of producing a rudimentary syntactic decomposition of a CSS stylesheet.

Definition in file syntactic-decomposition.h.

Typedef Documentation

◆ CRSelector

Definition at line 21 of file syntactic-decomposition.h.