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