Public Member Functions | |
| KGameSvgDocumentPrivate () | |
| ~KGameSvgDocumentPrivate () | |
| QDomNode | findElementById (const QString &attributeName, const QString &attributeValue, const QDomNode &node) |
| QDomElement | currentElement () const |
| void | setCurrentElement () |
| bool | styleHasTrailingSemicolon () const |
| void | setStyleHasTrailingSemicolon (bool hasSemicolon) |
Public Attributes | |
| QDomNode | m_currentNode |
| QDomElement | m_currentElement |
| QStringList | m_inkscapeOrder |
| QString | m_svgFilename |
| bool | m_hasSemicolon |
Static Public Attributes | |
| static const QString | SVG_XML_PREPEND = QString("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><svg>") |
| static const QString | SVG_XML_APPEND = QString("</svg>") |
Definition at line 44 of file kgamesvgdocument.cpp.
| KGameSvgDocumentPrivate::KGameSvgDocumentPrivate | ( | ) | [inline] |
Instantiates a KGameSvgDocumentPrivate object
Definition at line 51 of file kgamesvgdocument.cpp.
| KGameSvgDocumentPrivate::~KGameSvgDocumentPrivate | ( | ) | [inline] |
Definition at line 54 of file kgamesvgdocument.cpp.
| QDomNode KGameSvgDocumentPrivate::findElementById | ( | const QString & | attributeName, | |
| const QString & | attributeValue, | |||
| const QDomNode & | node | |||
| ) |
Performs a preorder traversal of the DOM tree to find element matching attributeName & attributeValue
| attributeName | The name of the attribute to find | |
| attributeValue | The value of the attributeName attribute to find | |
| node | The node to start the traversal from. |
elementId. If no node has that id, returns a null node. We have recursed, now we need to have this recursion end when the function call above returns
We have recursed, now we need to have this recursion end when the function call above returns
Definition at line 646 of file kgamesvgdocument.cpp.
Referenced by KGameSvgDocument::elementByUniqueAttributeValue(), and KGameSvgDocument::nodeToSvg().
| QDomElement KGameSvgDocumentPrivate::currentElement | ( | ) | const |
Returns the current element
Definition at line 682 of file kgamesvgdocument.cpp.
References m_currentElement.
| void KGameSvgDocumentPrivate::setCurrentElement | ( | ) |
Sets the current element
Definition at line 687 of file kgamesvgdocument.cpp.
References m_currentElement, and m_currentNode.
Referenced by KGameSvgDocument::setCurrentNode().
| bool KGameSvgDocumentPrivate::styleHasTrailingSemicolon | ( | ) | const |
Returns whether the original style attribute has a trailing semicolon
Definition at line 692 of file kgamesvgdocument.cpp.
References m_hasSemicolon.
Referenced by KGameSvgDocument::setStyleProperties().
| void KGameSvgDocumentPrivate::setStyleHasTrailingSemicolon | ( | bool | hasSemicolon | ) |
Sets whether the original style attribute has a trailing semicolon
| hasSemicolon | whether the original style attribute has a trailing semicolon |
Definition at line 697 of file kgamesvgdocument.cpp.
References m_hasSemicolon.
Referenced by KGameSvgDocument::styleProperties().
The last node found by elementById, or a null node if not found.
Definition at line 97 of file kgamesvgdocument.cpp.
Referenced by KGameSvgDocument::currentNode(), setCurrentElement(), and KGameSvgDocument::setCurrentNode().
| QDomElement KGameSvgDocumentPrivate::m_currentElement |
The current node turned into an element.
Definition at line 102 of file kgamesvgdocument.cpp.
Referenced by currentElement(), setCurrentElement(), KGameSvgDocument::setStyle(), KGameSvgDocument::setTransform(), KGameSvgDocument::style(), and KGameSvgDocument::transform().
| QStringList KGameSvgDocumentPrivate::m_inkscapeOrder |
The order Inkscape write properties in the style attribute of an element.
Inkscape order is defined as: "fill", "fill-opacity", "fill-rule", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-dasharray", "stroke-opacity"
Definition at line 111 of file kgamesvgdocument.cpp.
Referenced by KGameSvgDocument::setStyleProperties().
const QString KGameSvgDocumentPrivate::SVG_XML_PREPEND = QString("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><svg>") [static] |
The xml that must be prepended to a node to make it a valid svg document Defined as: <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg>
Definition at line 118 of file kgamesvgdocument.cpp.
Referenced by KGameSvgDocument::nodeToSvg().
const QString KGameSvgDocumentPrivate::SVG_XML_APPEND = QString("</svg>") [static] |
The xml that must be appended to a node to make it a valid svg document Defined as: </svg>
Definition at line 125 of file kgamesvgdocument.cpp.
Referenced by KGameSvgDocument::nodeToSvg().
The filename of the SVG file to open.
Definition at line 130 of file kgamesvgdocument.cpp.
Referenced by KGameSvgDocument::load(), KGameSvgDocument::setSvgFilename(), and KGameSvgDocument::svgFilename().
Whether the style attribute has a trailing semicolon
Definition at line 135 of file kgamesvgdocument.cpp.
Referenced by setStyleHasTrailingSemicolon(), and styleHasTrailingSemicolon().
1.5.3