mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
Add printedToPDF signal for digitally signing saved pdfs.
This commit is contained in:
@@ -484,7 +484,9 @@ bool ReportEnginePrivate::printToPDF(const QString &fileName)
|
||||
QPrinter printer;
|
||||
printer.setOutputFileName(fn);
|
||||
printer.setOutputFormat(QPrinter::PdfFormat);
|
||||
return printReport(&printer);
|
||||
bool success = printReport(&printer);
|
||||
if(success) emitPrintedToPDF(fileName);
|
||||
return success;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -600,6 +602,11 @@ void ReportEnginePrivate::emitSaveFinished()
|
||||
emit saveFinished();
|
||||
}
|
||||
|
||||
void ReportEnginePrivate::emitPrintedToPDF(QString fileName)
|
||||
{
|
||||
emit printedToPDF(fileName);
|
||||
}
|
||||
|
||||
bool ReportEnginePrivate::isSaved()
|
||||
{
|
||||
foreach (PageDesignIntf* page, m_pages) {
|
||||
@@ -1139,6 +1146,7 @@ ReportEngine::ReportEngine(QObject *parent)
|
||||
connect(d, SIGNAL(onLoad(bool&)), this, SIGNAL(onLoad(bool&)));
|
||||
connect(d, SIGNAL(saveFinished()), this, SIGNAL(saveFinished()));
|
||||
connect(d, SIGNAL(loaded()), this, SIGNAL(loaded()));
|
||||
connect(d, SIGNAL(printedToPDF(QString)), this, SIGNAL(printedToPDF(QString)));
|
||||
}
|
||||
|
||||
ReportEngine::~ReportEngine()
|
||||
|
||||
Reference in New Issue
Block a user