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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user