Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgPaste.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOSVGPASTE_H
8#define KOSVGPASTE_H
9
10#include "kritaflake_export.h"
11#include <QList>
12
13class KoShape;
14class QRectF;
15class QSizeF;
16class QByteArray;
17
18class KRITAFLAKE_EXPORT KoSvgPaste
19{
20public:
21 KoSvgPaste();
22 virtual ~KoSvgPaste();
23
24
25 bool hasShapes();
26 QList<KoShape*> fetchShapes(QRectF viewportInPx, qreal resolutionPPI, QSizeF *fragmentSize = nullptr);
27 static QList<KoShape*> fetchShapesFromData(const QByteArray &data, QRectF viewportInPx, qreal resolutionPPI, QSizeF *fragmentSize = nullptr);
28
29private:
30 class Private;
31 Private *const d;
32
34};
35
36#endif // KOSVGPASTE_H
Q_DISABLE_COPY(KoSvgPaste)
Private *const d
Definition KoSvgPaste.h:31