[Libreoffice-commits] .: vcl/source

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Sun Aug 14 10:11:27 PDT 2011


 vcl/source/window/printdlg.cxx |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

New commits:
commit ddafafe5f91e565be418e20eb7e447f8b1849f94
Author: Alex Kempshall <mcmurchy1917-libreoffice at yahoo.co.uk>
Date:   Sun Aug 14 08:42:06 2011 +0100

    Preserve CollateSingleJobs between calls to print dialog
    
    Preserves the  CollateSingleJobs between calls to print dialog

diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 3629329..5f01ac2 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -695,6 +695,19 @@ void PrintDialog::OutputOptPage::setupLayout()
 
 void PrintDialog::OutputOptPage::readFromSettings()
 {
+    SettingsConfigItem* pItem = SettingsConfigItem::get();
+    rtl::OUString aValue;
+    aValue = pItem->getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PrintDialog" ) ),
+                              rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CollateSingleJobs" ) ) );
+    if ( aValue.equalsIgnoreAsciiCaseAscii( "true" ) )
+    {
+        maCollateSingleJobsBox.Check( sal_True );
+    }
+    else
+    {
+        maCollateSingleJobsBox.Check( sal_False );
+    }
+    Resize();
 }
 
 void PrintDialog::OutputOptPage::storeToSettings()
@@ -704,6 +717,10 @@ void PrintDialog::OutputOptPage::storeToSettings()
                      rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ToFile" ) ),
                      maToFileBox.IsChecked() ? rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("true"))
                                              : rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("false")) );
+    pItem->setValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PrintDialog" ) ),
+                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CollateSingleJobs" ) ),
+                     maCollateSingleJobsBox.IsChecked() ? rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("true")) :
+                                                rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("false")) );
 }
 
 PrintDialog::PrintDialog( Window* i_pParent, const boost::shared_ptr<PrinterController>& i_rController )


More information about the Libreoffice-commits mailing list