diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-24 09:30:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-25 12:56:18 +0200 |
commit | 293c1a629a69822b4a9996d0522513bc2a0d78e1 (patch) | |
tree | 595f7c02b6f1f7065df32ddb98a3d9a054dab0f4 /cui | |
parent | c05adac9229aad0683d2e75a8f8dcd5421c66b02 (diff) |
use officecfg to retrieve LoadDocumentPrinter
Change-Id: Ie9c164fb9c95989035ef769d0dd539521400e38e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119463
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optsave.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx index b6fb9e819682..8b3d3f1b86fa 100644 --- a/cui/source/options/optsave.cxx +++ b/cui/source/options/optsave.cxx @@ -232,7 +232,11 @@ bool SvxSaveTabPage::FillItemSet( SfxItemSet* rSet ) } if ( m_xLoadDocPrinterCB->get_state_changed_from_saved() ) - aSaveOpt.SetLoadDocumentPrinter( m_xLoadDocPrinterCB->get_active() ); + { + auto xChanges = comphelper::ConfigurationChanges::create(); + officecfg::Office::Common::Save::Document::LoadPrinter::set(m_xLoadDocPrinterCB->get_active(), xChanges); + xChanges->commit(); + } if ( m_xODFVersionLB->get_value_changed_from_saved() ) { @@ -367,9 +371,9 @@ void SvxSaveTabPage::Reset( const SfxItemSet* ) m_xLoadUserSettingsCB->set_active(aSaveOpt.IsLoadUserSettings()); m_xLoadUserSettingsCB->save_state(); m_xLoadUserSettingsCB->set_sensitive(!officecfg::Office::Common::Load::UserDefinedSettings::isReadOnly()); - m_xLoadDocPrinterCB->set_active( aSaveOpt.IsLoadDocumentPrinter() ); + m_xLoadDocPrinterCB->set_active( officecfg::Office::Common::Save::Document::LoadPrinter::get() ); m_xLoadDocPrinterCB->save_state(); - m_xLoadDocPrinterCB->set_sensitive(!aSaveOpt.IsReadOnly(SvtSaveOptions::EOption::LoadDocPrinter)); + m_xLoadDocPrinterCB->set_sensitive(!officecfg::Office::Common::Save::Document::LoadPrinter::isReadOnly()); if ( !pImpl->bInitialized ) { |