49 QSvgHandler(QIODevice *device, QtSvg::Options options = {},
50 QtSvg::AnimatorType type = QtSvg::AnimatorType::Automatic);
51 QSvgHandler(
const QByteArray &data, QtSvg::Options options = {},
52 QtSvg::AnimatorType type = QtSvg::AnimatorType::Automatic);
53 QSvgHandler(QXmlStreamReader *
const data, QtSvg::Options options = {},
54 QtSvg::AnimatorType type = QtSvg::AnimatorType::Automatic);
57 QIODevice *device()
const;
58 QSvgDocument *document()
const;
60 inline bool ok()
const {
61 return document() != 0 && !xml->hasError();
64 inline QString errorString()
const {
return xml->errorString(); }
65 inline int lineNumber()
const {
return xml->lineNumber(); }
67 void setDefaultCoordinateSystem(QSvgUtils::LengthType type);
68 QSvgUtils::LengthType defaultCoordinateSystem()
const;
70 void pushColor(
const QColor &color);
73 QColor currentColor()
const;
75 void pushUnresolvedStyle(QSvgStyleProperty *prop);
77#ifndef QT_NO_CSSPARSER
78 void setInStyle(
bool b);
81 QSvgCssHandler &cssHandler();
84 void setAnimPeriod(
int start,
int end);
85 int animationDuration()
const;
87 inline QPen defaultPen()
const
88 {
return m_defaultPen; }
90 QtSvg::Options options()
const;
91 QtSvg::AnimatorType animatorType()
const;
92 bool trustedSourceMode()
const;
95 bool startElement(
const QStringView localName,
const QXmlStreamAttributes &attributes);
96 bool endElement(
const QStringView localName);
97 bool characters(
const QStringView str);
98 bool processingInstruction(
const QStringView target,
const QStringView data);
104 QStack<QSvgNode *> m_nodes;
109 QList<QSvgNode *> m_toBeResolved;
110 QList<QSvgStyleProperty *> m_unresolvedStyles;
119 QStack<CurrentNode> m_skipNodes;
122
123
124
125 QStack<QSvgText::WhitespaceMode> m_whitespaceMode;
127 QSvgRefCounter<QSvgStyleProperty> m_style;
128 QSvgPaintServerSharedPtr m_paintServer;
129 QSvgUtils::LengthType m_defaultCoords;
131 QStack<QColor> m_colorStack;
132 QStack<
int> m_colorTagCount;
136 QXmlStreamReader *
const xml;
137#ifndef QT_NO_CSSPARSER
139 QSvgCssHandler m_cssHandler;
142 void resolvePaintServers();
147
148
149
150 const bool m_ownsReader;
152 const QtSvg::Options m_options;
153 const QtSvg::AnimatorType m_animatorType;