You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
701 B
C++

#ifndef REPORTVIEWER_H
#define REPORTVIEWER_H
#include <QDialog>
#include "report.h"
namespace Ui {
class ReportViewer;
}
namespace LimeReport {
class PreviewReportWidget;
class ReportEngine;
}
class ReportViewer : public QDialog
{
Q_OBJECT
public:
explicit ReportViewer(QWidget *parent = 0);
~ReportViewer();
void setReport(ReportPtr report);
void openPreview();
void directPrint(bool dialog = true);
private slots:
void on_btnClose_clicked();
void on_btnEdit_clicked();
void slotPageSet(int page);
private:
Ui::ReportViewer *ui;
LimeReport::PreviewReportWidget *m_prevWidget;
LimeReport::ReportEngine *m_report;
};
#endif // REPORTVIEWER_H