0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-23 16:22:58 +03:00

Printing prepared pages has been added

This commit is contained in:
Arin Alex 2019-06-03 22:30:50 +03:00
parent cff2b379d4
commit b3d19d3a67
4 changed files with 14 additions and 0 deletions

View File

@ -206,6 +206,7 @@ public:
IPreparedPages* preparedPages();
bool showPreparedPages(PreviewHints hints = PreviewBarsUserSetting);
bool prepareReportPages();
bool printPreparedPages();
signals:
void cleared();
void renderStarted();

View File

@ -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);

View File

@ -206,6 +206,7 @@ public:
IPreparedPages* preparedPages();
bool showPreparedPages(PreviewHints hints = PreviewBarsUserSetting);
bool prepareReportPages();
bool printPreparedPages();
signals:
void cleared();
void renderStarted();

View File

@ -247,6 +247,7 @@ public:
IPreparedPages* preparedPages();
bool showPreparedPages(PreviewHints hints);
bool prepareReportPages();
bool printPreparedPages();
signals:
void pagesLoadFinished();
void datasourceCollectionLoadFinished(const QString& collectionName);