diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-23 09:42:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-23 09:54:16 +0200 |
commit | f091a4d82e383b2beab91ecd01d9f6a700377a2e (patch) | |
tree | 8d462c15bef61a8814980a75eaebd57d4536c95c /sw/source/uibase/uiview | |
parent | f8d980a813fb0125a2d7bb332450b2ab1d943031 (diff) |
convert SearchLabel to scoped enum
Change-Id: I0c62a3166b9284895f119c600776dc2c7d6d1078
Diffstat (limited to 'sw/source/uibase/uiview')
-rw-r--r-- | sw/source/uibase/uiview/viewsrch.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/uibase/uiview/viewsrch.cxx b/sw/source/uibase/uiview/viewsrch.cxx index d773d10edb26..2c8752c59d95 100644 --- a/sw/source/uibase/uiview/viewsrch.cxx +++ b/sw/source/uibase/uiview/viewsrch.cxx @@ -273,7 +273,7 @@ void SwView::ExecSearch(SfxRequest& rReq) if( !bQuiet ) { m_pWrtShell->GetSfxViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_SEARCH_NOT_FOUND, m_pSrchItem->GetSearchString().toUtf8().getStr()); - SvxSearchDialogWrapper::SetSearchLabel(SL_NotFound); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::NotFound); } #endif m_bFound = false; @@ -394,7 +394,7 @@ void SwView::ExecSearch(SfxRequest& rReq) if( !bQuiet ) { m_pWrtShell->GetSfxViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_SEARCH_NOT_FOUND, m_pSrchItem->GetSearchString().toUtf8().getStr()); - SvxSearchDialogWrapper::SetSearchLabel(SL_NotFound); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::NotFound); } #endif m_bFound = false; @@ -590,7 +590,7 @@ bool SwView::SearchAndWrap(bool bApi) { #if HAVE_FEATURE_DESKTOP m_pWrtShell->GetSfxViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_SEARCH_NOT_FOUND, m_pSrchItem->GetSearchString().toUtf8().getStr()); - SvxSearchDialogWrapper::SetSearchLabel(SL_NotFound); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::NotFound); #endif } m_bFound = false; @@ -636,14 +636,14 @@ bool SwView::SearchAndWrap(bool bApi) if (m_bFound) { if (!bSrchBkwrd) - SvxSearchDialogWrapper::SetSearchLabel(SL_End); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::End); else - SvxSearchDialogWrapper::SetSearchLabel(SL_Start); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::Start); } else if(!bApi) { m_pWrtShell->GetSfxViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_SEARCH_NOT_FOUND, m_pSrchItem->GetSearchString().toUtf8().getStr()); - SvxSearchDialogWrapper::SetSearchLabel(SL_NotFound); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::NotFound); } #endif return m_bFound; @@ -786,7 +786,7 @@ SwSearchOptions::SwSearchOptions( SwWrtShell* pSh, bool bBackward ) sal_uLong SwView::FUNC_Search( const SwSearchOptions& rOptions ) { #if HAVE_FEATURE_DESKTOP - SvxSearchDialogWrapper::SetSearchLabel(SL_Empty); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::Empty); #endif bool bDoReplace = m_pSrchItem->GetCommand() == SvxSearchCmd::REPLACE || m_pSrchItem->GetCommand() == SvxSearchCmd::REPLACE_ALL; |