Blame SOURCES/0001-default-n-up-printing-of-notes-to-sensible-2-x-1-not.patch

ebc4bd
From 93c47f3f0310135c5d6216de9b4d25fd7c06e7dd Mon Sep 17 00:00:00 2001
ebc4bd
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
ebc4bd
Date: Thu, 18 Sep 2014 11:32:39 +0100
ebc4bd
Subject: [PATCH] default n-up printing of notes to sensible 2 x 1 not 1 x 2
ebc4bd
ebc4bd
i.e. throw away the maFirstPageSize cache based on the initial slide view which
ebc4bd
is typically in landscape mode
ebc4bd
ebc4bd
So that if we change to notes which are usually in portrait mode, and then
ebc4bd
visit n-up print, we get a default layout based on the notes orientation and
ebc4bd
not the slides orientation.
ebc4bd
ebc4bd
I hate printing
ebc4bd
ebc4bd
Change-Id: I8b7b81ce1eec0f9c5ecd7509b311cf4026958c2c
ebc4bd
---
ebc4bd
 vcl/source/window/printdlg.cxx | 8 ++++++++
ebc4bd
 1 file changed, 8 insertions(+)
ebc4bd
ebc4bd
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
ebc4bd
index cf9642e..d9ebf7c 100644
ebc4bd
--- a/vcl/source/window/printdlg.cxx
ebc4bd
+++ b/vcl/source/window/printdlg.cxx
ebc4bd
@@ -1787,6 +1787,14 @@ IMPL_LINK( PrintDialog, UIOption_SelectHdl, ListBox*, i_pBox )
ebc4bd
         sal_Int32 nVal( i_pBox->GetSelectEntryPos() );
ebc4bd
         pVal->Value <<= nVal;
ebc4bd
 
ebc4bd
+        //If we are in impress we start in print slides mode and get a
ebc4bd
+        //maFirstPageSize for slides which are usually landscape mode, if we
ebc4bd
+        //change to notes which are usually in portrait mode, and then visit
ebc4bd
+        //n-up print, we will assume notes are in landscape unless we throw
ebc4bd
+        //away maFirstPageSize when we change page content type
ebc4bd
+        if (pVal->Name == "PageContentType")
ebc4bd
+            maFirstPageSize = Size();
ebc4bd
+
ebc4bd
         checkOptionalControlDependencies();
ebc4bd
 
ebc4bd
         // update preview and page settings
ebc4bd
-- 
ebc4bd
1.9.3
ebc4bd