summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-14 13:24:56 +0200
committerNoel Grandin <noel@peralex.com>2015-05-15 10:05:02 +0200
commit24181bfb0b49a011e201ecc111bac3b48ad5a1ff (patch)
treee16fcead2274fd42453df019a0994bdb830d8894 /cui/source
parent08a2c8516bc47db322e7449fc841f3fcc5487d7e (diff)
convert LISTBOX_ENTRY_FLAG constants to scoped enum
Change-Id: Id7ca4853094c214b464e2dee53b10558f1f5a3ba
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx2
-rw-r--r--cui/source/tabpages/numfmt.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index dad2575114b5..1d72e70e172c 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -359,7 +359,7 @@ void SpellDialog::UpdateBoxes_Impl()
if ( LISTBOX_ENTRY_NOTFOUND == m_pSuggestionLB->GetEntryPos( aTmp ) )
{
m_pSuggestionLB->InsertEntry( aTmp );
- m_pSuggestionLB->SetEntryFlags(m_pSuggestionLB->GetEntryCount() - 1, LISTBOX_ENTRY_FLAG_MULTILINE);
+ m_pSuggestionLB->SetEntryFlags(m_pSuggestionLB->GetEntryCount() - 1, ListBoxEntryFlags::MultiLine);
}
}
if(!nSize)
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index f972859cecd3..a8974af76baf 100644
--- a/cui/source/tabpages/numfmt.cxx
+++ b/cui/source/tabpages/numfmt.cxx
@@ -557,7 +557,7 @@ void SvxNumberFormatTabPage::Reset( const SfxItemSet* rSet )
sal_Int32 nPos = pNumFmtShell->GetCurrencySymbol();
if (nPos == 0)
// Enable "Automatically" if currently used so it is selectable.
- m_pLbCurrency->SetEntryFlags( nPos, 0);
+ m_pLbCurrency->SetEntryFlags( nPos, ListBoxEntryFlags::NONE );
m_pLbCurrency->SelectEntryPos(nPos);
}
@@ -1738,7 +1738,7 @@ void SvxNumberFormatTabPage::FillCurrencyBox()
// is selected, else if the to be disabled (first) entry was selected it
// would be sticky when disabled and could not be deselected!
m_pLbCurrency->SetNoSelection();
- m_pLbCurrency->SetEntryFlags( 0, LISTBOX_ENTRY_FLAG_DISABLE_SELECTION | LISTBOX_ENTRY_FLAG_DRAW_DISABLED);
+ m_pLbCurrency->SetEntryFlags( 0, ListBoxEntryFlags::DisableSelection | ListBoxEntryFlags::DrawDisabled);
m_pLbCurrency->SelectEntryPos(nSelPos);
}