|
Krita Source Code Documentation
|
#include <KoDrag.h>
Public Member Functions | |
| void | addToClipboard () |
| KoDrag () | |
| QMimeData * | mimeData () |
| void | setData (const QString &mimeType, const QByteArray &data) |
| bool | setSvg (const QList< KoShape * > shapes) |
| ~KoDrag () | |
Private Attributes | |
| KoDragPrivate *const | d |
Class for simplifying adding a odf to the clip board
For saving the odf a KoDragOdfSaveHelper class is used. It implements the writing of the body of the document. The setOdf takes care of saving styles and all the other common stuff.
| KoDrag::KoDrag | ( | ) |
Definition at line 37 of file KoDrag.cpp.
| KoDrag::~KoDrag | ( | ) |
| void KoDrag::addToClipboard | ( | ) |
Add the mimeData to the clipboard
Definition at line 86 of file KoDrag.cpp.
References d, and KoDragPrivate::mimeData.
| QMimeData * KoDrag::mimeData | ( | ) |
Get the mime data
This transfers the ownership of the mimeData to the caller
This function is for use in automated tests
Definition at line 94 of file KoDrag.cpp.
References d, KoDragPrivate::mimeData, and mimeData().
| void KoDrag::setData | ( | const QString & | mimeType, |
| const QByteArray & | data ) |
Add additional mimeTypes
Definition at line 78 of file KoDrag.cpp.
References d, and KoDragPrivate::mimeData.
Load SVG data into the current mime data
Definition at line 47 of file KoDrag.cpp.
References KoShape::boundingRect(), KoShape::cloneShapeAndBakeAbsoluteTransform(), KoShape::compareShapeZIndex(), SvgWriter::save(), and setData().
|
private |