0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

Exporters infrastructure has been added

This commit is contained in:
Arin Alexander
2018-06-23 00:04:28 +03:00
parent 44e37178d0
commit fef507dde0
21 changed files with 275 additions and 40 deletions

View File

@@ -41,6 +41,10 @@
#include "serializators/lrxmlqrectserializator.h"
#include "serializators/lrxmlserializatorsfactory.h"
#include "lrexportersfactory.h"
#include "lrexporterintf.h"
#include "exporters/lrpdfexporter.h"
void initResources(){
Q_INIT_RESOURCE(report);
#ifdef HAVE_REPORT_DESIGNER
@@ -442,4 +446,17 @@ void initSerializators()
XMLAbstractSerializatorFactory::instance().registerCreator("QRectF", createQRectSerializator);
}
LimeReport::ReportExporterInterface* createPDFExporter(ReportEnginePrivate* parent){
return new LimeReport::PDFExporter(parent);
}
void initExporters()
{
ExportersFactory::instance().registerCreator(
"PDF",
LimeReport::ExporterAttribs(QObject::tr("Export to PDF"), "PDFExporter"),
createPDFExporter
);
}
} //namespace LimeReport