#ifndef REPORTVIEWER_H #define REPORTVIEWER_H #include #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(); 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