Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
805 B
Raw Blame
/*
 * SPDX-FileCopyrightText: 2017 Boudewijn Rempt <[email protected]>
 *
 * SPDX-License-Identifier: LGPL-2.0-or-later
 */

#ifndef HTMLWRITER_H
#define HTMLWRITER_H

#include <QList>
#include <QSizeF>

class KoShapeLayer;
class KoShapeGroup;
class KoShape;
class KoPathShape;
class QIODevice;
class QString;
class HtmlSavingContext;

// Implements writing shapes to HTML
class HtmlWriter
{
public:
    HtmlWriter(const QList<KoShape*> &toplevelShapes);
    virtual ~HtmlWriter();

    bool save(QIODevice &outputDevice);

    QStringList errors() const;
    QStringList warnings() const;

private:

    void saveShapes(const QList<KoShape*> shapes, HtmlSavingContext &savingContext);

    QList<KoShape*> m_toplevelShapes;
    QStringList m_errors;
    QStringList m_warnings;
};

#endif // HTMLWRITER_H