summaryrefslogtreecommitdiff
path: root/sc/source/ui/cctrl
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/cctrl')
-rw-r--r--sc/source/ui/cctrl/tbinsert.cxx4
-rw-r--r--sc/source/ui/cctrl/tbzoomsliderctrl.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/cctrl/tbinsert.cxx b/sc/source/ui/cctrl/tbinsert.cxx
index 7f017f7e0a2e..5de5395ed8e0 100644
--- a/sc/source/ui/cctrl/tbinsert.cxx
+++ b/sc/source/ui/cctrl/tbinsert.cxx
@@ -51,9 +51,9 @@ ScTbxInsertCtrl::~ScTbxInsertCtrl()
void ScTbxInsertCtrl::StateChanged( sal_uInt16 /* nSID */, SfxItemState eState,
const SfxPoolItem* pState )
{
- GetToolBox().EnableItem( GetId(), (GetItemState(pState) != SFX_ITEM_DISABLED) );
+ GetToolBox().EnableItem( GetId(), (GetItemState(pState) != SfxItemState::DISABLED) );
- if( eState == SFX_ITEM_DEFAULT )
+ if( eState == SfxItemState::DEFAULT )
{
const SfxUInt16Item* pItem = PTR_CAST( SfxUInt16Item, pState );
diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
index 817cf4f5ef65..bf00d6d6d462 100644
--- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
+++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
@@ -61,7 +61,7 @@ void ScZoomSliderControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState
ScZoomSliderWnd* pBox = (ScZoomSliderWnd*)(rTbx.GetItemWindow( nId ));
OSL_ENSURE( pBox ,"Control not found!" );
- if ( SFX_ITEM_DEFAULT != eState || pState->ISA( SfxVoidItem ) )
+ if ( SfxItemState::DEFAULT != eState || pState->ISA( SfxVoidItem ) )
{
SvxZoomSliderItem aZoomSliderItem( 100 );
pBox->Disable();