Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QCss::StyleSelector Class Referenceabstract

#include <qcssparser_p.h>

+ Inheritance diagram for QCss::StyleSelector:
+ Collaboration diagram for QCss::StyleSelector:

Classes

union  NodePtr
 

Public Member Functions

 StyleSelector ()
 
virtual ~StyleSelector ()
 
QList< StyleRulestyleRulesForNode (NodePtr node)
 
QList< DeclarationdeclarationsForNode (NodePtr node, const char *extraPseudo=nullptr)
 
virtual bool nodeNameEquals (NodePtr node, const QString &nodeName) const
 
virtual QString attributeValue (NodePtr node, const QCss::AttributeSelector &aSelector) const =0
 
virtual bool hasAttributes (NodePtr node) const =0
 
virtual QStringList nodeIds (NodePtr node) const
 
virtual QStringList nodeNames (NodePtr node) const =0
 
virtual bool isNullNode (NodePtr node) const =0
 
virtual NodePtr parentNode (NodePtr node) const =0
 
virtual NodePtr previousSiblingNode (NodePtr node) const =0
 
virtual NodePtr duplicateNode (NodePtr node) const =0
 
virtual void freeNode (NodePtr node) const =0
 

Public Attributes

QList< StyleSheetstyleSheets
 
QString medium
 
Qt::CaseSensitivity nameCaseSensitivity
 

Detailed Description

Definition at line 618 of file qcssparser_p.h.

Constructor & Destructor Documentation

◆ StyleSelector()

QCss::StyleSelector::StyleSelector ( )
inline

Definition at line 621 of file qcssparser_p.h.

◆ ~StyleSelector()

StyleSelector::~StyleSelector ( )
virtual

Definition at line 1960 of file qcssparser.cpp.

Member Function Documentation

◆ attributeValue()

virtual QString QCss::StyleSelector::attributeValue ( NodePtr  node,
const QCss::AttributeSelector aSelector 
) const
pure virtual

Implemented in QSvgStyleSelector, and QTextHtmlStyleSelector.

Referenced by nodeIds().

+ Here is the caller graph for this function:

◆ declarationsForNode()

QList< Declaration > StyleSelector::declarationsForNode ( NodePtr  node,
const char *  extraPseudo = nullptr 
)

Definition at line 2183 of file qcssparser.cpp.

References QList< T >::at(), i, QString::isEmpty(), QCss::PseudoClass_Enabled, QCss::PseudoClass_Unspecified, selector, QList< T >::size(), and styleRulesForNode().

Referenced by parseStopNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ duplicateNode()

virtual NodePtr QCss::StyleSelector::duplicateNode ( NodePtr  node) const
pure virtual

◆ freeNode()

virtual void QCss::StyleSelector::freeNode ( NodePtr  node) const
pure virtual

◆ hasAttributes()

virtual bool QCss::StyleSelector::hasAttributes ( NodePtr  node) const
pure virtual

◆ isNullNode()

virtual bool QCss::StyleSelector::isNullNode ( NodePtr  node) const
pure virtual

◆ nodeIds()

QStringList StyleSelector::nodeIds ( NodePtr  node) const
virtual

Reimplemented in QSvgStyleSelector.

Definition at line 1969 of file qcssparser.cpp.

References attributeValue(), and QCss::AttributeSelector::NoMatch.

Referenced by styleRulesForNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nodeNameEquals()

bool StyleSelector::nodeNameEquals ( NodePtr  node,
const QString nodeName 
) const
virtual

Reimplemented in QSvgStyleSelector.

Definition at line 1964 of file qcssparser.cpp.

References nameCaseSensitivity, and nodeNames().

+ Here is the call graph for this function:

◆ nodeNames()

virtual QStringList QCss::StyleSelector::nodeNames ( NodePtr  node) const
pure virtual

Implemented in QTextHtmlStyleSelector, and QSvgStyleSelector.

Referenced by nodeNameEquals(), and styleRulesForNode().

+ Here is the caller graph for this function:

◆ parentNode()

virtual NodePtr QCss::StyleSelector::parentNode ( NodePtr  node) const
pure virtual

◆ previousSiblingNode()

virtual NodePtr QCss::StyleSelector::previousSiblingNode ( NodePtr  node) const
pure virtual

◆ styleRulesForNode()

QList< StyleRule > StyleSelector::styleRulesForNode ( NodePtr  node)

Definition at line 2122 of file qcssparser.cpp.

References QString::at(), Qt::CaseInsensitive, QMultiMap< Key, T >::constBegin(), QMultiMap< Key, T >::constEnd(), QCss::StyleSheet::depth, i, QCss::StyleSheet::idIndex, QString::isEmpty(), it, j, QCss::StyleSheet::mediaRules, medium, nameCaseSensitivity, QCss::StyleSheet::nameIndex, nodeIds(), nodeNames(), QCss::StyleSheet::origin, QList< T >::reserve(), QMultiMap< Key, T >::size(), QCss::StyleSheet::styleRules, styleSheets, and QChar::toLower().

Referenced by declarationsForNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ medium

QString QCss::StyleSelector::medium

Definition at line 644 of file qcssparser_p.h.

Referenced by styleRulesForNode().

◆ nameCaseSensitivity

◆ styleSheets

QList<StyleSheet> QCss::StyleSelector::styleSheets

The documentation for this class was generated from the following files: