summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Kempshall <mcmurchy1917-libreoffice@yahoo.co.uk>2011-08-14 08:42:06 +0100
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-08-14 12:07:09 -0500
commitddafafe5f91e565be418e20eb7e447f8b1849f94 (patch)
tree7ed9c33c78d9811747f3fbf31b27ad53e104a2ca
parentcadce8b2532c20bdf48bc6f891705acdc5dced2e (diff)
Preserve CollateSingleJobs between calls to print dialog
Preserves the CollateSingleJobs between calls to print dialog
-rw-r--r--vcl/source/window/printdlg.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 36293298172c..5f01ac28137d 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 )