2018-06-23 00:04:28 +03:00
|
|
|
#ifndef LRPDFEXPORTER_H
|
|
|
|
#define LRPDFEXPORTER_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include "lrexporterintf.h"
|
|
|
|
|
|
|
|
namespace LimeReport{
|
|
|
|
class ReportEnginePrivate;
|
|
|
|
|
|
|
|
class PDFExporter : public QObject, public ReportExporterInterface
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2019-08-11 00:45:27 +03:00
|
|
|
explicit PDFExporter(ReportEnginePrivate *parent = NULL);
|
2018-06-23 00:04:28 +03:00
|
|
|
// ReportExporterInterface interface
|
|
|
|
bool exportPages(ReportPages pages, const QString &fileName, const QMap<QString, QVariant> ¶ms);
|
|
|
|
QString exporterName()
|
|
|
|
{
|
|
|
|
return "PDF";
|
|
|
|
}
|
|
|
|
QString exporterFileExt()
|
|
|
|
{
|
|
|
|
return "pdf";
|
|
|
|
}
|
|
|
|
QString hint()
|
|
|
|
{
|
|
|
|
return tr("Export to PDF");
|
|
|
|
}
|
|
|
|
private:
|
|
|
|
ReportEnginePrivate* m_reportEngine;
|
|
|
|
};
|
|
|
|
|
|
|
|
} //namespace LimeReport
|
|
|
|
|
|
|
|
#endif // LRPDFEXPORTER_H
|