[ooo-build-commit] 2 commits - patches/dev300
Radek DoulÃk
rodo at kemper.freedesktop.org
Thu Sep 17 10:10:37 PDT 2009
patches/dev300/apply | 3 +++
patches/dev300/sd-print-fix-pageoffset.diff | 27 +++++++++++++++++++++++++++
2 files changed, 30 insertions(+)
New commits:
commit c45210f1be914e80d414769d8a44b493470cebb8
Author: Radek Doulik <rodo at rychlik.lounovice>
Date: Thu Sep 17 17:58:16 2009 +0200
small patch clean
* patches/dev300/sd-print-fix-pageoffset.diff:
diff --git a/patches/dev300/sd-print-fix-pageoffset.diff b/patches/dev300/sd-print-fix-pageoffset.diff
index 910ec5d..52a33d8 100644
--- a/patches/dev300/sd-print-fix-pageoffset.diff
+++ b/patches/dev300/sd-print-fix-pageoffset.diff
@@ -25,4 +25,3 @@ diff -rup sd/source/ui/view-orig//PrintManager.cxx sd/source/ui/view/PrintManage
for (aPageOrigin = aOrigin;
-aPageOrigin.Y()<aPageHeight;
aPageOrigin.Y() -= aPrintHeight)
-Only in sd/source/ui/view: PrintManager.cxx~
commit 376aae2300cb058637b5017acf6e76140a9effd6
Author: Radek Doulik <rodo at rychlik.lounovice>
Date: Thu Sep 17 17:56:29 2009 +0200
fix slides printing page offset, partialy fixes n#537931
* patches/dev300/apply:
* patches/dev300/sd-print-fix-pageoffset.diff:
diff --git a/patches/dev300/apply b/patches/dev300/apply
index 88066c8..525d551 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -3391,3 +3391,6 @@ build-fix-win32.diff
[ EMFPlus ]
emf+-driver-string.diff, n#519715, rodo
+
+[ Fixes ]
+sd-print-fix-pageoffset.diff
diff --git a/patches/dev300/sd-print-fix-pageoffset.diff b/patches/dev300/sd-print-fix-pageoffset.diff
new file mode 100644
index 0000000..910ec5d
--- /dev/null
+++ b/patches/dev300/sd-print-fix-pageoffset.diff
@@ -0,0 +1,28 @@
+diff -rup sd/source/ui/view-orig//PrintManager.cxx sd/source/ui/view/PrintManager.cxx
+--- sd/source/ui/view-orig//PrintManager.cxx 2009-09-17 15:45:07.000000000 +0200
++++ sd/source/ui/view/PrintManager.cxx 2009-09-17 17:43:47.000000000 +0200
+@@ -1610,15 +1610,18 @@ void PrintManager::PrintStdOrNotes (
+ }
+ else
+ {
++ Point aOrigin;
++
++ // if the printable area is bigger than page size, center the page
++ if( aPageSize.Width() < aPrintWidth )
++ aOrigin.X() = ( aPrintWidth - aPageSize.Width() )/2;
++ if( aPageSize.Height() < aPrintHeight )
++ aOrigin.Y() = ( aPrintHeight - aPageSize.Height() )/2;
++
+ // Handle 3. Print parts of the page in the
+ // size of the printable area until the
+ // whole page is covered.
+
+- // keep the page content at its
+- // position if it fits, otherwise move
+- // it to the printable area
+- Point aOrigin (aPageWidth < aPrintWidth ? -aPageOfs.X() : 0, aPageHeight < aPrintHeight ? -aPageOfs.Y() : 0);
+-
+ for (aPageOrigin = aOrigin;
+ -aPageOrigin.Y()<aPageHeight;
+ aPageOrigin.Y() -= aPrintHeight)
+Only in sd/source/ui/view: PrintManager.cxx~
More information about the ooo-build-commit
mailing list