Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgSavingContext.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
* SPDX-FileCopyrightText: 2011 Jan Hambrecht <jaham@gmx.net>
3
*
4
* SPDX-License-Identifier: LGPL-2.0-or-later
5
*/
6
7
#ifndef SVGSAVINGCONTEXT_H
8
#define SVGSAVINGCONTEXT_H
9
10
#include <QtGlobal>
11
12
class
KoXmlWriter
;
13
class
KoShape
;
14
class
QIODevice;
15
class
QString;
16
class
QTransform;
17
class
QImage;
18
19
#include "kritaflake_export.h"
20
22
class
KRITAFLAKE_EXPORT
SvgSavingContext
23
{
24
public
:
26
explicit
SvgSavingContext
(QIODevice &outputDevice,
bool
saveInlineImages =
true
);
27
explicit
SvgSavingContext
(QIODevice &shapesDevice, QIODevice &styleDevice,
bool
saveInlineImages =
true
);
28
30
virtual
~SvgSavingContext
();
31
33
KoXmlWriter
&
styleWriter
();
34
36
KoXmlWriter
&
shapeWriter
();
37
39
QString createUID(
const
QString &base);
40
42
QString getID(
const
KoShape
*obj);
43
45
QTransform userSpaceTransform()
const
;
46
48
bool
isSavingInlineImages()
const
;
49
51
QString createFileName(
const
QString &extension);
52
54
QString saveImage(
const
QImage &image);
55
56
void
setStrippedTextMode(
bool
value
);
57
bool
strippedTextMode
()
const
;
58
59
private
:
60
Q_DISABLE_COPY(
SvgSavingContext
)
61
62
private
:
63
class
Private
;
64
Private
*
const
d
;
65
};
66
67
#endif
// SVGSAVINGCONTEXT_H
value
float value(const T *src, size_t ch)
Definition
JPEGXLImport.cpp:93
KoShape
Definition
KoShape.h:92
KoXmlWriter
Definition
KoXmlWriter.cpp:20
SvgSavingContext
Context for saving svg files.
Definition
SvgSavingContext.cpp:26
SvgSavingContext::styleWriter
KoXmlWriter & styleWriter()
Provides access to the style writer.
SvgSavingContext::strippedTextMode
bool strippedTextMode() const
SvgSavingContext::d
Private *const d
Definition
SvgSavingContext.h:64
SvgSavingContext::shapeWriter
KoXmlWriter & shapeWriter()
Provides access to the shape writer.
Private
Definition
SvgTransformParser.cpp:20
libs
flake
svg
SvgSavingContext.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52