Commit Graph

24 Commits

Author SHA1 Message Date
Albert Astals Cid
42c03e2139 Merge remote-tracking branch 'origin/KDE/4.9' 2012-10-10 23:18:56 +02:00
Albert Astals Cid
1525dea87d Fix printing contiguous selected pages with bookmarks
BUGS: 308200
FIXED-IN: 4.9.3
2012-10-10 23:17:17 +02:00
Albert Astals Cid
a716b3e4e0 kill all the deprecated functions now that we've change ABI anyway 2012-09-06 19:10:03 +02:00
Albert Astals Cid
d3ebf089c4 Do not rely on extension but on output format for conversion
BUGS: 277801
2011-08-11 16:17:24 +01:00
Kevin Kofler
e001fbab55 Fix landscape documents getting printed in portrait format if "Landscape" is selected in the print dialog (the default).
Partly based on a patch by Falk from KDE bug #181290.

BUG: 181290
REVIEW: 101513
2011-07-28 01:41:48 +02:00
John Layt
80a04bd577 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@kde.org
CCMAIL: aacid@kde.org
CCBUG: 194586


svn path=/trunk/KDE/kdegraphics/okular/; revision=1134631
2010-06-04 19:04:05 +00:00
John Layt
b30305b668 Enable Current Page option in Okular print dialog if running Qt >= 4.7
Changed exported api so cc: to bindings.
CCMAIL: kde-bindings@kde.org

CCBUG: 194586


svn path=/trunk/KDE/kdegraphics/okular/; revision=1134379
2010-06-04 08:25:25 +00:00
Luigi Toscano
2bacaf9e14 New method to get the proper PrintError from the printFile* return value
svn path=/trunk/KDE/kdegraphics/okular/; revision=1115578
2010-04-16 21:56:16 +00:00
Albert Astals Cid
ce41955ab8 avoid copying a file if we can just rename it
svn path=/trunk/KDE/kdegraphics/okular/; revision=1114913
2010-04-14 21:38:40 +00:00
Glen Kaukola
122fab0eee Krazy: Check single-char QString operations for efficiency.
svn path=/trunk/KDE/kdegraphics/okular/; revision=1110335
2010-04-02 19:07:36 +00:00
John Layt
9122f0db26 Improve CUPS detection to always match Qt, including if remote CUPS server
svn path=/trunk/KDE/kdegraphics/okular/; revision=1088926
2010-02-11 22:48:06 +00:00
John Layt
ed9bbddace Print correct number of copies using new Qt api
Add eror code if print to file fails

BUG: 155695

svn path=/trunk/KDE/kdegraphics/okular/; revision=1065863
2009-12-24 14:39:49 +00:00
John Layt
cc45ce4a1e Fix Print to File output by using Ghostscript ps2pdf to convert ps print file
into pdf format and save that.  Only enabled in PDF, DVI, and DJVU generators
if ps2pdf is found in the path.  Ghostscript is almost always guaranteed to
be installed given many parts of the printing stack depends on it.

Note that resulting PDF or PS file will have the page size as set in the print
dialog and not the page size of the original document, i.e. if an A5 booklet
is printed but the dialog page size is set to A4 then the resulting file will
be A4 and not A5.

svn path=/trunk/KDE/kdegraphics/okular/; revision=897000
2008-12-14 23:18:52 +00:00
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