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 /sd | |
parent | f8d980a813fb0125a2d7bb332450b2ab1d943031 (diff) |
convert SearchLabel to scoped enum
Change-Id: I0c62a3166b9284895f119c600776dc2c7d6d1078
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/Outliner.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx index 61e06e147a95..53c7f98a817a 100644 --- a/sd/source/ui/view/Outliner.cxx +++ b/sd/source/ui/view/Outliner.cxx @@ -442,7 +442,7 @@ bool Outliner::StartSearchAndReplace (const SvxSearchItem* pSearchItem) bool bEndOfSearch = true; // clear the search toolbar entry - SvxSearchDialogWrapper::SetSearchLabel(SL_Empty); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::Empty); mpDrawDocument->GetDocSh()->SetWaitCursor( true ); if (mbPrepareSpellingPending) @@ -1170,7 +1170,7 @@ void Outliner::ShowEndOfSearchDialog() { if (!mbStringFound) { - SvxSearchDialogWrapper::SetSearchLabel(SL_NotFound); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::NotFound); std::shared_ptr<ViewShell> pViewShell(mpWeakViewShell.lock()); if (pViewShell) { @@ -1205,9 +1205,9 @@ bool Outliner::ShowWrapArroundDialog() if (nCommand == SvxSearchCmd::REPLACE || nCommand == SvxSearchCmd::FIND) { if (mbDirectionIsForward) - SvxSearchDialogWrapper::SetSearchLabel(SL_End); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::End); else - SvxSearchDialogWrapper::SetSearchLabel(SL_Start); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::Start); return true; } @@ -1481,7 +1481,7 @@ bool Outliner::HandleFailedSearch() if (HasNoPreviousMatch ()) { // No match found in the whole presentation. - SvxSearchDialogWrapper::SetSearchLabel(SL_NotFound); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::NotFound); } else |