[Kde-bindings] KDE/kdegraphics/okular/core
John Layt
john at layt.net
Fri Jun 4 19:04:05 UTC 2010
SVN commit 1134631 by jlayt:
Whoops! Didn't relise we had an API/BIC guarantee on Okular. Restore previous
API and make it call the new API.
CCMAIL: kde-bindings at kde.org
CCMAIL: aacid at kde.org
CCBUG: 194586
M +5 -0 fileprinter.cpp
M +10 -0 fileprinter.h
--- trunk/KDE/kdegraphics/okular/core/fileprinter.cpp #1134630:1134631
@@ -145,6 +145,11 @@
return ret;
}
+QList<int> FilePrinter::pageList( QPrinter &printer, int lastPage, const QList<int> &selectedPageList )
+{
+ return pageList( printer, lastPage, 0, selectedPageList );
+}
+
QList<int> FilePrinter::pageList( QPrinter &printer, int lastPage,
int currentPage, const QList<int> &selectedPageList )
{
--- trunk/KDE/kdegraphics/okular/core/fileprinter.h #1134630:1134631
@@ -102,12 +102,22 @@
*
* @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<int> pageList( QPrinter &printer, int lastPage,
int currentPage, const QList<int> &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<int> pageList( QPrinter &printer, int lastPage, const QList<int> &selectedPageList );
+
/** Return the range of pages selected by the user in the Print Dialog
*
* @param printer the print settings to use
More information about the Kde-bindings
mailing list