Krita Source Code Documentation
Loading...
Searching...
No Matches
HtmlWriter.h
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#ifndef HTMLWRITER_H
8#define HTMLWRITER_H
9
10#include <QList>
11#include <QSizeF>
12
13class KoShapeLayer;
14class KoShapeGroup;
15class KoShape;
16class KoPathShape;
17class QIODevice;
18class QString;
20
21// Implements writing shapes to HTML
23{
24public:
25 HtmlWriter(const QList<KoShape*> &toplevelShapes);
26 virtual ~HtmlWriter();
27
28 bool save(QIODevice &outputDevice);
29
30 QStringList errors() const;
31 QStringList warnings() const;
32
33private:
34
35 void saveShapes(const QList<KoShape*> shapes, HtmlSavingContext &savingContext);
36
40};
41
42#endif // HTMLWRITER_H
The HtmlSavingContext class provides context for saving a flake-based document to html.
QStringList m_warnings
Definition HtmlWriter.h:39
QStringList errors() const
virtual ~HtmlWriter()
bool save(QIODevice &outputDevice)
QStringList m_errors
Definition HtmlWriter.h:38
QList< KoShape * > m_toplevelShapes
Definition HtmlWriter.h:37
HtmlWriter(const QList< KoShape * > &toplevelShapes)
QStringList warnings() const
void saveShapes(const QList< KoShape * > shapes, HtmlSavingContext &savingContext)
The position of a path point within a path shape.
Definition KoPathShape.h:63