2016-03-30 23:04:59 +03:00
|
|
|
#ifndef LRPREVIEWREPORTWIDGET_P_H
|
|
|
|
#define LRPREVIEWREPORTWIDGET_P_H
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
#include "lrgraphicsviewzoom.h"
|
2016-03-30 23:04:59 +03:00
|
|
|
#include "lrpagedesignintf.h"
|
|
|
|
#include "lrreportrender.h"
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
namespace LimeReport {
|
2016-03-30 23:04:59 +03:00
|
|
|
|
|
|
|
class PreviewReportWidget;
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
class PreviewReportWidgetPrivate {
|
2016-03-30 23:04:59 +03:00
|
|
|
public:
|
2016-04-02 03:38:23 +03:00
|
|
|
PreviewReportWidgetPrivate(PreviewReportWidget* previewReportWidget):
|
2024-09-04 17:31:16 +03:00
|
|
|
m_previewPage(NULL),
|
|
|
|
m_report(NULL),
|
|
|
|
m_zoomer(NULL),
|
|
|
|
m_currentPage(1),
|
|
|
|
m_changingPage(false),
|
|
|
|
m_priorScrolValue(0),
|
|
|
|
m_scalePercent(50),
|
|
|
|
q_ptr(previewReportWidget),
|
|
|
|
m_previePageColor(Qt::white)
|
|
|
|
{
|
|
|
|
}
|
2016-03-30 23:04:59 +03:00
|
|
|
bool pageIsVisible();
|
|
|
|
QRectF calcPageShift();
|
2024-09-04 17:31:16 +03:00
|
|
|
void setPages(ReportPages pages);
|
2016-04-02 03:38:23 +03:00
|
|
|
PageItemDesignIntf::Ptr currentPage();
|
2018-06-23 00:04:28 +03:00
|
|
|
QList<QString> aviableExporters();
|
2019-02-21 03:20:26 +03:00
|
|
|
void startInsertTextItem();
|
2019-03-01 23:48:28 +03:00
|
|
|
void activateItemSelectionMode();
|
|
|
|
void deleteSelectedItems();
|
2024-09-04 17:31:16 +03:00
|
|
|
|
2016-03-30 23:04:59 +03:00
|
|
|
public:
|
|
|
|
PageDesignIntf* m_previewPage;
|
2024-09-04 17:31:16 +03:00
|
|
|
ReportPages m_reportPages;
|
2016-03-30 23:04:59 +03:00
|
|
|
ReportEnginePrivate* m_report;
|
|
|
|
GraphicsViewZoomer* m_zoomer;
|
|
|
|
int m_currentPage;
|
|
|
|
bool m_changingPage;
|
|
|
|
int m_priorScrolValue;
|
2016-04-02 03:38:23 +03:00
|
|
|
int m_scalePercent;
|
2016-03-30 23:04:59 +03:00
|
|
|
PreviewReportWidget* q_ptr;
|
2019-02-18 15:16:55 +03:00
|
|
|
QColor m_previePageColor;
|
2016-03-30 23:04:59 +03:00
|
|
|
};
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
} // namespace LimeReport
|
2016-03-30 23:04:59 +03:00
|
|
|
#endif // LRPREVIEWREPORTWIDGET_P_H
|