16 shape->
d->isLoading =
true;
17 shape->
d->textData.erase(
shape->
d->textData.childBegin(),
shape->
d->textData.childEnd());
35 d->shape->d->isLoading =
false;
43 d->currentNode = childEnd(
d->currentNode);
61 return d->currentNode->loadSvg(element, context, root);
69 return d->currentNode->loadSvgTextNode(text, context);
80 parentBg = it->properties.background();
86 parentStroke = it->properties.stroke();
92 if ((parentBg && !parentBg->compareTo(s->
background().data()))
99 if ((parentStroke && (!parentStroke->compareFillTo(s->
stroke().data()) || !parentStroke->compareStyleTo(s->
stroke().data())))
100 || (!parentStroke && s->
stroke())) {
119 d->currentNode->textPath.reset(s);
virtual QVector< PaintOrder > paintOrder() const
paintOrder
virtual KoShapeStrokeModelSP stroke() const
bool inheritStroke() const
inheritStroke shows if the shape inherits the stroke from its parent
bool inheritBackground() const
inheritBackground shows if the shape inherits background from its parent
virtual QSharedPointer< KoShapeBackground > background() const
bool inheritPaintOrder() const
inheritPaintOrder
bool isVisible(bool recursive=true) const
qreal transparency(bool recursive=false) const
KoSvgTextLoader(KoSvgTextShape *shape)
QScopedPointer< Private > d
void leaveNodeSubtree()
Set the current node to its parent, leaving the subtree.
bool loadSvgText(const QDomText &text, SvgLoadingContext &context)
Loads the textt into the current node.
void setTextPathOnCurrentNode(KoShape *s)
Set the textPath on the current node.
void nextNode()
Switch to next node.
void enterNodeSubtree()
Set the current node to its first child, entering the subtree.
void setStyleInfo(KoShape *s)
Set the style info from the shape. This is necessary because SVGParser only understands loading the b...
bool loadSvg(const QDomElement &element, SvgLoadingContext &context, bool root=false)
Create a new text node.
@ Visiblity
Bool, CSS visibility.
@ PaintOrder
QVector<KoShape::PaintOrder>
@ Opacity
Double, SVG shape opacity.
@ StrokeId
KoSvgText::StrokeProperty.
@ FillId
KoSvgText::BackgroundProperty.
QScopedPointer< Private > d
Contains data used for loading svg.
bool isEnd(const ChildIterator< T, is_const > &it)
ResultIterator hierarchyBegin(Iterator it)
ResultIterator hierarchyEnd(Iterator it)
ChildIterator< value_type, is_const > parent(const ChildIterator< value_type, is_const > &it)
ChildIterator< value_type, is_const > siblingEnd(const ChildIterator< value_type, is_const > &it)
The KoSvgTextContentElement struct.
KisForest< KoSvgTextContentElement >::child_iterator currentNode
Private(KoSvgTextShape *shape)
BackgroundProperty is a special wrapper around KoShapeBackground for managing it in KoSvgTextProperti...
StrokeProperty is a special wrapper around KoShapeStrokeModel for managing it in KoSvgTextProperties.