|
Krita Source Code Documentation
|
Context for saving svg files. More...
#include <SvgSavingContext.h>
Inheritance diagram for SvgSavingContext:Public Member Functions | |
| QString | createFileName (const QString &extension) |
| Create a filename suitable for saving external data. | |
| QString | createUID (const QString &base) |
| Create a unique id from the specified base text. | |
| QString | getID (const KoShape *obj) |
| Returns the unique id for the given shape. | |
| bool | isSavingInlineImages () const |
| Returns if image should be saved inline. | |
| Private (QIODevice *_mainDevice, QIODevice *_styleDevice) | |
| QString | saveImage (const QImage &image) |
| Saves given image and returns the href used. | |
| void | setStrippedTextMode (bool value) |
| KoXmlWriter & | shapeWriter () |
| Provides access to the shape writer. | |
| bool | strippedTextMode () const |
| KoXmlWriter & | styleWriter () |
| Provides access to the style writer. | |
| SvgSavingContext (QIODevice &outputDevice, bool saveInlineImages=true) | |
| Creates a new svg saving context on the specified output device. | |
| SvgSavingContext (QIODevice &shapesDevice, QIODevice &styleDevice, bool saveInlineImages=true) | |
| QTransform | userSpaceTransform () const |
| Returns the transformation used to transform into user space. | |
| ~Private () | |
| virtual | ~SvgSavingContext () |
| Virtual destructor. | |
Public Attributes | |
| QIODevice * | mainDevice |
| bool | saveInlineImages |
| QBuffer | shapeBuffer |
| QHash< const KoShape *, QString > | shapeIds |
| QScopedPointer< KoXmlWriter > | shapeWriter |
| bool | strippedTextMode = false |
| QBuffer | styleBuffer |
| QIODevice * | styleDevice |
| QScopedPointer< KoXmlWriter > | styleWriter |
| QHash< QString, int > | uniqueNames |
| QTransform | userSpaceMatrix |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Context for saving svg files.
Definition at line 25 of file SvgSavingContext.cpp.
|
inline |
Definition at line 43 of file SvgSavingContext.cpp.
|
explicit |
Creates a new svg saving context on the specified output device.
Definition at line 61 of file SvgSavingContext.cpp.
References d, and saveInlineImages.
|
explicit |
|
virtual |
Virtual destructor.
Definition at line 73 of file SvgSavingContext.cpp.
References d.
| QString SvgSavingContext::createFileName | ( | const QString & | extension | ) |
Create a filename suitable for saving external data.
Definition at line 159 of file SvgSavingContext.cpp.
References createUID(), and d.
| QString SvgSavingContext::createUID | ( | const QString & | base | ) |
Create a unique id from the specified base text.
Definition at line 99 of file SvgSavingContext.cpp.
References d.
| QString SvgSavingContext::getID | ( | const KoShape * | obj | ) |
Returns the unique id for the given shape.
Definition at line 114 of file SvgSavingContext.cpp.
References createUID(), d, and KoShape::name().
| bool SvgSavingContext::isSavingInlineImages | ( | ) | const |
Returns if image should be saved inline.
Definition at line 154 of file SvgSavingContext.cpp.
References d.
|
inline |
Definition at line 28 of file SvgSavingContext.cpp.
References SvgUtil::toUserSpace().
| QString SvgSavingContext::saveImage | ( | const QImage & | image | ) |
Saves given image and returns the href used.
Definition at line 183 of file SvgSavingContext.cpp.
References createFileName(), and isSavingInlineImages().
| void SvgSavingContext::setStrippedTextMode | ( | bool | value | ) |
Definition at line 210 of file SvgSavingContext.cpp.
| KoXmlWriter & SvgSavingContext::shapeWriter | ( | ) |
Provides access to the shape writer.
| bool SvgSavingContext::strippedTextMode | ( | ) | const |
| KoXmlWriter & SvgSavingContext::styleWriter | ( | ) |
Provides access to the style writer.
| QTransform SvgSavingContext::userSpaceTransform | ( | ) | const |
Returns the transformation used to transform into user space.
Definition at line 149 of file SvgSavingContext.cpp.
References d.
|
private |
Definition at line 64 of file SvgSavingContext.h.
| QIODevice* SvgSavingContext::mainDevice |
Definition at line 47 of file SvgSavingContext.cpp.
| bool SvgSavingContext::saveInlineImages |
Definition at line 57 of file SvgSavingContext.cpp.
| QBuffer SvgSavingContext::shapeBuffer |
Definition at line 50 of file SvgSavingContext.cpp.
| QHash<const KoShape*, QString> SvgSavingContext::shapeIds |
Definition at line 55 of file SvgSavingContext.cpp.
| KoXmlWriter & SvgSavingContext::shapeWriter |
Definition at line 52 of file SvgSavingContext.cpp.
| bool SvgSavingContext::strippedTextMode = false |
Definition at line 58 of file SvgSavingContext.cpp.
| QBuffer SvgSavingContext::styleBuffer |
Definition at line 49 of file SvgSavingContext.cpp.
| QIODevice* SvgSavingContext::styleDevice |
Definition at line 48 of file SvgSavingContext.cpp.
| KoXmlWriter & SvgSavingContext::styleWriter |
Definition at line 51 of file SvgSavingContext.cpp.
| QHash<QString, int> SvgSavingContext::uniqueNames |
Definition at line 54 of file SvgSavingContext.cpp.
| QTransform SvgSavingContext::userSpaceMatrix |
Definition at line 56 of file SvgSavingContext.cpp.