From cb7ede2d9970a4d162dc71922f578922c0d6235a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 7 Oct 2014 16:08:25 +0200 Subject: convert vcl StateChangedType to enum class Change-Id: Ifa46523619ae7fb8d112525b8df594836e51bb8f Reviewed-on: https://gerrit.libreoffice.org/11843 Tested-by: LibreOffice gerrit bot Reviewed-by: Noel Grandin --- cui/source/dialogs/hangulhanjadlg.cxx | 2 +- cui/source/dialogs/iconcdlg.cxx | 2 +- cui/source/options/connpooloptions.cxx | 2 +- cui/source/tabpages/autocdlg.cxx | 2 +- cui/source/tabpages/numfmt.cxx | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'cui/source') diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx index 4ff53ba2457a..067397cef2e8 100644 --- a/cui/source/dialogs/hangulhanjadlg.cxx +++ b/cui/source/dialogs/hangulhanjadlg.cxx @@ -402,7 +402,7 @@ namespace svx void SuggestionDisplay::StateChanged( StateChangedType nStateChange ) { - if( STATE_CHANGE_VISIBLE == nStateChange ) + if( StateChangedType::VISIBLE == nStateChange ) implUpdateDisplay(); } diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx index b85829c22f08..835829d77b79 100644 --- a/cui/source/dialogs/iconcdlg.cxx +++ b/cui/source/dialogs/iconcdlg.cxx @@ -133,7 +133,7 @@ void IconChoicePage::StateChanged( StateChangedType nType ) { Window::StateChanged( nType ); - if ( nType == STATE_CHANGE_CONTROLBACKGROUND ) + if ( nType == StateChangedType::CONTROLBACKGROUND ) { ImplInitSettings(); Invalidate(); diff --git a/cui/source/options/connpooloptions.cxx b/cui/source/options/connpooloptions.cxx index f905137967c5..7743d8207874 100644 --- a/cui/source/options/connpooloptions.cxx +++ b/cui/source/options/connpooloptions.cxx @@ -220,7 +220,7 @@ namespace offapp void DriverListControl::StateChanged( StateChangedType nStateChange ) { - if (STATE_CHANGE_ENABLE == nStateChange) + if (StateChangedType::ENABLE == nStateChange) Window::Invalidate(INVALIDATE_UPDATE); EditBrowseBox::StateChanged( nStateChange ); } diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 7475cd1af6f9..e52956604e5a 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -884,7 +884,7 @@ void OfaAutocorrReplacePage::StateChanged(StateChangedType nStateChange) { SfxTabPage::StateChanged(nStateChange); - if (nStateChange == STATE_CHANGE_INITSHOW) + if (nStateChange == StateChangedType::INITSHOW) { setTabs(); } diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index 4121b72341d7..ed1599155ae1 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -205,9 +205,9 @@ void SvxNumberPreview::InitSettings( bool bForeground, bool bBackground ) void SvxNumberPreview::StateChanged( StateChangedType nType ) { - if ( nType == STATE_CHANGE_CONTROLFOREGROUND ) + if ( nType == StateChangedType::CONTROLFOREGROUND ) InitSettings( true, false ); - else if ( nType == STATE_CHANGE_CONTROLBACKGROUND ) + else if ( nType == StateChangedType::CONTROLBACKGROUND ) InitSettings( false, true ); Window::StateChanged( nType ); -- cgit