From d3afbfc954cd9e3f99e3bd77fa87d70055447e03 Mon Sep 17 00:00:00 2001 From: Philipp Lohmann Date: Wed, 24 Jun 2009 17:37:07 +0000 Subject: prepare for more properties from the outside (e.g. API printing) --- vcl/source/window/printdlg.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'vcl/source/window/printdlg.cxx') diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index fd6a2422defc..138c75427d6d 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -349,7 +349,7 @@ void PrintDialog::JobTabPage::readFromSettings() // do not actually make copy count persistent // the assumption is that this would lead to a lot of unwanted copies aValue = pItem->getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PrintDialog_JobPage" ) ), - rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Copies" ) ) ); + rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CopyCount" ) ) ); sal_Int32 nVal = aValue.toInt32(); maCopyCountField.SetValue( sal_Int64(nVal > 1 ? nVal : 1) ); #endif @@ -366,7 +366,7 @@ void PrintDialog::JobTabPage::storeToSettings() rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ToFile" ) ), rtl::OUString::createFromAscii( maToFileBox.IsChecked() ? "true" : "false" ) ); pItem->setValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PrintDialog_JobPage" ) ), - rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Copies" ) ), + rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CopyCount" ) ), maCopyCountField.GetText() ); pItem->setValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PrintDialog_JobPage" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Collate" ) ), @@ -1311,6 +1311,11 @@ IMPL_LINK( PrintDialog, ModifyHdl, Edit*, pEdit ) mnCurPage = sal_Int32( maPageEdit.GetValue() - 1 ); preparePreview( true, true ); } + else if( pEdit == &maJobPage.maCopyCountField ) + { + maPListener->setValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CopyCount" ) ), + makeAny( sal_Int32(maJobPage.maCopyCountField.GetValue()) ) ); + } return 0; } -- cgit