2021-05-15 15:28:17 +02:00
|
|
|
#ifndef VPEXPORTER_H
|
|
|
|
#define VPEXPORTER_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "vplayout.h"
|
|
|
|
#include "../vmisc/def.h"
|
|
|
|
#include "vcommonsettings.h"
|
|
|
|
#include "../vlayout/vlayoutdef.h"
|
2021-05-22 11:00:42 +02:00
|
|
|
#include "../vlayout/vlayoutexporter.h"
|
2021-05-15 15:28:17 +02:00
|
|
|
|
|
|
|
//#include "../dialogs/dialogsavelayout.h"
|
|
|
|
|
|
|
|
class VPMainGraphicsView;
|
|
|
|
|
2021-05-22 11:00:42 +02:00
|
|
|
class VPExporter : VLayoutExporter
|
2021-05-15 15:28:17 +02:00
|
|
|
{
|
|
|
|
public:
|
2021-05-22 11:00:42 +02:00
|
|
|
VPExporter();
|
2021-05-15 15:28:17 +02:00
|
|
|
~VPExporter();
|
|
|
|
|
2021-05-22 11:00:42 +02:00
|
|
|
void Export(VPLayout* layout, LayoutExportFormats format, VPMainGraphicsView *mainGraphicsView);
|
2021-05-15 15:28:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
// FIXME Bad copy paste from DialogSaveLayout, because I didn't know how to call this function from here
|
|
|
|
// to be removed as soon as I know how to call the central function from valentina
|
|
|
|
QVector<std::pair<QString, LayoutExportFormats> > InitFormats();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME Bad copy paste from DialogSaveLayout, because I didn't know how to call this function from here
|
|
|
|
// to be removed as soon as I know how to call the central function from valentina
|
|
|
|
static QString ExportFormatDescription(LayoutExportFormats format);
|
|
|
|
static QString ExportFormatSuffix(LayoutExportFormats format);
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // VPEXPORTER_H
|