summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2015-05-25 23:45:06 -0400
committerJan Holesovsky <kendy@collabora.com>2015-06-04 10:01:01 +0200
commitdc2ddf00b68322d715ebf9521d36653563d22bde (patch)
tree861abe9f6d7b4261941b286adf1ae366dad60a6d
parentdb79d2710e78c712763aaba0dc74165da5ad01cc (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
-rw-r--r--sc/source/ui/view/viewfun2.cxx4
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)'
}