[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Future of KPrinter
From: David Faure <faure () kde ! org>
Date: 2007-09-12 8:57:38
Message-ID: 200709121057.38862.faure () kde ! org
[Download RAW message or body]
On Sunday 09 September 2007, Kurt Pfeifle wrote:
> Also, in part at least, you don't seem to be familiar with CUPS and cur-
> rent KDEPrint. (For example, the "list of pages" you mention: this list
> is handed to CUPS as a parameter, alongside the all-pages containing
> print job. And it is then CUPS with its pstops filter that extracts the
> pages named for printing. (And I'm not aware if any KDE application does
> use this to *itself* do the page selection for the print job).
KWord-1.6 does it, at least.
// Use page list specified in kdeprint dialogbox
QValueList<int> pageList = printer->pageList();
[...]
QValueList<int>::Iterator it = pageList.begin();
for ( ; it != pageList.end(); ++it )
{
[...]
You wouldn't want a 100-pages document to print all 100 into QPainter just to
print the 2nd page, would you? ;)
--
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic