diff --git a/core/fileprinter.cpp b/core/fileprinter.cpp index ca35cb0d2..f08b1048f 100644 --- a/core/fileprinter.cpp +++ b/core/fileprinter.cpp @@ -145,6 +145,11 @@ int FilePrinter::doPrintFiles( QPrinter &printer, QStringList fileList, FileDele return ret; } +QList FilePrinter::pageList( QPrinter &printer, int lastPage, const QList &selectedPageList ) +{ + return pageList( printer, lastPage, 0, selectedPageList ); +} + QList FilePrinter::pageList( QPrinter &printer, int lastPage, int currentPage, const QList &selectedPageList ) { diff --git a/core/fileprinter.h b/core/fileprinter.h index 740afd24c..f81ab9b1d 100644 --- a/core/fileprinter.h +++ b/core/fileprinter.h @@ -102,12 +102,22 @@ public: * * @param printer the print settings to use * @param lastPage the last page number, needed if AllPages option is selected + * @param currentPage the current page number, needed if CurrentPage option is selected * @param selectedPageList list of pages to use if Selection option is selected * @returns Returns list of pages to print */ static QList pageList( QPrinter &printer, int lastPage, int currentPage, const QList &selectedPageList ); + /** Return the list of pages selected by the user in the Print Dialog + * + * @param printer the print settings to use + * @param lastPage the last page number, needed if AllPages option is selected + * @param selectedPageList list of pages to use if Selection option is selected + * @returns Returns list of pages to print + */ + static QList pageList( QPrinter &printer, int lastPage, const QList &selectedPageList ); + /** Return the range of pages selected by the user in the Print Dialog * * @param printer the print settings to use