The StyleParser class parses a data stream into a StylSheet.
Publicly inherits QObject.
StyleParser | ( StyleSheet* styleSheet ); | |
~StyleParser | ( ); |
void | data | ( const char* bytes, int length ); |
void | done | ( ); |
void | endOfData | ( ); |
void | token | ( Token token, QString text ); |
void | stateDeclAttr | ( Token token, QString text ); |
void | stateDeclValue | ( Token token, QString text ); |
void | stateSelector | ( Token token, QString text ); |
void | stateSelectorAttrs | ( Token token, QString text ); |
void | done | ( StyleSheet* styleSheet ); |
void | fwdData | ( const char* bytes, int length ); |
void | fwdEndOfData | ( ); |
QString | _attrName; |
QString | _attrValue; |
DisplayProto(¨ | _displayProto; |
Style* | _style; |
StyleSheet* | _styleSheet; |
Create a new StyleParser for the given style sheet. Create a StyleLexer to tokenize the input stream.
Forward the data signals to the StyleLexer.
Process any remaining tokens, and die.
Forward the endOfData signal to the StyleLexer.
Process a token from the StylLexer.
Accumulate a list of elements that will have a group of styles applied to them.
This signal is emitted after the parser has finished.
This signal is used to forward the data signals to the StyleLexer.
This signal is used to forward the endOfData signal to the StyleLexer.