![]() |
Qt 6.x
The Qt SDK
|
#include "qplatformdefs.h"
#include "qsvghandler_p.h"
#include "qsvgtinydocument_p.h"
#include "qsvgstructure_p.h"
#include "qsvggraphics_p.h"
#include "qsvgnode_p.h"
#include "qsvgfont_p.h"
#include "qpen.h"
#include "qpainterpath.h"
#include "qbrush.h"
#include "qcolor.h"
#include "qtextformat.h"
#include "qlist.h"
#include "qfileinfo.h"
#include "qfile.h"
#include "qdir.h"
#include "qdebug.h"
#include "qmath.h"
#include "qnumeric.h"
#include <qregularexpression.h>
#include "qtransform.h"
#include "qvarlengtharray.h"
#include "private/qmath_p.h"
#include "float.h"
#include <cmath>
Go to the source code of this file.
Classes | |
struct | QSvgAttributes |
class | QSvgStyleSelector |
Macros | |
#define | QT_INHERIT QLatin1String(qt_inherit_text) |
#define | NOOP qDebug()<<"Operation: "<<op<<" is not implemented" |
Typedefs | |
typedef QSvgNode *(* | FactoryMethod) (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *) |
typedef bool(* | ParseMethod) (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *) |
typedef QSvgStyleProperty *(* | StyleFactoryMethod) (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *) |
typedef bool(* | StyleParseMethod) (QSvgStyleProperty *, const QXmlStreamAttributes &, QSvgHandler *) |
Enumerations | |
enum | FontSizeSpec { XXSmall , XSmall , Small , Medium , Large , XLarge , XXLarge , FontSizeNone , FontSizeValue } |
Variables | |
static QT_BEGIN_NAMESPACE const char * | qt_inherit_text = "inherit" |
static const char * | QSvgStyleSelector_nodeString [] |
static const qreal | sizeTable [] |
static const int | unfinishedElementsLimit = 2048 |
#define NOOP qDebug()<<"Operation: "<<op<<" is not implemented" |
#define QT_INHERIT QLatin1String(qt_inherit_text) |
Definition at line 39 of file qsvghandler.cpp.
typedef QSvgNode *(* FactoryMethod) (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *) |
Definition at line 3405 of file qsvghandler.cpp.
typedef bool(* ParseMethod) (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *) |
Definition at line 3477 of file qsvghandler.cpp.
typedef QSvgStyleProperty *(* StyleFactoryMethod) (QSvgNode *, const QXmlStreamAttributes &, QSvgHandler *) |
Definition at line 3527 of file qsvghandler.cpp.
typedef bool(* StyleParseMethod) (QSvgStyleProperty *, const QXmlStreamAttributes &, QSvgHandler *) |
Definition at line 3556 of file qsvghandler.cpp.
enum FontSizeSpec |
Enumerator | |
---|---|
XXSmall | |
XSmall | |
Small | |
Medium | |
Large | |
XLarge | |
XXLarge | |
FontSizeNone | |
FontSizeValue |
Definition at line 1254 of file qsvghandler.cpp.
|
static |
Definition at line 853 of file qsvghandler.cpp.
References QStringView::isEmpty(), ok, qMax(), qMin(), resolveColor(), and toDouble().
Referenced by createSolidColorNode(), parseBaseGradient(), parseColor(), and parseStopNode().
|
inlinestatic |
Definition at line 903 of file qsvghandler.cpp.
References QSvgHandler::LT_PERCENT, ok, parseLength(), and str.
Referenced by createLinearGradientNode(), and parseStopNode().
|
static |
Definition at line 932 of file qsvghandler.cpp.
References QSvgHandler::LT_CM, QSvgHandler::LT_IN, QSvgHandler::LT_MM, QSvgHandler::LT_OTHER, QSvgHandler::LT_PC, QSvgHandler::LT_PERCENT, QSvgHandler::LT_PT, and QSvgHandler::LT_PX.
Referenced by createImageNode(), createRectNode(), createSvgNode(), createTextNode(), createUseNode(), and parseFont().
|
static |
Definition at line 2507 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findGraphicsFactory().
|
static |
Definition at line 2523 of file qsvghandler.cpp.
References parent, rect, toDouble(), and QXmlStreamAttributes::value().
Referenced by findGraphicsFactory().
|
static |
Definition at line 2541 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findGroupFactory().
|
static |
Definition at line 2566 of file qsvghandler.cpp.
References ellipse, parent, rect, rx(), ry(), toDouble(), and QXmlStreamAttributes::value().
Referenced by findGraphicsFactory().
|
static |
Definition at line 2584 of file qsvghandler.cpp.
References QSvgTinyDocument::addSvgFont(), QSvgNode::DOC, font, QString::isEmpty(), parent, someId(), QSvgTinyDocument::svgFont(), toDouble(), and QXmlStreamAttributes::value().
Referenced by findStyleFactoryMethod().
|
static |
Definition at line 2684 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findGroupFactory().
|
static |
Definition at line 2723 of file qsvghandler.cpp.
References QFileInfo::absoluteDir(), QDir::absoluteFilePath(), convertToPixels(), QSvgHandler::device(), file, QFile::fileName(), QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QByteArray::fromBase64(), QImage::fromData(), info, QString::isEmpty(), QUrl::isRelative(), QString::lastIndexOf(), QString::mid(), parent, parseLength(), qCDebug, qCWarning, QString::startsWith(), toDouble(), QString::toLatin1(), QStringView::toString(), QString::trimmed(), url, and QXmlStreamAttributes::value().
Referenced by findGraphicsFactory().
|
static |
Definition at line 2871 of file qsvghandler.cpp.
References QGradient::ComponentInterpolation, convertToNumber(), QSvgNode::DOC, QSvgNode::parent(), parseBaseGradient(), QGradient::setInterpolationMode(), QSvgNode::type(), and QXmlStreamAttributes::value().
Referenced by findStyleFactoryMethod().
|
static |
Definition at line 2791 of file qsvghandler.cpp.
References line, parent, toDouble(), and QXmlStreamAttributes::value().
Referenced by findGraphicsFactory().
|
static |
Definition at line 2937 of file qsvghandler.cpp.
References parent, parsePathDataFast(), qCWarning, QPainterPath::setFillRule(), QXmlStreamAttributes::value(), and Qt::WindingFill.
Referenced by findGraphicsFactory().
|
static |
Definition at line 2952 of file qsvghandler.cpp.
References QString::constData(), i, parent, parseNumbersList(), QList< T >::size(), QStringView::toString(), and QXmlStreamAttributes::value().
Referenced by findGraphicsFactory().
|
static |
Definition at line 2968 of file qsvghandler.cpp.
References QString::constData(), i, line, parent, parseNumbersList(), QList< T >::size(), QStringView::toString(), and QXmlStreamAttributes::value().
Referenced by findGraphicsFactory().
|
static |
Definition at line 2993 of file qsvghandler.cpp.
References QGradient::ComponentInterpolation, QStringView::isEmpty(), parseBaseGradient(), QGradient::setInterpolationMode(), toDouble(), and QXmlStreamAttributes::value().
Referenced by findStyleFactoryMethod().
|
static |
Definition at line 3032 of file qsvghandler.cpp.
References convertToPixels(), QRectF::height(), QRectF::isEmpty(), ok, parent, parseLength(), rect, rx(), ry(), toDouble(), QXmlStreamAttributes::value(), and QRectF::width().
Referenced by findGraphicsFactory().
|
static |
Definition at line 3101 of file qsvghandler.cpp.
References constructColor(), QStringView::isEmpty(), parent, Q_UNUSED, and QXmlStreamAttributes::value().
Referenced by findStyleFactoryMethod().
|
static |
Definition at line 913 of file qsvghandler.cpp.
References QStringView::at(), font, QStringView::isEmpty(), parsePathDataFast(), toDouble(), QXmlStreamAttributes::value(), and Qt::WindingFill.
Referenced by parseGlyphNode(), and parseMissingGlyphNode().
|
static |
Definition at line 3221 of file qsvghandler.cpp.
References convertToPixels(), QString::isEmpty(), QStringView::isEmpty(), QSvgHandler::LT_PERCENT, QSvgHandler::LT_PT, QSvgHandler::LT_PX, parent, parseLength(), Q_UNUSED, QString::replace(), QSvgHandler::setDefaultCoordinateSystem(), QSvgTinyDocument::setHeight(), QSvgTinyDocument::setViewBox(), QSvgTinyDocument::setWidth(), Qt::SkipEmptyParts, QString::split(), QStringView::toString(), and QXmlStreamAttributes::value().
Referenced by findGroupFactory().
|
static |
Definition at line 3282 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findGroupFactory().
|
static |
Definition at line 3318 of file qsvghandler.cpp.
References createTextNode(), parent, parseLength(), QSvgText::setTextArea(), and QXmlStreamAttributes::value().
Referenced by findGraphicsFactory().
|
static |
Definition at line 3301 of file qsvghandler.cpp.
References convertToPixels(), parent, parseLength(), text, and QXmlStreamAttributes::value().
Referenced by createTextAreaNode(), and findGraphicsFactory().
|
static |
Definition at line 3332 of file qsvghandler.cpp.
References parent.
Referenced by findGraphicsFactory().
|
static |
Definition at line 3347 of file qsvghandler.cpp.
References convertToPixels(), QSvgNode::DEFS, QSvgNode::DOC, QSvgNode::G, QString::isEmpty(), QStringView::isNull(), parent, parseLength(), qCWarning, qPrintable, QString::remove(), QSvgNode::SWITCH, QStringView::toString(), and QXmlStreamAttributes::value().
Referenced by findGraphicsFactory().
|
static |
Definition at line 3397 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findGraphicsFactory().
|
static |
Definition at line 2016 of file qsvghandler.cpp.
References parseCSStoXMLAttrs(), parseStyle(), QCss::StyleSelector::NodePtr::ptr, and selector.
Referenced by QSvgHandler::startElement().
|
inlinestatic |
Definition at line 2178 of file qsvghandler.cpp.
References QSvgNode::BlockMode, QSvgNode::CompactMode, QSvgNode::InheritMode, QSvgNode::InlineMode, QSvgNode::InlineTableMode, QSvgNode::ListItemMode, QSvgNode::MarkerMode, QSvgNode::NoneMode, QT_INHERIT, QSvgNode::RunInMode, str, QSvgNode::TableCaptionMode, QSvgNode::TableCellMode, QSvgNode::TableColumnGroupMode, QSvgNode::TableColumnMode, QSvgNode::TableFooterGroupMode, QSvgNode::TableHeaderGroupMode, QSvgNode::TableMode, QSvgNode::TableRowGroupMode, and QSvgNode::TableRowMode.
Referenced by parseOthers().
|
static |
Definition at line 3430 of file qsvghandler.cpp.
References createAnimationNode(), createCircleNode(), createEllipseNode(), createImageNode(), createLineNode(), createPathNode(), createPolygonNode(), createPolylineNode(), createRectNode(), createTextAreaNode(), createTextNode(), createTspanNode(), createUseNode(), createVideoNode(), and QStringView::mid().
Referenced by QSvgHandler::startElement().
|
static |
Definition at line 3407 of file qsvghandler.cpp.
References createDefsNode(), createGNode(), createSvgNode(), createSwitchNode(), and QStringView::mid().
Referenced by QSvgHandler::startElement().
|
static |
Definition at line 3531 of file qsvghandler.cpp.
References createFontNode(), createLinearGradientNode(), createRadialGradientNode(), createSolidColorNode(), and QStringView::mid().
Referenced by QSvgHandler::startElement().
|
static |
Definition at line 3560 of file qsvghandler.cpp.
References QStringView::mid(), parseFontFaceNameNode(), parseFontFaceNode(), parseFontFaceSrcNode(), parseFontFaceUriNode(), parseGlyphNode(), parseMissingGlyphNode(), and parseStopNode().
Referenced by QSvgHandler::startElement().
|
static |
Definition at line 3479 of file qsvghandler.cpp.
References QStringView::mid(), parseAimateMotionNode(), parseAnchorNode(), parseAnimateColorNode(), parseAnimateNode(), parseAnimateTransformNode(), parseAudioNode(), parseDescNode(), parseDiscardNode(), parseForeignObjectNode(), parseHandlerNode(), parseHkernNode(), parseMetadataNode(), parseMpathNode(), parsePrefetchNode(), parseScriptNode(), parseSetNode(), parseStyleNode(), parseTbreakNode(), and parseTitleNode().
Referenced by QSvgHandler::startElement().
|
static |
Definition at line 1262 of file qsvghandler.cpp.
References QStringView::at(), FontSizeNone, FontSizeValue, Large, Medium, Small, QChar::unicode(), XLarge, XSmall, XXLarge, and XXSmall.
Referenced by parseFont().
Definition at line 754 of file qsvghandler.cpp.
References QChar::isSpace(), and url.
Referenced by parseBrush(), parsePen(), and styleFromUrl().
|
inlinestatic |
Definition at line 569 of file qsvghandler.cpp.
Referenced by parseNumbersArray(), parseNumbersList(), and toDouble().
|
inlinestatic |
Definition at line 66 of file qsvghandler.cpp.
References prefixMessage(), QByteArrayLiteral, and toLocal8Bit().
|
inlinestatic |
Definition at line 61 of file qsvghandler.cpp.
References prefixMessage(), QByteArrayLiteral, and QString::toLocal8Bit().
Referenced by QSvgHandler::startElement().
|
static |
Definition at line 2394 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 2304 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 2341 of file qsvghandler.cpp.
References begin(), colors, QString::constBegin(), QString::constEnd(), QString::isEmpty(), ok, parent, parseClockValue(), resolveColor(), QSvgHandler::setAnimPeriod(), QSvgAnimateColor::setArgs(), QSvgAnimateColor::setFreeze(), QSvgAnimateColor::setRepeatCount(), QString::size(), someId(), QString::split(), str, toDouble(), QStringView::toString(), and QXmlStreamAttributes::value().
Referenced by findUtilFactory().
|
static |
Definition at line 2312 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 2410 of file qsvghandler.cpp.
References QList< T >::append(), begin(), QString::constData(), QSvgAnimateTransform::Empty, i, QString::isEmpty(), ok, parent, parseClockValue(), parseNumberTriplet(), QSvgAnimateTransform::Replace, QSvgAnimateTransform::Rotate, QSvgAnimateTransform::Scale, QSvgHandler::setAnimPeriod(), QSvgAnimateTransform::setArgs(), QSvgAnimateTransform::setFreeze(), QSvgAnimateTransform::setRepeatCount(), QList< T >::size(), QSvgAnimateTransform::SkewX, QSvgAnimateTransform::SkewY, someId(), QSvgAnimateTransform::Sum, toDouble(), QStringView::toString(), QSvgAnimateTransform::Translate, typeStr(), and QXmlStreamAttributes::value().
Referenced by findUtilFactory().
|
static |
Definition at line 2515 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 2810 of file qsvghandler.cpp.
References constructColor(), QSvgHandler::document(), QSvgStyleProperty::GRADIENT, QSvgGradientStyle::gradientStopsSet(), QString::isEmpty(), QStringView::isEmpty(), QGradient::ObjectMode, QGradient::PadSpread, parseTransformationMatrix(), QSvgHandler::popColor(), QSvgHandler::pushColor(), QSvgGradientStyle::qgradient(), QSvgGradientStyle::qtransform(), QGradient::ReflectSpread, QGradient::RepeatSpread, QGradient::setCoordinateMode(), QSvgGradientStyle::setGradientStopsSet(), QGradient::setSpread(), QSvgGradientStyle::setStopLink(), QGradient::setStops(), QSvgGradientStyle::setTransform(), QSvgGradientStyle::stopLink(), QGradient::stops(), QSvgNode::styleProperty(), QStringView::toString(), QSvgStyleProperty::type(), and QXmlStreamAttributes::value().
Referenced by createLinearGradientNode(), and createRadialGradientNode().
|
static |
Definition at line 978 of file qsvghandler.cpp.
References QSvgNode::appendStyleProperty(), QSvgAttributes::fill, QSvgAttributes::fillOpacity, QSvgAttributes::fillRule, QSvgStyleProperty::GRADIENT, QSvgAttributes::id, idFromUrl(), QStringView::isEmpty(), QStringView::mid(), Qt::NoBrush, Qt::OddEvenFill, qMax(), qMin(), QT_INHERIT, resolveColor(), QSvgFillStyle::setBrush(), QSvgFillStyle::setFillOpacity(), QSvgFillStyle::setFillRule(), QSvgFillStyle::setFillStyle(), QSvgFillStyle::setGradientId(), QSvgFillStyle::setGradientResolved(), QStringView::size(), QSvgStyleProperty::SOLID_COLOR, styleFromUrl(), toDouble(), QStringView::toString(), QSvgStyleProperty::type(), and Qt::WindingFill.
Referenced by parseStyle().
|
static |
Definition at line 2320 of file qsvghandler.cpp.
References QString::chop(), QString::endsWith(), ok, str, toDouble(), and QString::trimmed().
Referenced by parseAnimateColorNode(), and parseAnimateTransformNode().
|
static |
Definition at line 962 of file qsvghandler.cpp.
References QSvgAttributes::color, QSvgAttributes::colorOpacity, constructColor(), QSvgHandler::popColor(), and QSvgHandler::pushColor().
Referenced by parseStyle().
|
static |
Definition at line 2164 of file qsvghandler.cpp.
References QSvgNode::appendStyleProperty(), QSvgAttributes::compOp, QSvgAttributes::id, QStringView::isEmpty(), svgToQtCompositionMode(), QStringView::toString(), and QString::trimmed().
Referenced by parseStyle().
|
static |
Definition at line 2037 of file qsvghandler.cpp.
References QList< T >::at(), i, QSvgNode::setNodeId(), QSvgNode::setRequiredExtensions(), QSvgNode::setRequiredFeatures(), QSvgNode::setRequiredFonts(), QSvgNode::setRequiredFormats(), QSvgNode::setRequiredLanguages(), QSvgNode::setXmlClass(), QList< T >::size(), someId(), and stringToList().
Referenced by QSvgHandler::startElement().
|
static |
Definition at line 1898 of file qsvghandler.cpp.
References QXmlStreamAttributes::append(), QString::append(), QList< T >::at(), QCss::Declaration::d, QCss::Value::Function, i, QCss::Value::KnownIdentifier, QString::prepend(), QList< T >::size(), QCss::Value::Uri, and QCss::Value_None.
Referenced by cssStyleLookup().
|
static |
Definition at line 2550 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 2558 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 1297 of file qsvghandler.cpp.
References Qt::AlignHCenter, Qt::AlignLeft, Qt::AlignRight, QSvgNode::appendStyleProperty(), QString::at(), QFont::Bold, QSvgFontStyle::BOLDER, convertToPixels(), QSvgNode::document(), QSvgAttributes::fontFamily, QSvgAttributes::fontSize, FontSizeNone, fontSizeSpec(), FontSizeValue, QSvgAttributes::fontStyle, QSvgAttributes::fontVariant, QSvgAttributes::fontWeight, QSvgAttributes::id, QStringView::isEmpty(), QSvgFontStyle::LIGHTER, QString::mid(), QFont::MixedCase, QFont::Normal, ok, parseLength(), qMin(), QT_INHERIT, QString::size(), sizeTable, QFont::SmallCaps, QFont::StyleItalic, QFont::StyleNormal, QFont::StyleOblique, QSvgTinyDocument::svgFont(), QSvgAttributes::textAnchor, QStringView::toInt(), QStringView::toString(), and QString::trimmed().
Referenced by parseStyle().
|
static |
Definition at line 2638 of file qsvghandler.cpp.
References QSvgTinyDocument::addSvgFont(), QSvgFontStyle::doc(), font, QSvgStyleProperty::FONT, parent, QSvgFontStyle::svgFont(), QSvgTinyDocument::svgFont(), toString(), and QXmlStreamAttributes::value().
Referenced by findStyleUtilFactoryMethod().
|
static |
Definition at line 2610 of file qsvghandler.cpp.
References QSvgTinyDocument::addSvgFont(), QSvgFont::DEFAULT_UNITS_PER_EM, QSvgFontStyle::doc(), font, QSvgStyleProperty::FONT, parent, QSvgFontStyle::svgFont(), QSvgTinyDocument::svgFont(), toDouble(), toString(), and QXmlStreamAttributes::value().
Referenced by findStyleUtilFactoryMethod().
|
static |
Definition at line 2660 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findStyleUtilFactoryMethod().
|
static |
Definition at line 2668 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findStyleUtilFactoryMethod().
|
static |
Definition at line 2676 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 2693 of file qsvghandler.cpp.
References createSvgGlyph(), font, QSvgStyleProperty::FONT, parent, and QSvgFontStyle::svgFont().
Referenced by findStyleUtilFactoryMethod().
|
static |
Definition at line 2707 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 2715 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 868 of file qsvghandler.cpp.
References QStringView::chop(), QSvgHandler::defaultCoordinateSystem(), QStringView::endsWith(), QSvgHandler::LT_CM, QSvgHandler::LT_IN, QSvgHandler::LT_MM, QSvgHandler::LT_PC, QSvgHandler::LT_PERCENT, QSvgHandler::LT_PT, QSvgHandler::LT_PX, ok, str, toDouble(), and QString::trimmed().
Referenced by convertToNumber(), createImageNode(), createRectNode(), createSvgNode(), createTextAreaNode(), createTextNode(), createUseNode(), parseFont(), and parsePen().
|
static |
Definition at line 2907 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 2915 of file qsvghandler.cpp.
References createSvgGlyph(), font, QSvgStyleProperty::FONT, parent, and QSvgFontStyle::svgFont().
Referenced by findStyleUtilFactoryMethod().
|
static |
Definition at line 2929 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
inlinestatic |
Definition at line 692 of file qsvghandler.cpp.
References QString::append(), isDigit(), qstrlen(), str, toDouble(), and QString::unicode().
Referenced by parsePathDataFast(), and parseTransformationMatrix().
Definition at line 664 of file qsvghandler.cpp.
References QString::append(), isDigit(), str, toDouble(), and QString::unicode().
Referenced by createPolygonNode(), createPolylineNode(), parseNumberTriplet(), parsePen(), and resolveColor().
Definition at line 2402 of file qsvghandler.cpp.
References QList< T >::append(), i, list, parseNumbersList(), and QList< T >::size().
Referenced by parseAnimateTransformNode().
|
static |
Definition at line 2088 of file qsvghandler.cpp.
References QSvgNode::appendStyleProperty(), QSvgAttributes::id, QStringView::isEmpty(), ok, QSvgAttributes::opacity, qBound(), and QStringView::trimmed().
Referenced by parseStyle().
|
static |
Definition at line 2220 of file qsvghandler.cpp.
References QSvgAttributes::display, displayStringToEnum(), QString::isEmpty(), QStringView::isEmpty(), QSvgNode::setDisplayMode(), QStringView::toString(), and QString::trimmed().
Referenced by parseStyle().
|
static |
Definition at line 1560 of file qsvghandler.cpp.
References arg, c2, QStringView::constData(), e, ok, parseNumbersArray(), pathArc(), rx(), ry(), QStringView::size(), str, QChar::toLatin1(), QChar::unicode(), QPointF::x(), and QPointF::y().
Referenced by createPathNode(), and createSvgGlyph().
|
static |
Definition at line 1155 of file qsvghandler.cpp.
References QSvgNode::appendStyleProperty(), Qt::BevelJoin, Qt::FlatCap, QSvgStyleProperty::GRADIENT, QSvgAttributes::id, idFromUrl(), QStringView::isEmpty(), QStringView::mid(), Qt::NoBrush, parseLength(), parseNumbersList(), qMax(), qMin(), QT_INHERIT, resolveColor(), Qt::RoundCap, Qt::RoundJoin, QSvgStrokeStyle::setDashArray(), QSvgStrokeStyle::setDashArrayNone(), QSvgStrokeStyle::setDashOffset(), QSvgStrokeStyle::setGradientId(), QSvgStrokeStyle::setGradientResolved(), QSvgStrokeStyle::setLineCap(), QSvgStrokeStyle::setLineJoin(), QSvgStrokeStyle::setMiterLimit(), QSvgStrokeStyle::setOpacity(), QSvgStrokeStyle::setStroke(), QSvgStrokeStyle::setStyle(), QSvgStrokeStyle::setVectorEffect(), QSvgStrokeStyle::setWidth(), QStringView::size(), QList< T >::size(), QSvgStyleProperty::SOLID_COLOR, Qt::SquareCap, QSvgAttributes::stroke, QSvgAttributes::strokeDashArray, QSvgAttributes::strokeDashOffset, QSvgAttributes::strokeLineCap, QSvgAttributes::strokeLineJoin, QSvgAttributes::strokeMiterLimit, QSvgAttributes::strokeOpacity, QSvgAttributes::strokeWidth, styleFromUrl(), Qt::SvgMiterJoin, toDouble(), QStringView::toString(), QSvgStyleProperty::type(), and QSvgAttributes::vectorEffect.
Referenced by parseStyle().
Definition at line 723 of file qsvghandler.cpp.
References QString::append(), str, and toDouble().
Referenced by resolveColor().
|
static |
Definition at line 2985 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 2233 of file qsvghandler.cpp.
References QSvgNode::appendStyleProperty(), QSvgAttributes::id, QSvgAttributes::imageRendering, QSvgQualityStyle::ImageRenderingAuto, QSvgQualityStyle::ImageRenderingOptimizeQuality, QSvgQualityStyle::ImageRenderingOptimizeSpeed, QStringView::isEmpty(), QStringView::toString(), and QString::trimmed().
Referenced by parseStyle().
|
static |
Definition at line 3085 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 3093 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 3119 of file qsvghandler.cpp.
References QXmlStreamAttributes::append(), QString::append(), QList< T >::at(), attrs, QList< T >::back(), black, constructColor(), convertToNumber(), QCss::Declaration::d, QCss::StyleSelector::declarationsForNode(), QString::fromLatin1(), QSvgStyleProperty::GRADIENT, QSvgGradientStyle::gradientStopsSet(), i, QStringView::isEmpty(), ok, parent, QString::prepend(), QCss::StyleSelector::NodePtr::ptr, QSvgGradientStyle::qgradient(), qMax(), qMin(), QSvgHandler::selector(), QGradient::setColorAt(), QSvgGradientStyle::setGradientStopsSet(), QSvgNode::setNodeId(), QGradient::setStops(), QSvgNode::setXmlClass(), QList< T >::size(), someId(), QGradient::stops(), QStringView::toString(), QCss::Value::Uri, and QXmlStreamAttributes::value().
Referenced by findStyleUtilFactoryMethod().
|
static |
Definition at line 2252 of file qsvghandler.cpp.
References parseBrush(), parseColor(), parseCompOp(), parseFont(), parseOpacity(), parseOthers(), parsePen(), parseRenderingHints(), parseTransform(), and parseVisibility().
|
static |
Definition at line 2297 of file qsvghandler.cpp.
References attrs, and parseStyle().
Referenced by cssStyleLookup(), parseStyle(), and QSvgHandler::startElement().
|
static |
Definition at line 3204 of file qsvghandler.cpp.
References Qt::CaseInsensitive, parent, Q_UNUSED, QSvgHandler::setInStyle(), and QXmlStreamAttributes::value().
Referenced by findUtilFactory().
|
static |
Definition at line 3291 of file qsvghandler.cpp.
References parent, and QSvgNode::TEXTAREA.
Referenced by findUtilFactory().
|
static |
Definition at line 3339 of file qsvghandler.cpp.
References parent, and Q_UNUSED.
Referenced by findUtilFactory().
|
static |
Definition at line 1387 of file qsvghandler.cpp.
References QSvgNode::appendStyleProperty(), QSvgAttributes::id, QStringView::isEmpty(), parseTransformationMatrix(), QSvgAttributes::transform, and QStringView::trimmed().
Referenced by parseStyle().
|
static |
Definition at line 1025 of file qsvghandler.cpp.
References QString::constData(), error, i, ident, parseNumbersArray(), qDegreesToRadians(), qTan(), QString::size(), state, and str.
Referenced by parseBaseGradient(), and parseTransform().
|
static |
Definition at line 1401 of file qsvghandler.cpp.
References QStringView::isEmpty(), parent, QSvgNode::parent(), QT_INHERIT, QSvgNode::setVisible(), and QSvgAttributes::visibility.
Referenced by parseStyle().
|
static |
Definition at line 1474 of file qsvghandler.cpp.
References d, i, pathArcSegment(), Q_PI, qAbs(), qAtan2(), qCeil(), qCos(), qSin(), qSqrt(), rx(), and ry().
Referenced by QQuickSvgParser::parsePathDataFast(), and parsePathDataFast().
|
static |
Definition at line 41 of file qsvghandler.cpp.
References QFile::encodeName(), file, QFile::fileName(), QByteArray::number(), QByteArrayLiteral, and QDir::toNativeSeparators().
Referenced by msgCouldNotResolveProperty(), msgProblemParsing(), and QSvgHandler::startElement().
Q_STATIC_ASSERT | ( | sizeof(sizeTable)/sizeof(sizeTable[0]) | = =FontSizeNone | ) |
bool qsvg_get_hex_rgb | ( | const char * | name, |
QRgb * | rgb | ||
) |
Definition at line 97 of file qsvghandler.cpp.
References ok, qRgb(), qstrlen(), qsvg_hex2int(), and rgb.
Referenced by qsvg_get_hex_rgb(), and resolveColor().
Definition at line 132 of file qsvghandler.cpp.
References i, qsvg_get_hex_rgb(), rgb, and str.
|
inlinestatic |
Definition at line 73 of file qsvghandler.cpp.
Referenced by qsvg_hex2int(), and qsvg_hex2int().
|
inlinestatic |
Definition at line 91 of file qsvghandler.cpp.
References ok, and qsvg_h2i().
|
inlinestatic |
Definition at line 86 of file qsvghandler.cpp.
References ok, and qsvg_h2i().
Referenced by qsvg_get_hex_rgb().
|
static |
returns true when successfully set the color. false signifies that the color should be inherited
Definition at line 788 of file qsvghandler.cpp.
References QStringView::at(), QStringView::constData(), QSvgHandler::currentColor(), QColor::fromString(), i, QStringView::isEmpty(), QStringView::mid(), ok, parseNumbersList(), parsePercentageList(), QRgb, qsvg_get_hex_rgb(), QT_INHERIT, rgb, QStringView::size(), QList< T >::size(), QStringView::toString(), QStringView::trimmed(), and QChar::unicode().
Referenced by constructColor(), parseAnimateColorNode(), parseBrush(), and parsePen().
|
inlinestatic |
Definition at line 147 of file qsvghandler.cpp.
References QStringView::toString(), and QXmlStreamAttributes::value().
Referenced by createFontNode(), parseAnimateColorNode(), parseAnimateTransformNode(), parseCoreNode(), parseStopNode(), and QSvgHandler::startElement().
|
inlinestatic |
Definition at line 2031 of file qsvghandler.cpp.
References Qt::SkipEmptyParts, QString::split(), and str.
Referenced by parseCoreNode().
|
static |
Definition at line 973 of file qsvghandler.cpp.
References idFromUrl(), QSvgNode::styleProperty(), and url.
Referenced by parseBrush(), and parsePen().
|
static |
Definition at line 2106 of file qsvghandler.cpp.
References QPainter::CompositionMode_Clear, QPainter::CompositionMode_ColorBurn, QPainter::CompositionMode_ColorDodge, QPainter::CompositionMode_Darken, QPainter::CompositionMode_Destination, QPainter::CompositionMode_DestinationAtop, QPainter::CompositionMode_DestinationIn, QPainter::CompositionMode_DestinationOut, QPainter::CompositionMode_DestinationOver, QPainter::CompositionMode_Difference, QPainter::CompositionMode_Exclusion, QPainter::CompositionMode_HardLight, QPainter::CompositionMode_Lighten, QPainter::CompositionMode_Multiply, QPainter::CompositionMode_Overlay, QPainter::CompositionMode_Plus, QPainter::CompositionMode_Screen, QPainter::CompositionMode_SoftLight, QPainter::CompositionMode_Source, QPainter::CompositionMode_SourceAtop, QPainter::CompositionMode_SourceIn, QPainter::CompositionMode_SourceOut, QPainter::CompositionMode_SourceOver, QPainter::CompositionMode_Xor, and NOOP.
Referenced by parseCompOp().
Definition at line 575 of file qsvghandler.cpp.
References QByteArray::fromRawData(), isDigit(), pos, qFpClassify(), str, QByteArray::toDouble(), QString::toLatin1(), and QString::unicode().
Referenced by constructColor(), createCircleNode(), createEllipseNode(), createFontNode(), createImageNode(), createLineNode(), createRadialGradientNode(), createRectNode(), createSvgGlyph(), parseAnimateColorNode(), parseAnimateTransformNode(), parseBrush(), parseClockValue(), parseFontFaceNode(), parseLength(), parseNumbersArray(), parseNumbersList(), parsePen(), parsePercentageList(), and toDouble().
|
static |
Definition at line 655 of file qsvghandler.cpp.
References QString::constData(), ok, QString::size(), str, and toDouble().
|
static |
Definition at line 413 of file qsvghandler.cpp.
Referenced by QSvgStyleSelector::nodeToName().
|
static |
Definition at line 38 of file qsvghandler.cpp.
|
static |
|
static |
Definition at line 3619 of file qsvghandler.cpp.