Commit graph

61 commits

Author SHA1 Message Date
John Layt 2550898805 Fixes to FilePrinter for Qt 4.4:
1) detectCupsService() finally works because QTCPSocket finally works.
   Assumes Cups is on localhost:631 which is a compromise as Qt won't
   even tell us if it is using Cups, let alone where Cups is.

2) Duplex printing obeys user selected option from dialog rather than 
   just guessing.

3) If custom page margins set then respect these


svn path=/trunk/KDE/kdegraphics/okular/; revision=895905
2008-12-11 23:04:07 +00:00
Laurent Montel c2fc9836e8 Fix iterator
svn path=/trunk/KDE/kdegraphics/okular/; revision=882957
2008-11-11 18:48:40 +00:00
John Layt c262ebf0bf Read the Cups options set in the Printer Properties window and the KDE
Cups Page and Job Options tabs, and pass these on to lpr.

CCBUG: 160381

This needs to be backported to 4.0 but I don't have a checkout.

svn path=/trunk/KDE/kdegraphics/okular/; revision=817393
2008-06-05 23:06:21 +00:00
John Layt 6b4adcee27 Some distros rename the CUPS version of lpr as lpr-cups or lpr.cups .
When detecting which exe to use, check for these first.

CCBUG: 156639

This should be backported to 4.0, but I don't have a checkout of that.

svn path=/trunk/KDE/kdegraphics/okular/; revision=816881
2008-06-04 21:28:48 +00:00
Pino Toscano af4fc6bc99 no moc needed
svn path=/trunk/KDE/kdegraphics/okular/; revision=811988
2008-05-24 10:53:57 +00:00
Adriaan de Groot 872d380582 Match const in implementation to interface (why isn't it a QString &, anyway?)
svn path=/trunk/KDE/kdegraphics/okular/; revision=791625
2008-03-30 01:36:05 +00:00
Pino Toscano 1f43811f61 redirect all the debug output of core to the debug area
svn path=/trunk/KDE/kdegraphics/okular/; revision=763941
2008-01-20 16:39:21 +00:00
Pino Toscano a35532befd I feel really sorry in reverting the last commit, but we keep binary compatibility :/
svn path=/trunk/KDE/kdegraphics/okular/; revision=760476
2008-01-12 18:52:27 +00:00
Albert Astals Cid 1c6cc2484f const & is your friend
svn path=/trunk/KDE/kdegraphics/okular/; revision=760473
2008-01-12 18:36:53 +00:00
Pino Toscano bd294e1de6 move the FilePrinterPreview to the kpart (no need for it to be in the core library)
svn path=/trunk/KDE/kdegraphics/okular/; revision=744225
2007-12-03 00:17:12 +00:00
John Layt 1b1ed9451b Enable Okular printing features:
* Add FilePrinter class to enable printing via postscript files
* DJVU, PDF, and PS backends print FilePrinter
* All backends enable printing of bookmarked pages
* Print and Print Preview actions enabled/disabled depending on backends
  printing ability

Note that FilePrinter only works on *NIX platforms with Cups, lpr, or lp.



svn path=/trunk/KDE/kdegraphics/okular/; revision=741990
2007-11-26 21:43:54 +00:00