diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2021-09-01 02:19:27 +1000 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-09-07 17:59:47 +0200 |
commit | 7228a2dbfa11cd846678aaacd248c68adcda5f34 (patch) | |
tree | 5a81fa7d3f225952747c2982d4a8baf2bd17817d /sfx2 | |
parent | b42516b433c1d71487db061a058887f6dd76dd74 (diff) |
vcl: rename PrinterOptions to vcl::printer::Options
Move Options to own source and header files. Options moved to own
source and header files, however also put Options into vcl::printer
namespace.
I have renamed and moved PrinterOptions into the vcl::printer namespace
because the word "Printer" is redundant, and we want to organize the vcl
namespace better.
Change-Id: I2ef188af381dd65907d48f7b190e4ab69417606d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121389
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/printopt.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sfx2/source/dialog/printopt.cxx b/sfx2/source/dialog/printopt.cxx index f94b0204cd6f..8d16edfc0e3e 100644 --- a/sfx2/source/dialog/printopt.cxx +++ b/sfx2/source/dialog/printopt.cxx @@ -137,18 +137,18 @@ DeactivateRC SfxCommonPrintOptionsTabPage::DeactivatePage( SfxItemSet* pItemSet return DeactivateRC::LeavePage; } -void SfxCommonPrintOptionsTabPage::ImplUpdateControls( const PrinterOptions* pCurrentOptions ) +void SfxCommonPrintOptionsTabPage::ImplUpdateControls( const vcl::printer::Options* pCurrentOptions ) { m_xReduceTransparencyCB->set_active( pCurrentOptions->IsReduceTransparency() ); - if( pCurrentOptions->GetReducedTransparencyMode() == PrinterTransparencyMode::Auto ) + if( pCurrentOptions->GetReducedTransparencyMode() == vcl::printer::TransparencyMode::Auto ) m_xReduceTransparencyAutoRB->set_active(true); else m_xReduceTransparencyNoneRB->set_active(true); m_xReduceGradientsCB->set_active( pCurrentOptions->IsReduceGradients() ); - if( pCurrentOptions->GetReducedGradientMode() == PrinterGradientMode::Stripes ) + if( pCurrentOptions->GetReducedGradientMode() == vcl::printer::GradientMode::Stripes ) m_xReduceGradientsStripesRB->set_active(true); else m_xReduceGradientsColorRB->set_active(true); @@ -157,9 +157,9 @@ void SfxCommonPrintOptionsTabPage::ImplUpdateControls( const PrinterOptions* pCu m_xReduceBitmapsCB->set_active( pCurrentOptions->IsReduceBitmaps() ); - if( pCurrentOptions->GetReducedBitmapMode() == PrinterBitmapMode::Optimal ) + if( pCurrentOptions->GetReducedBitmapMode() == vcl::printer::BitmapMode::Optimal ) m_xReduceBitmapsOptimalRB->set_active(true); - else if( pCurrentOptions->GetReducedBitmapMode() == PrinterBitmapMode::Normal ) + else if( pCurrentOptions->GetReducedBitmapMode() == vcl::printer::BitmapMode::Normal ) m_xReduceBitmapsNormalRB->set_active(true); else m_xReduceBitmapsResolutionRB->set_active(true); @@ -189,16 +189,16 @@ void SfxCommonPrintOptionsTabPage::ImplUpdateControls( const PrinterOptions* pCu ClickReduceBitmapsCBHdl(*m_xReduceBitmapsCB); } -void SfxCommonPrintOptionsTabPage::ImplSaveControls( PrinterOptions* pCurrentOptions ) +void SfxCommonPrintOptionsTabPage::ImplSaveControls( vcl::printer::Options* pCurrentOptions ) { pCurrentOptions->SetReduceTransparency( m_xReduceTransparencyCB->get_active() ); - pCurrentOptions->SetReducedTransparencyMode( m_xReduceTransparencyAutoRB->get_active() ? PrinterTransparencyMode::Auto : PrinterTransparencyMode::NONE ); + pCurrentOptions->SetReducedTransparencyMode( m_xReduceTransparencyAutoRB->get_active() ? vcl::printer::TransparencyMode::Auto : vcl::printer::TransparencyMode::NONE ); pCurrentOptions->SetReduceGradients( m_xReduceGradientsCB->get_active() ); - pCurrentOptions->SetReducedGradientMode( m_xReduceGradientsStripesRB->get_active() ? PrinterGradientMode::Stripes : PrinterGradientMode::Color ); + pCurrentOptions->SetReducedGradientMode( m_xReduceGradientsStripesRB->get_active() ? vcl::printer::GradientMode::Stripes : vcl::printer::GradientMode::Color ); pCurrentOptions->SetReducedGradientStepCount(m_xReduceGradientsStepCountNF->get_value()); pCurrentOptions->SetReduceBitmaps( m_xReduceBitmapsCB->get_active() ); - pCurrentOptions->SetReducedBitmapMode( m_xReduceBitmapsOptimalRB->get_active() ? PrinterBitmapMode::Optimal : - ( m_xReduceBitmapsNormalRB->get_active() ? PrinterBitmapMode::Normal : PrinterBitmapMode::Resolution ) ); + pCurrentOptions->SetReducedBitmapMode( m_xReduceBitmapsOptimalRB->get_active() ? vcl::printer::BitmapMode::Optimal : + ( m_xReduceBitmapsNormalRB->get_active() ? vcl::printer::BitmapMode::Normal : vcl::printer::BitmapMode::Resolution ) ); pCurrentOptions->SetReducedBitmapResolution( aDPIArray[ std::min<sal_uInt16>( m_xReduceBitmapsResolutionLB->get_active(), SAL_N_ELEMENTS(aDPIArray) - 1 ) ] ); pCurrentOptions->SetReducedBitmapIncludesTransparency( m_xReduceBitmapsTransparencyCB->get_active() ); |