summaryrefslogtreecommitdiff
path: root/vcl/source/window/window.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-07 16:08:25 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-11 15:14:32 +0000
commitcb7ede2d9970a4d162dc71922f578922c0d6235a (patch)
tree141884aa4a9d7c2c3cfb6fdf850ddf71cad0e7a4 /vcl/source/window/window.cxx
parent0bc6ea3637e279fa2807d8ee649fb33f1ae6da47 (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/window/window.cxx')
-rw-r--r--vcl/source/window/window.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index be0e35cd1613..8d8eb6cea652 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -1981,16 +1981,16 @@ void Window::StateChanged(StateChangedType eType)
switch (eType)
{
//stuff that doesn't invalidate the layout
- case STATE_CHANGE_CONTROLFOREGROUND:
- case STATE_CHANGE_CONTROLBACKGROUND:
- case STATE_CHANGE_TRANSPARENT:
- case STATE_CHANGE_UPDATEMODE:
- case STATE_CHANGE_READONLY:
- case STATE_CHANGE_ENABLE:
- case STATE_CHANGE_STATE:
- case STATE_CHANGE_DATA:
- case STATE_CHANGE_INITSHOW:
- case STATE_CHANGE_CONTROL_FOCUS:
+ case StateChangedType::CONTROLFOREGROUND:
+ case StateChangedType::CONTROLBACKGROUND:
+ case StateChangedType::TRANSPARENT:
+ case StateChangedType::UPDATEMODE:
+ case StateChangedType::READONLY:
+ case StateChangedType::ENABLE:
+ case StateChangedType::STATE:
+ case StateChangedType::DATA:
+ case StateChangedType::INITSHOW:
+ case StateChangedType::CONTROL_FOCUS:
break;
//stuff that does invalidate the layout
default:
@@ -2025,7 +2025,7 @@ void Window::SetStyle( WinBits nStyle )
{
mpWindowImpl->mnPrevStyle = mpWindowImpl->mnStyle;
mpWindowImpl->mnStyle = nStyle;
- StateChanged( STATE_CHANGE_STYLE );
+ StateChanged( StateChangedType::STYLE );
}
}
@@ -2049,7 +2049,7 @@ void Window::SetExtendedStyle( WinBits nExtendedStyle )
}
mpWindowImpl->mnPrevExtendedStyle = mpWindowImpl->mnExtendedStyle;
mpWindowImpl->mnExtendedStyle = nExtendedStyle;
- StateChanged( STATE_CHANGE_EXTENDEDSTYLE );
+ StateChanged( StateChangedType::EXTENDEDSTYLE );
}
}
@@ -2262,7 +2262,7 @@ void Window::Show( bool bVisible, sal_uInt16 nFlags )
mpWindowImpl->mpFrame->Show( false, false );
}
- StateChanged( STATE_CHANGE_VISIBLE );
+ StateChanged( StateChangedType::VISIBLE );
if ( mpWindowImpl->mbReallyVisible )
{
@@ -2350,7 +2350,7 @@ void Window::Show( bool bVisible, sal_uInt16 nFlags )
ImplCallResize();
}
- StateChanged( STATE_CHANGE_VISIBLE );
+ StateChanged( StateChangedType::VISIBLE );
vcl::Window* pTestParent;
if ( ImplIsOverlapWindow() )
@@ -2535,7 +2535,7 @@ void Window::Enable( bool bEnable, bool bChild )
mpWindowImpl->mbDisabled = !bEnable;
if ( mpWindowImpl->mpSysObj )
mpWindowImpl->mpSysObj->Enable( bEnable && !mpWindowImpl->mbInputDisabled );
- StateChanged( STATE_CHANGE_ENABLE );
+ StateChanged( StateChangedType::ENABLE );
ImplCallEventListeners( bEnable ? VCLEVENT_WINDOW_ENABLED : VCLEVENT_WINDOW_DISABLED );
}
@@ -3089,7 +3089,7 @@ void Window::SetUpdateMode( bool bUpdate )
{
mpWindowImpl->mbNoUpdate = !bUpdate;
- StateChanged( STATE_CHANGE_UPDATEMODE );
+ StateChanged( StateChangedType::UPDATEMODE );
}
void Window::GrabFocus()
@@ -3161,7 +3161,7 @@ void Window::SetText( const OUString& rStr )
pWindow->ImplCallEventListeners( VCLEVENT_WINDOW_FRAMETITLECHANGED, &oldTitle );
}
- StateChanged( STATE_CHANGE_TEXT );
+ StateChanged( StateChangedType::TEXT );
}
OUString Window::GetText() const