Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextLoader.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KOSVGTEXTLOADER_H
7#define KOSVGTEXTLOADER_H
8
9#include "KoSvgTextShape.h"
10#include "kritaflake_export.h"
11
12
16public:
19
21 void enterNodeSubtree();
22
24 void leaveNodeSubtree();
25
27 void nextNode();
28
30 bool loadSvg(const QDomElement &element, SvgLoadingContext &context, bool root = false);
32 bool loadSvgText(const QDomText &text, SvgLoadingContext &context);
33
35 void setStyleInfo(KoShape* s);
38private:
39 class Private;
40 QScopedPointer<Private> d;
41};
42
43#endif // KOSVGTEXTLOADER_H
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.
Contains data used for loading svg.