Qt 4.8
|
#include <qsvghandler_p.h>
Public Types | |
enum | LengthType { LT_PERCENT, LT_PX, LT_PC, LT_PT, LT_MM, LT_CM, LT_IN, LT_OTHER } |
Public Functions | |
int | animationDuration () const |
bool | characters (const QStringRef &str) |
QColor | currentColor () const |
LengthType | defaultCoordinateSystem () const |
QPen | defaultPen () const |
QSvgTinyDocument * | document () const |
bool | endElement (const QStringRef &localName) |
QString | errorString () const |
bool | inStyle () const |
int | lineNumber () const |
bool | ok () const |
void | parseCSStoXMLAttrs (QString css, QVector< QSvgCssAttribute > *attributes) |
void | popColor () |
bool | processingInstruction (const QString &target, const QString &data) |
void | pushColor (const QColor &color) |
void | pushColorCopy () |
QSvgHandler (QIODevice *device) | |
QSvgHandler (const QByteArray &data) | |
QSvgHandler (QXmlStreamReader *const data) | |
QSvgStyleSelector * | selector () const |
void | setAnimPeriod (int start, int end) |
void | setDefaultCoordinateSystem (LengthType type) |
void | setInStyle (bool b) |
bool | startElement (const QString &localName, const QXmlStreamAttributes &attributes) |
~QSvgHandler () | |
Private Types | |
enum | CurrentNode { Unknown, Graphics, Style } |
Private Functions | |
void | init () |
void | parse () |
void | resolveGradients (QSvgNode *node) |
Properties | |
int | m_animEnd |
QStack< QColor > | m_colorStack |
QStack< int > | m_colorTagCount |
QCss::Parser | m_cssParser |
LengthType | m_defaultCoords |
QPen | m_defaultPen |
QSvgTinyDocument * | m_doc |
bool | m_inStyle |
QStack< QSvgNode * > | m_nodes |
const bool | m_ownsReader |
QList< QSvgNode * > | m_resolveNodes |
QSvgStyleSelector * | m_selector |
QStack< CurrentNode > | m_skipNodes |
QSvgRefCounter< QSvgStyleProperty > | m_style |
QStack< QSvgText::WhitespaceMode > | m_whitespaceMode |
Follows the depths of elements. More... | |
QXmlStreamReader *const | xml |
Definition at line 81 of file qsvghandler_p.h.
|
private |
Enumerator | |
---|---|
Unknown | |
Graphics | |
Style |
Definition at line 145 of file qsvghandler_p.h.
Enumerator | |
---|---|
LT_PERCENT | |
LT_PX | |
LT_PC | |
LT_PT | |
LT_MM | |
LT_CM | |
LT_IN | |
LT_OTHER |
Definition at line 84 of file qsvghandler_p.h.
QSvgHandler::QSvgHandler | ( | QIODevice * | device | ) |
Definition at line 3513 of file qsvghandler.cpp.
QSvgHandler::QSvgHandler | ( | const QByteArray & | data | ) |
Definition at line 3519 of file qsvghandler.cpp.
QSvgHandler::QSvgHandler | ( | QXmlStreamReader *const | data | ) |
Definition at line 3525 of file qsvghandler.cpp.
QSvgHandler::~QSvgHandler | ( | ) |
Definition at line 3912 of file qsvghandler.cpp.
int QSvgHandler::animationDuration | ( | ) | const |
bool QSvgHandler::characters | ( | const QStringRef & | str | ) |
Definition at line 3777 of file qsvghandler.cpp.
Referenced by parse().
QColor QSvgHandler::currentColor | ( | ) | const |
Definition at line 3836 of file qsvghandler.cpp.
Referenced by resolveColor().
QSvgHandler::LengthType QSvgHandler::defaultCoordinateSystem | ( | ) | const |
|
inline |
Definition at line 128 of file qsvghandler_p.h.
QSvgTinyDocument * QSvgHandler::document | ( | ) | const |
Definition at line 3797 of file qsvghandler.cpp.
Referenced by QSvgTinyDocument::load(), and parseBaseGradient().
bool QSvgHandler::endElement | ( | const QStringRef & | localName | ) |
Definition at line 3716 of file qsvghandler.cpp.
Referenced by parse().
|
inline |
Definition at line 107 of file qsvghandler_p.h.
Referenced by QSvgTinyDocument::load().
|
private |
Definition at line 3531 of file qsvghandler.cpp.
Referenced by QSvgHandler().
bool QSvgHandler::inStyle | ( | ) | const |
Definition at line 3849 of file qsvghandler.cpp.
|
inline |
Definition at line 108 of file qsvghandler_p.h.
Referenced by QSvgTinyDocument::load().
|
inline |
Definition at line 103 of file qsvghandler_p.h.
Referenced by QSvgTinyDocument::load().
|
private |
Definition at line 3542 of file qsvghandler.cpp.
Referenced by init().
void QSvgHandler::parseCSStoXMLAttrs | ( | QString | css, |
QVector< QSvgCssAttribute > * | attributes | ||
) |
Definition at line 1923 of file qsvghandler.cpp.
Referenced by QSvgAttributes::QSvgAttributes().
void QSvgHandler::popColor | ( | ) |
Definition at line 3826 of file qsvghandler.cpp.
Referenced by endElement(), parseBaseGradient(), and parseColor().
Definition at line 3859 of file qsvghandler.cpp.
Referenced by parse().
void QSvgHandler::pushColor | ( | const QColor & | color | ) |
Definition at line 3812 of file qsvghandler.cpp.
Referenced by parseBaseGradient(), parseColor(), and pushColorCopy().
void QSvgHandler::pushColorCopy | ( | ) |
Definition at line 3818 of file qsvghandler.cpp.
Referenced by startElement().
|
private |
Definition at line 3739 of file qsvghandler.cpp.
Referenced by parse().
QSvgStyleSelector * QSvgHandler::selector | ( | ) | const |
void QSvgHandler::setAnimPeriod | ( | int | start, |
int | end | ||
) |
Definition at line 3901 of file qsvghandler.cpp.
Referenced by parseAnimateColorNode(), and parseAnimateTransformNode().
void QSvgHandler::setDefaultCoordinateSystem | ( | LengthType | type | ) |
void QSvgHandler::setInStyle | ( | bool | b | ) |
bool QSvgHandler::startElement | ( | const QString & | localName, |
const QXmlStreamAttributes & | attributes | ||
) |
Definition at line 3584 of file qsvghandler.cpp.
Referenced by parse().
|
private |
Definition at line 170 of file qsvghandler_p.h.
Referenced by animationDuration(), init(), and setAnimPeriod().
Definition at line 163 of file qsvghandler_p.h.
Referenced by currentColor(), popColor(), and pushColor().
|
private |
Definition at line 164 of file qsvghandler_p.h.
Referenced by popColor(), pushColor(), and pushColorCopy().
|
private |
Definition at line 173 of file qsvghandler_p.h.
|
private |
Definition at line 161 of file qsvghandler_p.h.
Referenced by defaultCoordinateSystem(), init(), and setDefaultCoordinateSystem().
|
private |
Definition at line 177 of file qsvghandler_p.h.
Referenced by init().
|
private |
Definition at line 140 of file qsvghandler_p.h.
Referenced by document(), init(), parse(), and startElement().
|
private |
Definition at line 166 of file qsvghandler_p.h.
Referenced by characters(), endElement(), inStyle(), parse(), and setInStyle().
Definition at line 141 of file qsvghandler_p.h.
Referenced by characters(), endElement(), and startElement().
|
private |
Whether we own the variable xml, and hence whether we need to delete it.
Definition at line 182 of file qsvghandler_p.h.
Referenced by parse(), and ~QSvgHandler().
Definition at line 143 of file qsvghandler_p.h.
|
private |
Definition at line 168 of file qsvghandler_p.h.
Referenced by characters(), parse(), processingInstruction(), selector(), startElement(), and ~QSvgHandler().
|
private |
Definition at line 151 of file qsvghandler_p.h.
Referenced by characters(), endElement(), and startElement().
|
private |
Definition at line 159 of file qsvghandler_p.h.
Referenced by endElement(), init(), and startElement().
|
private |
Follows the depths of elements.
The top is current xml:space value that applies for a given element.
Definition at line 157 of file qsvghandler_p.h.
Referenced by endElement(), and startElement().
|
private |
Definition at line 172 of file qsvghandler_p.h.
Referenced by parse(), and ~QSvgHandler().