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 /forms | |
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 'forms')
-rw-r--r-- | forms/source/richtext/richtextimplcontrol.hxx | 2 | ||||
-rw-r--r-- | forms/source/richtext/richtextvclcontrol.cxx | 6 | ||||
-rw-r--r-- | forms/source/solar/control/navtoolbar.cxx | 9 |
3 files changed, 9 insertions, 8 deletions
diff --git a/forms/source/richtext/richtextimplcontrol.hxx b/forms/source/richtext/richtextimplcontrol.hxx index 8153fd201042..5c6c448879b3 100644 --- a/forms/source/richtext/richtextimplcontrol.hxx +++ b/forms/source/richtext/richtextimplcontrol.hxx @@ -127,7 +127,7 @@ namespace frm */ void notifyZoomChanged(); - /** to be called when the STATE_CHANGE_INITSHOW event arrives + /** to be called when the StateChangedType::INITSHOW event arrives */ void notifyInitShow(); diff --git a/forms/source/richtext/richtextvclcontrol.cxx b/forms/source/richtext/richtextvclcontrol.cxx index 5b293b34fcd2..21c8a51ba81c 100644 --- a/forms/source/richtext/richtextvclcontrol.cxx +++ b/forms/source/richtext/richtextvclcontrol.cxx @@ -168,16 +168,16 @@ namespace frm void RichTextControl::StateChanged( StateChangedType _nStateChange ) { - if ( _nStateChange == STATE_CHANGE_STYLE ) + if ( _nStateChange == StateChangedType::STYLE ) { SetStyle( implInitStyle( GetStyle() ) ); m_pImpl->notifyStyleChanged(); } - else if ( _nStateChange == STATE_CHANGE_ZOOM ) + else if ( _nStateChange == StateChangedType::ZOOM ) { m_pImpl->notifyZoomChanged(); } - else if ( _nStateChange == STATE_CHANGE_INITSHOW ) + else if ( _nStateChange == StateChangedType::INITSHOW ) { m_pImpl->notifyInitShow(); } diff --git a/forms/source/solar/control/navtoolbar.cxx b/forms/source/solar/control/navtoolbar.cxx index 7b332a24e79a..779300574404 100644 --- a/forms/source/solar/control/navtoolbar.cxx +++ b/forms/source/solar/control/navtoolbar.cxx @@ -476,23 +476,23 @@ namespace frm switch ( nType ) { - case STATE_CHANGE_ZOOM: + case StateChangedType::ZOOM: // m_pToolbar->SetZoom( GetZoom() ); // forEachItemWindow( setItemWindowZoom, NULL ); // the ToolBox class is not zoomable at the moment, so // we better have no zoom at all instead of only half a zoom ... break; - case STATE_CHANGE_CONTROLFONT: + case StateChangedType::CONTROLFONT: forEachItemWindow( &NavigationToolBar::setItemControlFont, NULL ); forEachItemWindow( &NavigationToolBar::adjustItemWindowWidth, NULL ); break; - case STATE_CHANGE_CONTROLFOREGROUND: + case StateChangedType::CONTROLFOREGROUND: forEachItemWindow( &NavigationToolBar::setItemControlForeground, NULL ); break; - case STATE_CHANGE_MIRRORING: + case StateChangedType::MIRRORING: { sal_Bool bIsRTLEnabled( IsRTLEnabled() ); m_pToolbar->EnableRTL( bIsRTLEnabled ); @@ -500,6 +500,7 @@ namespace frm Resize(); } break; + default:; } } |