32 : properties(rhs.properties)
33 , localTransformations(rhs.localTransformations)
34 , textPathInfo(rhs.textPathInfo)
35 , textLength(rhs.textLength)
36 , lengthAdjust(rhs.lengthAdjust)
37 , textDecorations(rhs.textDecorations)
39 , finalResultIndex(rhs.finalResultIndex)
40 , associatedOutline(rhs.associatedOutline)
43 textPath.reset(rhs.
textPath.data()->cloneShape());
59 QScopedPointer<KoShape> textPath{
nullptr};
75 int finalResultIndex = -1;
91 bool loadSvg(
const QDomElement &element,
SvgLoadingContext &context,
bool rootNode =
false);
95 bool saveSvg(
SvgSavingContext &context,
bool rootText,
bool saveText, QMap<QString, QString> shapeSpecificAttributes);
115 void insertText(
int start, QString insertText);
122 void removeText(
int &start,
int length);
Contains data used for loading svg.
Context for saving svg files.
The KoSvgTextContentElement struct.
KoSvgText::AutoValue textLength
the value 'textLength' attribute of the associated dom element
~KoSvgTextContentElement()=default
QVector< KoSvgText::CharTransformation > localTransformations
Local SVG char transforms.
QMap< KoSvgText::TextDecoration, QPainterPath > textDecorations
Cached text decorations to be used by the painting function.
KoSvgTextProperties properties
The textProperties. This includes.
QPainterPath associatedOutline
The associated outline. Currently only a bounding box.
QString text
Plain text of the current node. Use insertText and removeText to manipulate it.
QScopedPointer< KoShape > textPath
The textpath, if any. Defaults to null.
KoSvgTextContentElement(const KoSvgTextContentElement &rhs)
KoSvgText::TextOnPathInfo textPathInfo
Text path info for the text-on-path algorithm.