diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-23 12:26:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-24 08:47:57 +0200 |
commit | 92743c1da67485338aadfc9e9444146f9bacd6d1 (patch) | |
tree | e0b858d6f41a5bac900b2ee046dd17c68524f820 /cui | |
parent | 44b2afa192fbf78d337cf18840c26b7d04e91a4e (diff) |
convert SdrFitToSizeType to scoped enum
Change-Id: Id732c74b590db7006058d1919be2438b649a795e
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/textattr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/tabpages/textattr.cxx b/cui/source/tabpages/textattr.cxx index 49eca66e4648..4da31e4b6158 100644 --- a/cui/source/tabpages/textattr.cxx +++ b/cui/source/tabpages/textattr.cxx @@ -312,7 +312,7 @@ void SvxTextAttrPage::Reset( const SfxItemSet* rAttrs ) { SdrFitToSizeType eFTS = (SdrFitToSizeType) static_cast<const SdrTextFitToSizeTypeItem&>( rAttrs->Get( SDRATTR_TEXT_FITTOSIZE ) ).GetValue(); - m_pTsbFitToSize->SetState( eFTS == SDRTEXTFIT_NONE ? TRISTATE_FALSE : TRISTATE_TRUE ); + m_pTsbFitToSize->SetState( eFTS == SdrFitToSizeType::NONE ? TRISTATE_FALSE : TRISTATE_TRUE ); m_pTsbFitToSize->EnableTriState( false ); } else @@ -410,8 +410,8 @@ bool SvxTextAttrPage::FillItemSet( SfxItemSet* rAttrs) default: ; //prevent warning OSL_FAIL( "svx::SvxTextAttrPage::FillItemSet(), unhandled state!" ); SAL_FALLTHROUGH; - case TRISTATE_FALSE: eFTS = SDRTEXTFIT_NONE; break; - case TRISTATE_TRUE: eFTS = SDRTEXTFIT_AUTOFIT; break; + case TRISTATE_FALSE: eFTS = SdrFitToSizeType::NONE; break; + case TRISTATE_TRUE: eFTS = SdrFitToSizeType::Autofit; break; } rAttrs->Put( SdrTextFitToSizeTypeItem( eFTS ) ); } |