From 5c977a9ddff3c221c098a57855ede7c0ef4fe31f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 27 May 2016 16:24:21 +0200 Subject: Convert ControlType to scoped enum Change-Id: Iaa13c3e7030296a97bab144103745867d43b4b19 Reviewed-on: https://gerrit.libreoffice.org/25554 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/outdev/nativecontrols.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'vcl/source/outdev') diff --git a/vcl/source/outdev/nativecontrols.cxx b/vcl/source/outdev/nativecontrols.cxx index 650d08af2cc5..947e5cc177f2 100644 --- a/vcl/source/outdev/nativecontrols.cxx +++ b/vcl/source/outdev/nativecontrols.cxx @@ -194,7 +194,7 @@ static std::shared_ptr< ImplControlValue > TransformControlValue( const ImplCont std::shared_ptr< ImplControlValue > aResult; switch( rVal.getType() ) { - case CTRL_SLIDER: + case ControlType::Slider: { const SliderValue* pSlVal = static_cast(&rVal); SliderValue* pNew = new SliderValue( *pSlVal ); @@ -202,7 +202,7 @@ static std::shared_ptr< ImplControlValue > TransformControlValue( const ImplCont pNew->maThumbRect = rDev.ImplLogicToDevicePixel( pSlVal->maThumbRect ); } break; - case CTRL_SCROLLBAR: + case ControlType::Scrollbar: { const ScrollbarValue* pScVal = static_cast(&rVal); ScrollbarValue* pNew = new ScrollbarValue( *pScVal ); @@ -212,7 +212,7 @@ static std::shared_ptr< ImplControlValue > TransformControlValue( const ImplCont pNew->maButton2Rect = rDev.ImplLogicToDevicePixel( pScVal->maButton2Rect ); } break; - case CTRL_SPINBUTTONS: + case ControlType::SpinButtons: { const SpinbuttonValue* pSpVal = static_cast(&rVal); SpinbuttonValue* pNew = new SpinbuttonValue( *pSpVal ); @@ -221,7 +221,7 @@ static std::shared_ptr< ImplControlValue > TransformControlValue( const ImplCont pNew->maLowerRect = rDev.ImplLogicToDevicePixel( pSpVal->maLowerRect ); } break; - case CTRL_TOOLBAR: + case ControlType::Toolbar: { const ToolbarValue* pTVal = static_cast(&rVal); ToolbarValue* pNew = new ToolbarValue( *pTVal ); @@ -229,7 +229,7 @@ static std::shared_ptr< ImplControlValue > TransformControlValue( const ImplCont pNew->maGripRect = rDev.ImplLogicToDevicePixel( pTVal->maGripRect ); } break; - case CTRL_TAB_ITEM: + case ControlType::TabItem: { const TabitemValue* pTIVal = static_cast(&rVal); TabitemValue* pNew = new TabitemValue( *pTIVal ); @@ -237,24 +237,24 @@ static std::shared_ptr< ImplControlValue > TransformControlValue( const ImplCont aResult.reset( pNew ); } break; - case CTRL_MENUBAR: + case ControlType::Menubar: { const MenubarValue* pMVal = static_cast(&rVal); MenubarValue* pNew = new MenubarValue( *pMVal ); aResult.reset( pNew ); } break; - case CTRL_PUSHBUTTON: + case ControlType::Pushbutton: { const PushButtonValue* pBVal = static_cast(&rVal); PushButtonValue* pNew = new PushButtonValue( *pBVal ); aResult.reset( pNew ); } break; - case CTRL_GENERIC: + case ControlType::Generic: aResult.reset( new ImplControlValue( rVal ) ); break; - case CTRL_MENU_POPUP: + case ControlType::MenuPopup: { const MenupopupValue* pMVal = static_cast(&rVal); MenupopupValue* pNew = new MenupopupValue( *pMVal ); -- cgit