summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-24 10:55:12 +0200
committerNoel Grandin <noel@peralex.com>2016-08-25 08:40:00 +0200
commit1332241a03500b09ab846a56e86a25e18b8230db (patch)
tree200631906c32c30866f05e1378e038cdd2ad601d /cui
parent479aa67fd94d648cb5637773189bfb286ff78d5c (diff)
convert FmSearchProgress::State to scoped enum
Change-Id: I7ca1afedd6ca9b626c1e61322bffc66016ec7d58
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/cuifmsearch.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/cui/source/dialogs/cuifmsearch.cxx b/cui/source/dialogs/cuifmsearch.cxx
index 9c8e72b3f477..5d77b83efd1e 100644
--- a/cui/source/dialogs/cuifmsearch.cxx
+++ b/cui/source/dialogs/cuifmsearch.cxx
@@ -701,7 +701,7 @@ IMPL_LINK_TYPED(FmSearchDialog, OnSearchProgress, const FmSearchProgress*, pProg
switch (pProgress->aSearchState)
{
- case FmSearchProgress::STATE_PROGRESS:
+ case FmSearchProgress::State::Progress:
if (pProgress->bOverflow)
{
OUString sHint( CUI_RES( m_pcbBackwards->IsChecked() ? RID_STR_OVERFLOW_BACKWARD : RID_STR_OVERFLOW_FORWARD ) );
@@ -713,7 +713,7 @@ IMPL_LINK_TYPED(FmSearchDialog, OnSearchProgress, const FmSearchProgress*, pProg
m_pftRecord->Invalidate();
break;
- case FmSearchProgress::STATE_PROGRESS_COUNTING:
+ case FmSearchProgress::State::ProgressCounting:
m_pftHint->SetText(CUI_RESSTR(RID_STR_SEARCH_COUNTING));
m_pftHint->Invalidate();
@@ -721,21 +721,21 @@ IMPL_LINK_TYPED(FmSearchDialog, OnSearchProgress, const FmSearchProgress*, pProg
m_pftRecord->Invalidate();
break;
- case FmSearchProgress::STATE_SUCCESSFULL:
+ case FmSearchProgress::State::Successful:
OnFound(pProgress->aBookmark, (sal_Int16)pProgress->nFieldIndex);
EnableSearchUI(true);
break;
- case FmSearchProgress::STATE_ERROR:
- case FmSearchProgress::STATE_NOTHINGFOUND:
+ case FmSearchProgress::State::Error:
+ case FmSearchProgress::State::NothingFound:
{
- sal_uInt16 nErrorId = (FmSearchProgress::STATE_ERROR == pProgress->aSearchState)
+ sal_uInt16 nErrorId = (FmSearchProgress::State::Error == pProgress->aSearchState)
? RID_STR_SEARCH_GENERAL_ERROR
: RID_STR_SEARCH_NORECORD;
ScopedVclPtrInstance<MessageDialog>(this, CUI_RES(nErrorId))->Execute();
SAL_FALLTHROUGH;
}
- case FmSearchProgress::STATE_CANCELED:
+ case FmSearchProgress::State::Canceled:
EnableSearchUI(true);
if (m_lnkCanceledNotFoundHdl.IsSet())
{