Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextAddRemoveShapeCommands.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KOSVGTEXTADDREMOVESHAPECOMMANDS_H
7#define KOSVGTEXTADDREMOVESHAPECOMMANDS_H
8
9#include "kis_command_utils.h"
10#include <kundo2command.h>
11#include <kritaflake_export.h>
12
13class KoSvgTextShape;
14class KoShape;
15
17{
18public:
25
26 KoSvgTextAddRemoveShapeCommandImpl(KoSvgTextShape *textShape, KoShape *shape, ContourType type, State state, int startPos, int endPos, KUndo2Command *parent = nullptr);
28 void partA() override;
29 void partB() override;
30private:
31 struct Private;
32 QScopedPointer<Private> d;
33};
34
36public:
37 KoSvgTextAddShapeCommand(KoSvgTextShape *textShape, KoShape *shape, bool inside, KUndo2Command *parentCommand = 0);
39};
40
42public:
43 KoSvgTextRemoveShapeCommand(KoSvgTextShape *textShape, KoShape *shape, KUndo2Command *parentCommand = 0);
45
55 static void removeContourShapesFromFlow(KoSvgTextShape *textShape, KUndo2Command *parent, bool textInShape, bool textPaths);
56};
57
59public:
60 KoSvgTextSetTextPathOnRangeCommand(KoSvgTextShape *textShape, KoShape *shape, int startPos, int endPos, KUndo2Command *parentCommand = 0);
62};
63
64#endif // KOSVGTEXTADDREMOVESHAPECOMMANDS_H