diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-07-24 22:56:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-25 12:55:51 +0200 |
commit | c05adac9229aad0683d2e75a8f8dcd5421c66b02 (patch) | |
tree | 9e824bf7e4452069e3fd906bc97933fdfff3bd2d /sfx2/source/dialog/printopt.cxx | |
parent | 67e47070a7580a17804adce812cc2f98bfe7b51f (diff) |
use officecfg for print options
Change-Id: I2a85d802b9edda638da467e273ad3d24cbf2bcf1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119476
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/dialog/printopt.cxx')
-rw-r--r-- | sfx2/source/dialog/printopt.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sfx2/source/dialog/printopt.cxx b/sfx2/source/dialog/printopt.cxx index d6fe953c785b..f94b0204cd6f 100644 --- a/sfx2/source/dialog/printopt.cxx +++ b/sfx2/source/dialog/printopt.cxx @@ -91,9 +91,6 @@ std::unique_ptr<SfxTabPage> SfxCommonPrintOptionsTabPage::Create(weld::Container bool SfxCommonPrintOptionsTabPage::FillItemSet( SfxItemSet* /*rSet*/ ) { - SvtPrinterOptions aPrinterOptions; - SvtPrintFileOptions aPrintFileOptions; - std::shared_ptr<comphelper::ConfigurationChanges> batch(comphelper::ConfigurationChanges::create()); if( m_xPaperSizeCB->get_state_changed_from_saved()) @@ -107,8 +104,8 @@ bool SfxCommonPrintOptionsTabPage::FillItemSet( SfxItemSet* /*rSet*/ ) ImplSaveControls( m_xPrinterOutputRB->get_active() ? &maPrinterOptions : &maPrintFileOptions ); - aPrinterOptions.SetPrinterOptions( maPrinterOptions ); - aPrintFileOptions.SetPrinterOptions( maPrintFileOptions ); + svtools::SetPrinterOptions(maPrinterOptions, /*bFile*/false); + svtools::SetPrinterOptions(maPrintFileOptions, /*bFile*/true); return false; } @@ -123,8 +120,8 @@ void SfxCommonPrintOptionsTabPage::Reset( const SfxItemSet* /*rSet*/ ) m_xPaperOrientationCB->save_state(); m_xTransparencyCB->save_state(); - SvtBasePrintOptions::GetPrinterOptions( maPrinterOptions ); - SvtBasePrintOptions::GetPrinterOptions( maPrintFileOptions ); + svtools::GetPrinterOptions( maPrinterOptions, /*bFile*/false ); + svtools::GetPrinterOptions( maPrintFileOptions, /*bFile*/true ); if(m_xPrintFileOutputRB->get_active()){ m_xPrinterOutputRB->set_active(true); } |