mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-23 16:39:07 +03:00
previewReport(QPrinter* printer, PreviewHints hints = PreviewBarsUserSetting) has been added to the report engine.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <QWidget>
|
||||
#include <QTimer>
|
||||
#include <QPrinter>
|
||||
#include "lrglobal.h"
|
||||
|
||||
namespace LimeReport {
|
||||
@@ -31,6 +32,8 @@ public:
|
||||
void setScaleType(const ScaleType &scaleType, int percent = 0);
|
||||
void setPreviewPageBackgroundColor(QColor color);
|
||||
QColor previewPageBackgroundColor();
|
||||
QPrinter *defaultPrinter() const;
|
||||
void setDefaultPrinter(QPrinter *defaultPrinter);
|
||||
public slots:
|
||||
void refreshPages();
|
||||
void zoomIn();
|
||||
@@ -71,6 +74,8 @@ private:
|
||||
int m_scalePercent;
|
||||
QTimer m_resizeTimer;
|
||||
QColor m_previewPageBackgroundColor;
|
||||
QPrinter* m_defaultPrinter;
|
||||
void printPages(QPrinter *printer);
|
||||
};
|
||||
|
||||
} // namespace LimeReport
|
||||
|
@@ -87,6 +87,7 @@ public:
|
||||
bool printToPDF(const QString& fileName);
|
||||
bool exportReport(QString exporterName, const QString &fileName = "", const QMap<QString, QVariant>& params = QMap<QString, QVariant>());
|
||||
void previewReport(PreviewHints hints = PreviewBarsUserSetting);
|
||||
void previewReport(QPrinter* printer, PreviewHints hints = PreviewBarsUserSetting);
|
||||
void designReport();
|
||||
ReportDesignWindowInterface* getDesignerWindow();
|
||||
void setShowProgressDialog(bool value);
|
||||
|
Reference in New Issue
Block a user