diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-07 16:08:25 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-11 15:14:32 +0000 |
commit | cb7ede2d9970a4d162dc71922f578922c0d6235a (patch) | |
tree | 141884aa4a9d7c2c3cfb6fdf850ddf71cad0e7a4 /vcl/source/edit | |
parent | 0bc6ea3637e279fa2807d8ee649fb33f1ae6da47 (diff) |
convert vcl StateChangedType to enum class
Change-Id: Ifa46523619ae7fb8d112525b8df594836e51bb8f
Reviewed-on: https://gerrit.libreoffice.org/11843
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/edit')
-rw-r--r-- | vcl/source/edit/vclmedit.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx index ff7cd6c8ae25..7314fa1386c9 100644 --- a/vcl/source/edit/vclmedit.cxx +++ b/vcl/source/edit/vclmedit.cxx @@ -1234,43 +1234,43 @@ void VclMultiLineEdit::GetMaxVisColumnsAndLines( sal_uInt16& rnCols, sal_uInt16& void VclMultiLineEdit::StateChanged( StateChangedType nType ) { - if( nType == STATE_CHANGE_ENABLE ) + if( nType == StateChangedType::ENABLE ) { pImpVclMEdit->Enable( IsEnabled() ); ImplInitSettings( true, false, false ); } - else if( nType == STATE_CHANGE_READONLY ) + else if( nType == StateChangedType::READONLY ) { pImpVclMEdit->SetReadOnly( IsReadOnly() ); } - else if ( nType == STATE_CHANGE_ZOOM ) + else if ( nType == StateChangedType::ZOOM ) { pImpVclMEdit->GetTextWindow()->SetZoom( GetZoom() ); ImplInitSettings( true, false, false ); Resize(); } - else if ( nType == STATE_CHANGE_CONTROLFONT ) + else if ( nType == StateChangedType::CONTROLFONT ) { ImplInitSettings( true, false, false ); Resize(); Invalidate(); } - else if ( nType == STATE_CHANGE_CONTROLFOREGROUND ) + else if ( nType == StateChangedType::CONTROLFOREGROUND ) { ImplInitSettings( false, true, false ); Invalidate(); } - else if ( nType == STATE_CHANGE_CONTROLBACKGROUND ) + else if ( nType == StateChangedType::CONTROLBACKGROUND ) { ImplInitSettings( false, false, true ); Invalidate(); } - else if ( nType == STATE_CHANGE_STYLE ) + else if ( nType == StateChangedType::STYLE ) { pImpVclMEdit->InitFromStyle( GetStyle() ); SetStyle( ImplInitStyle( GetStyle() ) ); } - else if ( nType == STATE_CHANGE_INITSHOW ) + else if ( nType == StateChangedType::INITSHOW ) { if( IsPaintTransparent() ) { |