diff --git a/include/lrreportengine.h b/include/lrreportengine.h index 07fcf91..c36d7bb 100644 --- a/include/lrreportengine.h +++ b/include/lrreportengine.h @@ -206,6 +206,7 @@ public: IPreparedPages* preparedPages(); bool showPreparedPages(PreviewHints hints = PreviewBarsUserSetting); bool prepareReportPages(); + bool printPreparedPages(); signals: void cleared(); void renderStarted(); diff --git a/limereport/lrreportengine.cpp b/limereport/lrreportengine.cpp index 6442f68..6f189c7 100644 --- a/limereport/lrreportengine.cpp +++ b/limereport/lrreportengine.cpp @@ -996,6 +996,11 @@ bool ReportEnginePrivate::prepareReportPages() return !m_preparedPages.isEmpty(); } +bool ReportEnginePrivate::printPreparedPages() +{ + return printPages(m_preparedPages, 0); +} + Qt::LayoutDirection ReportEnginePrivate::previewLayoutDirection() { return m_previewLayoutDirection; @@ -1633,6 +1638,12 @@ bool ReportEngine::prepareReportPages() return d->prepareReportPages(); } +bool ReportEngine::printPreparedPages() +{ + Q_D(ReportEngine); + return d->printPreparedPages(); +} + void ReportEngine::setShowProgressDialog(bool value) { Q_D(ReportEngine); diff --git a/limereport/lrreportengine.h b/limereport/lrreportengine.h index 07fcf91..c36d7bb 100644 --- a/limereport/lrreportengine.h +++ b/limereport/lrreportengine.h @@ -206,6 +206,7 @@ public: IPreparedPages* preparedPages(); bool showPreparedPages(PreviewHints hints = PreviewBarsUserSetting); bool prepareReportPages(); + bool printPreparedPages(); signals: void cleared(); void renderStarted(); diff --git a/limereport/lrreportengine_p.h b/limereport/lrreportengine_p.h index 47cf6c3..82a7bd4 100644 --- a/limereport/lrreportengine_p.h +++ b/limereport/lrreportengine_p.h @@ -247,6 +247,7 @@ public: IPreparedPages* preparedPages(); bool showPreparedPages(PreviewHints hints); bool prepareReportPages(); + bool printPreparedPages(); signals: void pagesLoadFinished(); void datasourceCollectionLoadFinished(const QString& collectionName);