42 #ifndef QCSSPARSER_P_H 43 #define QCSSPARSER_P_H 56 #include <QtCore/QStringList> 57 #include <QtCore/QVector> 58 #include <QtCore/QVariant> 59 #include <QtCore/QPair> 60 #include <QtCore/QSize> 61 #include <QtCore/QMultiHash> 62 #include <QtGui/QFont> 63 #include <QtGui/QPalette> 64 #include <QtGui/QIcon> 65 #include <QtCore/QSharedData> 68 #ifndef QT_NO_CSSPARSER 71 #if defined(Q_OS_VXWORKS) && defined(NONE) 74 #if defined(Q_OS_INTEGRITY) 443 Origin originValue()
const;
444 Repeat repeatValue()
const;
445 Qt::Alignment alignmentValue()
const;
448 int styleFeaturesValue()
const;
450 bool intValue(
int *i,
const char *unit = 0)
const;
451 bool realValue(
qreal *r,
const char *unit = 0)
const;
453 QSize sizeValue()
const;
454 QRect rectValue()
const;
456 QIcon iconValue()
const;
543 MatchNextSelectorIfPreceeds
558 int specificity()
const;
572 bool extractFont(
QFont *font,
int *fontSizeAdjustment);
575 bool extractGeometry(
int *w,
int *h,
int *minw,
int *minh,
int *maxw,
int *maxh);
576 bool extractPosition(
int *
l,
int *t,
int *r,
int *b,
QCss::Origin *, Qt::Alignment *,
578 bool extractBox(
int *margins,
int *paddings,
int *spacing = 0);
582 int extractStyleFeatures();
583 bool extractImage(
QIcon *icon, Qt::Alignment *
a,
QSize *size);
591 void lengthValues(
const Declaration &decl,
int *m);
664 virtual bool nodeNameEquals(
NodePtr node,
const QString& nodeName)
const;
666 virtual bool hasAttributes(
NodePtr node)
const = 0;
669 virtual bool isNullNode(
NodePtr node)
const = 0;
673 virtual void freeNode(
NodePtr node)
const = 0;
745 static QString preprocess(
const QString &input,
bool *hasEscapeSequences = 0);
763 bool parsePseudoPage(
QString *selector);
764 bool parseNextOperator(
Value *value);
771 bool parseElementName(
QString *name);
773 bool parsePseudo(
Pseudo *pseudo);
774 bool parseNextDeclaration(
Declaration *declaration);
777 bool parseTerm(
Value *value);
779 bool parseHexColor(
QColor *col);
780 bool testAndParseUri(
QString *uri);
785 bool testSimpleSelector();
822 return (
index - 1) < symbols.count() ? symbols.at(
index - 1).token :
NONE;
845 #endif // QT_NO_CSSPARSER The QVariant class acts like a union for the most common Qt data types.
const quint64 PseudoClass_Off
The QMultiHash class is a convenience QHash subclass that provides multi-valued hashes.
The QColor class provides colors based on RGB, HSV or CMYK values.
const quint64 PseudoClass_Open
const quint64 PseudoClass_Closed
const quint64 PseudoClass_Last
const quint64 PseudoClass_Enabled
#define QT_END_NAMESPACE
This macro expands to.
const quint64 PseudoClass_Any
ColorRole
The ColorRole enum defines the different symbolic color roles used in current GUIs.
const quint64 PseudoClass_Exclusive
bool parseNextSelector(Selector *sel)
const quint64 PseudoClass_Focus
ColorData(const QColor &col)
const quint64 PseudoClass_Hover
QVector< BasicSelector > basicSelectors
const quint64 PseudoClass_Vertical
const quint64 PseudoClass_Active
const quint64 PseudoClass_Middle
const quint64 PseudoClass_Minimized
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
long ASN1_INTEGER_get ASN1_INTEGER * a
The QString class provides a Unicode character string.
The QVector class is a template class that provides a dynamic array.
const quint64 PseudoClass_Pressed
const quint64 PseudoClass_ReadOnly
QVector< Symbol > symbols
bool parseNextFunction(QString *name, QString *args)
const quint64 PseudoClass_Checked
const quint64 PseudoClass_Unchecked
QExplicitlySharedDataPointer< DeclarationData > d
const Symbol & symbol() const
static QString toString(Register *reg, int type, bool *ok=0)
const quint64 PseudoClass_Horizontal
#define QT_BEGIN_NAMESPACE
This macro expands to.
QMultiHash< QString, StyleRule > idIndex
const quint64 PseudoClass_Unknown
QVector< Pseudo > pseudos
const quint64 PseudoClass_Window
const quint64 PseudoClass_Left
QVector< Selector > selectors
const quint64 PseudoClass_Sibling
The QStringList class provides a list of strings.
const quint64 PseudoClass_Movable
const quint64 PseudoClass_NonExclusive
QVector< StyleRule > styleRules
static QVector< Declaration > declarations(const QVector< StyleRule > &styleRules, const QString &part, quint64 pseudoClass=PseudoClass_Unspecified)
const quint64 PseudoClass_Right
const quint64 PseudoClass_Bottom
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
const quint64 PseudoClass_Selected
bool parseNextMedium(QStringList *media)
QVector< MediaRule > mediaRules
QVector< StyleSheet > styleSheets
const quint64 PseudoClass_Flat
ColorData(QPalette::ColorRole r)
QVector< Declaration > declarations
const quint64 PseudoClass_Alternate
const quint64 PseudoClass_Frameless
bool lookupElementName() const
BrushData(QPalette::ColorRole r)
const quint64 PseudoClass_Editable
The QBrush class defines the fill pattern of shapes drawn by QPainter.
Qt::CaseSensitivity nameCaseSensitivity
const quint64 PseudoClass_OnlyOne
const quint64 PseudoClass_EditFocus
The QSharedData class is a base class for shared data objects.
const quint64 PseudoClass_PreviousSelected
The QFont class specifies a font used for drawing text.
const quint64 PseudoClass_Unspecified
const quint64 PseudoClass_Children
const quint64 PseudoClass_Maximized
bool parseNextSimpleSelector(BasicSelector *basicSel)
QMultiHash< QString, StyleRule > nameIndex
ValueMatchType valueMatchCriterium
const quint64 PseudoClass_Indeterminate
The QRect class defines a rectangle in the plane using integer precision.
#define Q_AUTOTEST_EXPORT
static quint64 pseudoClass(QStyle::State state)
const quint64 PseudoClass_First
QList< QAElement > lookup(const QList< QAInterface > &interfaces)
The QSize class defines the size of a two-dimensional object using integer point precision.
const quint64 PseudoClass_Top
const quint64 PseudoClass_Default
QVector< PageRule > pageRules
const quint64 PseudoClass_Closable
const quint64 PseudoClass_Disabled
QVector< AttributeSelector > attributeSelectors
const quint64 PseudoClass_Floatable
bool parseNextExpr(QVector< Value > *values)
The QMap class is a template class that provides a skip-list-based dictionary.
QVector< ImportRule > importRules
BrushData(const QBrush &br)
const quint64 PseudoClass_On
const quint64 PseudoClass_NextSelected
const quint64 PseudoClass_Item
The QPalette class contains color groups for each widget state.
The QIcon class provides scalable icons in different modes and states.