diff options
author | Povilas Kanapickas <povilas.kanapickas@gmail.com> | 2010-10-18 15:37:46 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-18 15:37:46 +0100 |
commit | 628d36ff1efc0bbfb9f387e240adda2277067ce8 (patch) | |
tree | 0ccd139bd325d7728291d2017cbefb72d925a05b /sd/source/ui/view/DocumentRenderer.cxx | |
parent | 6fdcfcc10dd6d46bc3c954d0a18a39161f04a221 (diff) |
remove non-compiled code
Diffstat (limited to 'sd/source/ui/view/DocumentRenderer.cxx')
-rw-r--r-- | sd/source/ui/view/DocumentRenderer.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index eab0ba8ca293..1165b5bb3c2e 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -2258,12 +2258,6 @@ private: // if CutPage is set then do not move it, otherwise move the // scaled page to printable area - #if 0 - if (bCutPage) - aMap.SetOrigin(Point(-aPageOffset.X(), -aPageOffset.Y())); - else - aMap.SetOrigin(Point(0,0)); - #endif maPrinterPages.push_back( ::boost::shared_ptr<PrinterPage>( new RegularPrinterPage( @@ -2288,13 +2282,9 @@ private: rInfo.maPageSize.Width() - rPage.GetLftBorder() - rPage.GetRgtBorder()); const long nPageHeight ( rInfo.maPageSize.Height() - rPage.GetUppBorder() - rPage.GetLwrBorder()); - #if 0 - Point aOrigin ( - nPageWidth < rInfo.maPrintSize.Width() ? -aPageOffset.X() : 0, - nPageHeight < rInfo.maPrintSize.Height() ? -aPageOffset.Y() : 0); - #else + Point aOrigin ( 0, 0 ); - #endif + for (Point aPageOrigin = aOrigin; -aPageOrigin.Y()<nPageHeight; aPageOrigin.Y() -= rInfo.maPrintSize.Height()) |