diff options
author | Rüdiger Timm <rt@openoffice.org> | 2007-07-05 06:46:03 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2007-07-05 06:46:03 +0000 |
commit | 60f2b2068dca5325063ad1d451c3c69d692277d3 (patch) | |
tree | ba1defff036216562220c8a5620c1f73dbc7746f /svx/source/dialog | |
parent | cb88d2030013820a616346616351856f7acf992c (diff) |
INTEGRATION: CWS os96 (1.16.72); FILE MERGED
2007/06/19 06:18:40 pb 1.16.72.1: fix: #i76855# CheckBox aLoadDocPrinterCB added
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/optsave.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/svx/source/dialog/optsave.cxx b/svx/source/dialog/optsave.cxx index 86aa3cea212f..9c6763752115 100644 --- a/svx/source/dialog/optsave.cxx +++ b/svx/source/dialog/optsave.cxx @@ -4,9 +4,9 @@ * * $RCSfile: optsave.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: hr $ $Date: 2007-06-27 17:30:55 $ + * last change: $Author: rt $ $Date: 2007-07-05 07:46:03 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -256,6 +256,7 @@ SfxSaveTabPage::SfxSaveTabPage( Window* pParent, const SfxItemSet& rCoreSet ) : SfxTabPage( pParent, SVX_RES( RID_SFXPAGE_SAVE ), rCoreSet ), aLoadFL ( this, SVX_RES( LB_LOAD ) ), aLoadUserSettingsCB ( this, SVX_RES( CB_LOAD_SETTINGS ) ), + aLoadDocPrinterCB ( this, SVX_RES( CB_LOAD_DOCPRINTER ) ), aSaveBox ( this, SVX_RES( GB_SAVE ) ), aDocInfoBtn ( this, SVX_RES( BTN_DOCINFO ) ), aBackupFI ( this, SVX_RES( FI_BACKUP ) ), @@ -438,6 +439,9 @@ BOOL SfxSaveTabPage::FillItemSet( SfxItemSet& rSet ) aSaveOpt.SetLoadUserSettings(aLoadUserSettingsCB.IsChecked()); } + if ( aLoadDocPrinterCB.IsChecked() != aLoadDocPrinterCB.GetSavedValue() ) + aSaveOpt.SetLoadDocumentPrinter( aLoadDocPrinterCB.IsChecked() ); + if ( aDocInfoBtn.IsChecked() != aDocInfoBtn.GetSavedValue() ) { rSet.Put( SfxBoolItem( GetWhich( SID_ATTR_DOCINFO ), @@ -538,6 +542,8 @@ void SfxSaveTabPage::Reset( const SfxItemSet& ) SvtSaveOptions aSaveOpt; aLoadUserSettingsCB.Check(aSaveOpt.IsLoadUserSettings()); aLoadUserSettingsCB.SaveValue(); + aLoadDocPrinterCB.Check( aSaveOpt.IsLoadDocumentPrinter() ); + aLoadDocPrinterCB.SaveValue(); if ( !pImpl->bInitialized ) { |