Krita Source Code Documentation
Loading...
Searching...
No Matches
HtmlSavingContext.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2017 Boudewijn Rempt <boud@valdyas.org>
3
*
4
* SPDX-License-Identifier: LGPL-2.0-or-later
5
*/
6
7
#include "
HtmlSavingContext.h
"
8
#include <
KoXmlWriter.h
>
9
#include <
KoShape.h
>
10
#include <QBuffer>
11
12
struct
HtmlSavingContext::Private
{
13
14
Private
(QIODevice *_shapeDevice)
15
:
shapeDevice
(_shapeDevice)
16
,
shapeWriter
(0)
17
{
18
shapeWriter
.reset(
new
KoXmlWriter
(&
shapeBuffer
, 1));
19
}
20
21
QIODevice *
shapeDevice
;
22
QBuffer
shapeBuffer
;
23
QScopedPointer<KoXmlWriter>
shapeWriter
;
24
};
25
26
HtmlSavingContext::HtmlSavingContext
(QIODevice &shapeDevice)
27
: d(new
Private
(&shapeDevice))
28
{
29
}
30
31
HtmlSavingContext::~HtmlSavingContext
()
32
{
33
d
->shapeDevice->write(
d
->shapeBuffer.data());
34
}
35
36
KoXmlWriter
&
HtmlSavingContext::shapeWriter
()
37
{
38
return
*
d
->shapeWriter;
39
}
HtmlSavingContext.h
KoShape.h
KoXmlWriter.h
HtmlSavingContext::shapeWriter
KoXmlWriter & shapeWriter()
Provides access to the shape writer.
Definition
HtmlSavingContext.cpp:36
HtmlSavingContext::d
const QScopedPointer< Private > d
Definition
HtmlSavingContext.h:34
HtmlSavingContext::~HtmlSavingContext
virtual ~HtmlSavingContext()
Definition
HtmlSavingContext.cpp:31
HtmlSavingContext::HtmlSavingContext
HtmlSavingContext(QIODevice &shapeDevice)
Definition
HtmlSavingContext.cpp:26
KoXmlWriter
Definition
KoXmlWriter.cpp:20
Private
Definition
SvgTransformParser.cpp:20
HtmlSavingContext::Private
Definition
HtmlSavingContext.cpp:12
HtmlSavingContext::Private::shapeWriter
QScopedPointer< KoXmlWriter > shapeWriter
Definition
HtmlSavingContext.cpp:23
HtmlSavingContext::Private::shapeBuffer
QBuffer shapeBuffer
Definition
HtmlSavingContext.cpp:22
HtmlSavingContext::Private::shapeDevice
QIODevice * shapeDevice
Definition
HtmlSavingContext.cpp:21
HtmlSavingContext::Private::Private
Private(QIODevice *_shapeDevice)
Definition
HtmlSavingContext.cpp:14
libs
flake
html
HtmlSavingContext.cpp
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52