|
Krita Source Code Documentation
|
#include <KoSvgTextLoader.h>
Classes | |
| struct | Private |
Public Member Functions | |
| void | enterNodeSubtree () |
| Set the current node to its first child, entering the subtree. | |
| KoSvgTextLoader (KoSvgTextShape *shape) | |
| void | leaveNodeSubtree () |
| Set the current node to its parent, leaving the subtree. | |
| bool | loadSvg (const QDomElement &element, SvgLoadingContext &context, bool root=false) |
| Create a new text node. | |
| bool | loadSvgText (const QDomText &text, SvgLoadingContext &context) |
| Loads the textt into the current node. | |
| void | nextNode () |
| Switch to next node. | |
| void | setStyleInfo (KoShape *s) |
| Set the style info from the shape. This is necessary because SVGParser only understands loading the basic style into a KoShape. | |
| void | setTextPathOnCurrentNode (KoShape *s) |
| Set the textPath on the current node. | |
| ~KoSvgTextLoader () | |
Private Attributes | |
| QScopedPointer< Private > | d |
Loading an SVG text is somewhat intricate, so we use a KoSvgTextLoader to keep track of where we are in the tree.
Definition at line 15 of file KoSvgTextLoader.h.
| KoSvgTextLoader::KoSvgTextLoader | ( | KoSvgTextShape * | shape | ) |
Definition at line 25 of file KoSvgTextLoader.cpp.
| KoSvgTextLoader::~KoSvgTextLoader | ( | ) |
Definition at line 31 of file KoSvgTextLoader.cpp.
References d.
| void KoSvgTextLoader::enterNodeSubtree | ( | ) |
Set the current node to its first child, entering the subtree.
Definition at line 38 of file KoSvgTextLoader.cpp.
References d, KisForestDetail::isEnd(), and nextNode().
| void KoSvgTextLoader::leaveNodeSubtree | ( | ) |
Set the current node to its parent, leaving the subtree.
Definition at line 46 of file KoSvgTextLoader.cpp.
References d, and KisForestDetail::parent().
| bool KoSvgTextLoader::loadSvg | ( | const QDomElement & | element, |
| SvgLoadingContext & | context, | ||
| bool | root = false ) |
Create a new text node.
Definition at line 56 of file KoSvgTextLoader.cpp.
References d, KisForestDetail::isEnd(), and nextNode().
| bool KoSvgTextLoader::loadSvgText | ( | const QDomText & | text, |
| SvgLoadingContext & | context ) |
Loads the textt into the current node.
Definition at line 64 of file KoSvgTextLoader.cpp.
References d, KisForestDetail::isEnd(), and nextNode().
| void KoSvgTextLoader::nextNode | ( | ) |
Switch to next node.
Definition at line 51 of file KoSvgTextLoader.cpp.
References d, and KisForestDetail::siblingEnd().
Set the style info from the shape. This is necessary because SVGParser only understands loading the basic style into a KoShape.
Definition at line 72 of file KoSvgTextLoader.cpp.
References KoShape::background(), d, KoSvgTextProperties::FillId, KisForestDetail::hierarchyBegin(), KisForestDetail::hierarchyEnd(), KoShape::inheritBackground(), KoShape::inheritPaintOrder(), KoShape::inheritStroke(), KisForestDetail::isEnd(), KoShape::isVisible(), KoSvgTextProperties::Opacity, KoShape::paintOrder(), KoSvgTextProperties::PaintOrder, KoShape::stroke(), KoSvgTextProperties::StrokeId, KoShape::transparency(), and KoSvgTextProperties::Visiblity.
Set the textPath on the current node.
Definition at line 116 of file KoSvgTextLoader.cpp.
References d, and KisForestDetail::isEnd().
|
private |
Definition at line 40 of file KoSvgTextLoader.h.