diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-18 20:16:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-20 07:16:46 +0000 |
commit | 67c9d054517fc3b5cbc203c330eedef4b50f0e57 (patch) | |
tree | 1fad773f770e4ee4265bb05ba77d7f3084aedd3b /sfx2/source/toolbox | |
parent | 8091cf383a122f2348d6e25df90fc26579fe6ef7 (diff) |
fdo#84938: replace TIB_ constants with enum
Change-Id: I435ce2331fb49e7ce9fe97bdfddfaef706759a84
Reviewed-on: https://gerrit.libreoffice.org/12023
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source/toolbox')
-rw-r--r-- | sfx2/source/toolbox/tbxitem.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx index 9544b388f677..e3db0a2f3612 100644 --- a/sfx2/source/toolbox/tbxitem.cxx +++ b/sfx2/source/toolbox/tbxitem.cxx @@ -910,8 +910,8 @@ void SfxToolBoxControl::StateChanged // enabled/disabled-Flag correcting the lump sum pImpl->pBox->EnableItem( GetId(), eState != SfxItemState::DISABLED ); - sal_uInt16 nItemBits = pImpl->pBox->GetItemBits( GetId() ); - nItemBits &= ~TIB_CHECKABLE; + ToolBoxItemBits nItemBits = pImpl->pBox->GetItemBits( GetId() ); + nItemBits &= ~ToolBoxItemBits::CHECKABLE; ::TriState eTri = TRISTATE_FALSE; switch ( eState ) { @@ -923,7 +923,7 @@ void SfxToolBoxControl::StateChanged // BoolItem for checking if ( static_cast<const SfxBoolItem*>(pState)->GetValue() ) eTri = TRISTATE_TRUE; - nItemBits |= TIB_CHECKABLE; + nItemBits |= ToolBoxItemBits::CHECKABLE; } else if ( pState->ISA(SfxEnumItemInterface) && static_cast<const SfxEnumItemInterface *>(pState)->HasBoolValue()) @@ -931,7 +931,7 @@ void SfxToolBoxControl::StateChanged // EnumItem is handled as Bool if ( static_cast<const SfxEnumItemInterface *>(pState)->GetBoolValue() ) eTri = TRISTATE_TRUE; - nItemBits |= TIB_CHECKABLE; + nItemBits |= ToolBoxItemBits::CHECKABLE; } else if ( pImpl->bShowString && pState->ISA(SfxStringItem) ) pImpl->pBox->SetItemText(nId, static_cast<const SfxStringItem*>(pState)->GetValue() ); @@ -941,7 +941,7 @@ void SfxToolBoxControl::StateChanged case SfxItemState::DONTCARE: { eTri = TRISTATE_INDET; - nItemBits |= TIB_CHECKABLE; + nItemBits |= ToolBoxItemBits::CHECKABLE; } break; @@ -1389,7 +1389,7 @@ void SfxPopupWindow::Delete() SfxRecentFilesToolBoxControl::SfxRecentFilesToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rBox ) : SfxToolBoxControl( nSlotId, nId, rBox ) { - rBox.SetItemBits( nId, rBox.GetItemBits( nId ) | TIB_DROPDOWN); + rBox.SetItemBits( nId, rBox.GetItemBits( nId ) | ToolBoxItemBits::DROPDOWN); } SfxRecentFilesToolBoxControl::~SfxRecentFilesToolBoxControl() |