diff options
author | Henry Castro <hcastro@collabora.com> | 2015-05-25 23:45:06 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2015-05-25 23:52:18 -0400 |
commit | 3dc50a3b9afc6eec42fb9f657a4dfd236066892f (patch) | |
tree | 3a9b59f8f0cc8e9194324c1b437cdae18fa187e1 /sc/source | |
parent | af75d7a4c99414fabbd31b9df590266d28574fb1 (diff) |
sc LOKit callback for search not found.
Needed for signaling the user when no match was found for the searched input
Change-Id: I10089d065c26deea7cb57a9dc20f130f9afb6d99
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/view/viewfun2.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index 5b5ec3bf346e..49d70d8b6aff 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -1775,7 +1775,11 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem, GetFrameWin()->LeaveWait(); if (!bIsApi) + { + rDoc.GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_SEARCH_NOT_FOUND, + pSearchItem->GetSearchString().toUtf8().getStr()); SvxSearchDialogWrapper::SetSearchLabel(SL_NotFound); + } break; // break 'while (TRUE)' } |