10#include <QApplication>
52 Q_FOREACH (
KoShape *shape, originalShapes) {
56 shapes.append(clonedShape);
62 QLatin1String mimeType(
"image/svg+xml");
64 buffer.open(QIODevice::WriteOnly);
66 const QSizeF pageSize(boundingRect.right(), boundingRect.bottom());
68 writer.
save(buffer, pageSize);
74 setData(mimeType, buffer.data());
89 QApplication::clipboard()->setMimeData(
d->
mimeData);
void setData(const QString &mimeType, const QByteArray &data)
bool setSvg(const QList< KoShape * > shapes)
KoShape * cloneShapeAndBakeAbsoluteTransform() const
creates a deep copy of the shape/shapes tree and bakes the absolute transform of this into the result...
static bool compareShapeZIndex(KoShape *s1, KoShape *s2)
virtual QRectF boundingRect() const
Get the bounding box of the shape.
Implements exporting shapes to SVG.
bool save(QIODevice &outputDevice, const QSizeF &pageSize)
Writes svg to specified output device.