Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
6c040ad1
Kaydet (Commit)
6c040ad1
authored
Eki 05, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
LOK: add CALLBACK_SEARCH_RESULT_COUNT and implement in sw
Change-Id: I616b3f6d2881aaa479f6498d3121540980256c15
üst
44838c66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
LibreOfficeKitEnums.h
include/LibreOfficeKit/LibreOfficeKitEnums.h
+3
-1
viewsrch.cxx
sw/source/uibase/uiview/viewsrch.cxx
+7
-1
No files found.
include/LibreOfficeKit/LibreOfficeKitEnums.h
Dosyayı görüntüle @
6c040ad1
...
...
@@ -155,7 +155,9 @@ typedef enum
*
* Payload is a single 0-based integer.
*/
LOK_CALLBACK_SET_PART
LOK_CALLBACK_SET_PART
,
/// Number of search results, in case something is found.
LOK_CALLBACK_SEARCH_RESULT_COUNT
}
LibreOfficeKitCallbackType
;
...
...
sw/source/uibase/uiview/viewsrch.cxx
Dosyayı görüntüle @
6c040ad1
...
...
@@ -209,7 +209,8 @@ void SwView::ExecSearch(SfxRequest& rReq, bool bNoMessage)
break
;
case
SvxSearchCmd
:
:
FIND_ALL
:
{
bool
bRet
=
SearchAll
();
sal_uInt16
nFound
=
0
;
bool
bRet
=
SearchAll
(
&
nFound
);
if
(
!
bRet
)
{
#if HAVE_FEATURE_DESKTOP
...
...
@@ -222,6 +223,11 @@ void SwView::ExecSearch(SfxRequest& rReq, bool bNoMessage)
#endif
m_bFound
=
false
;
}
else
{
OString
aPayload
=
OString
::
number
(
nFound
);
m_pWrtShell
->
libreOfficeKitCallback
(
LOK_CALLBACK_SEARCH_RESULT_COUNT
,
aPayload
.
getStr
());
}
rReq
.
SetReturnValue
(
SfxBoolItem
(
nSlot
,
bRet
));
#if HAVE_FEATURE_DESKTOP
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment