diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-08-26 01:26:38 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-26 07:51:19 +0000 |
commit | ef699b4d41cc602322d980027956aab636c776d5 (patch) | |
tree | 65856032b9b3bd285558f5fb6d6b21598a50d548 /cui | |
parent | 213a11b94caf28ffae927169ebd372a866f8f9b2 (diff) |
convert SV_ITEM_ID_LBOX defines to scoped enum
and remove unused SV_ITEM_ID_EXTENDRLBOXSTRING
Change-Id: Ic84d9341d0225b01b9ef46814483c66b1af307b5
Reviewed-on: https://gerrit.libreoffice.org/28397
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/fontsubs.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optfltr.cxx | 8 | ||||
-rw-r--r-- | cui/source/options/optlingu.cxx | 4 | ||||
-rw-r--r-- | cui/source/tabpages/autocdlg.cxx | 4 | ||||
-rw-r--r-- | cui/source/tabpages/macroass.cxx | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx index 458027530d46..239e6895b4d0 100644 --- a/cui/source/options/fontsubs.cxx +++ b/cui/source/options/fontsubs.cxx @@ -511,7 +511,7 @@ void SvxFontSubstCheckListBox::SetCheckButtonState( SvTreeListEntry* pEntry, sal { SvLBoxButton& rItem = static_cast<SvLBoxButton&>(pEntry->GetItem(nCol + 1)); - if (rItem.GetType() == SV_ITEM_ID_LBOXBUTTON) + if (rItem.GetType() == SvLBoxItemType::Button) { switch( eState ) { @@ -536,7 +536,7 @@ SvButtonState SvxFontSubstCheckListBox::GetCheckButtonState( SvTreeListEntry* pE SvButtonState eState = SvButtonState::Unchecked; SvLBoxButton& rItem = static_cast<SvLBoxButton&>(pEntry->GetItem(nCol + 1)); - if (rItem.GetType() == SV_ITEM_ID_LBOXBUTTON) + if (rItem.GetType() == SvLBoxItemType::Button) { SvItemStateFlags nButtonFlags = rItem.GetButtonFlags(); eState = SvLBoxButtonData::ConvertToButtonState( nButtonFlags ); diff --git a/cui/source/options/optfltr.cxx b/cui/source/options/optfltr.cxx index 0602cef6ae78..e7f3057902a8 100644 --- a/cui/source/options/optfltr.cxx +++ b/cui/source/options/optfltr.cxx @@ -236,7 +236,7 @@ bool OfaMSFilterTabPage2::FillItemSet( SfxItemSet* ) if( pEntry ) { SvLBoxButton& rItem = static_cast<SvLBoxButton&>(pEntry->GetItem( nCol )); - if (rItem.GetType() == SV_ITEM_ID_LBOXBUTTON) + if (rItem.GetType() == SvLBoxItemType::Button) { SvItemStateFlags nButtonFlags = rItem.GetButtonFlags(); bCheck = SvButtonState::Checked == @@ -304,7 +304,7 @@ void OfaMSFilterTabPage2::Reset( const SfxItemSet* ) if( pEntry ) { SvLBoxButton& rItem = static_cast<SvLBoxButton&>(pEntry->GetItem( nCol )); - if (rItem.GetType() == SV_ITEM_ID_LBOXBUTTON) + if (rItem.GetType() == SvLBoxItemType::Button) { if( (rOpt.*pArr->FnIs)() ) rItem.SetStateChecked(); @@ -393,7 +393,7 @@ void OfaMSFilterTabPage2::MSFltrSimpleTable::SetCheckButtonState( { SvLBoxButton& rItem = static_cast<SvLBoxButton&>(pEntry->GetItem(nCol + 1)); - if (rItem.GetType() == SV_ITEM_ID_LBOXBUTTON) + if (rItem.GetType() == SvLBoxItemType::Button) { switch( eState ) { @@ -419,7 +419,7 @@ SvButtonState OfaMSFilterTabPage2::MSFltrSimpleTable::GetCheckButtonState( SvButtonState eState = SvButtonState::Unchecked; SvLBoxButton& rItem = static_cast<SvLBoxButton&>(pEntry->GetItem(nCol + 1)); - if (rItem.GetType() == SV_ITEM_ID_LBOXBUTTON) + if (rItem.GetType() == SvLBoxItemType::Button) { SvItemStateFlags nButtonFlags = rItem.GetButtonFlags(); eState = SvLBoxButtonData::ConvertToButtonState( nButtonFlags ); diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 887d5fd92e42..d9718f9ef618 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -243,10 +243,10 @@ DicUserData::DicUserData( static void lcl_SetCheckButton( SvTreeListEntry* pEntry, bool bCheck ) { - SvLBoxButton* pItem = static_cast<SvLBoxButton*>(pEntry->GetFirstItem(SV_ITEM_ID_LBOXBUTTON)); + SvLBoxButton* pItem = static_cast<SvLBoxButton*>(pEntry->GetFirstItem(SvLBoxItemType::Button)); DBG_ASSERT(pItem,"SetCheckButton:Item not found"); - if (pItem->GetType() == SV_ITEM_ID_LBOXBUTTON) + if (pItem->GetType() == SvLBoxItemType::Button) { if (bCheck) pItem->SetStateChecked(); diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index f19be92a7cd8..489ef2a00c03 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -796,7 +796,7 @@ void OfaACorrCheckListBox::SetCheckButtonState( SvTreeListEntry* pEntry, sal_uIn { SvLBoxButton& rItem = static_cast<SvLBoxButton&>(pEntry->GetItem(nCol + 1)); - if (rItem.GetType() == SV_ITEM_ID_LBOXBUTTON) + if (rItem.GetType() == SvLBoxItemType::Button) { switch( eState ) { @@ -821,7 +821,7 @@ SvButtonState OfaACorrCheckListBox::GetCheckButtonState( SvTreeListEntry* pEntry SvButtonState eState = SvButtonState::Unchecked; SvLBoxButton& rItem = static_cast<SvLBoxButton&>(pEntry->GetItem(nCol + 1)); - if (rItem.GetType() == SV_ITEM_ID_LBOXBUTTON) + if (rItem.GetType() == SvLBoxItemType::Button) { SvItemStateFlags nButtonFlags = rItem.GetButtonFlags(); eState = SvLBoxButtonData::ConvertToButtonState( nButtonFlags ); diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx index 7972967610f5..b95b6a14fe7d 100644 --- a/cui/source/tabpages/macroass.cxx +++ b/cui/source/tabpages/macroass.cxx @@ -436,7 +436,7 @@ void SfxMacroTabPage::FillEvents() if( pE ) { SvLBoxString& rLItem = static_cast<SvLBoxString&>( pE->GetItem( LB_MACROS_ITEMPOS ) ); - DBG_ASSERT( SV_ITEM_ID_LBOXSTRING == rLItem.GetType(), "SfxMacroTabPage::FillEvents(): no LBoxString" ); + DBG_ASSERT( SvLBoxItemType::String == rLItem.GetType(), "SfxMacroTabPage::FillEvents(): no LBoxString" ); OUString sOld( rLItem.GetText() ); OUString sNew; |