diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-08-30 15:36:21 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-08-30 15:36:21 +0000 |
commit | cc4dc0f91e3e47f9515f2206083dc645dc439ec8 (patch) | |
tree | cf82e114375ed9745d8240ad16fdaec179afb5c1 /sd/source/ui/view/PrintManager.cxx | |
parent | 3ad7cb9264109fe752919169009b3308b358baec (diff) |
INTEGRATION: CWS impress129_SRC680 (1.17.48); FILE MERGED
2007/08/28 11:46:41 af 1.17.48.1: #i80180# Inserting empty pages when printing multiple collated copies in duplex mode.
Diffstat (limited to 'sd/source/ui/view/PrintManager.cxx')
-rw-r--r-- | sd/source/ui/view/PrintManager.cxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sd/source/ui/view/PrintManager.cxx b/sd/source/ui/view/PrintManager.cxx index a46fbde301ca..87d9d4ed82d6 100644 --- a/sd/source/ui/view/PrintManager.cxx +++ b/sd/source/ui/view/PrintManager.cxx @@ -4,9 +4,9 @@ * * $RCSfile: PrintManager.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: obo $ $Date: 2007-07-17 13:02:25 $ + * last change: $Author: vg $ $Date: 2007-08-30 16:36:21 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -557,6 +557,19 @@ USHORT PrintManager::Print (SfxProgress& rProgress, BOOL bIsAPI, PrintDialog* p PrintStdOrNotes(aInfo, nPage, PK_NOTES, FALSE); aInfo.mnProgressOffset += (nSelectCount * ( nCollateCopies > 1 ? 1 : nCopies)); } + + // When in duplex mode then add an empty page after printing + // an odd number of pages. This is to avoid the first page + // of the next run being printed on the backside of the + // current page. + if (nCollateCopies > 1 + && n<nCollateCopies + && (pPrinter->GetCurPage()%2)==0 + && (pPrinter->GetDuplexMode()==DUPLEX_ON)) + { + pPrinter->StartPage(); + pPrinter->EndPage(); + } } } |