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
a29032c9
Kaydet (Commit)
a29032c9
authored
Ock 28, 2013
tarafından
Robert Roth
Kaydeden (comit)
Caolán McNamara
Ock 28, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Show meaningful title for search key not found infobox, fdo#59865
Change-Id: I5c99fc98552be705ddcb163320521620bdcbf7ef
üst
6d0f1435
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
viewsrch.cxx
sw/source/ui/uiview/viewsrch.cxx
+21
-8
No files found.
sw/source/ui/uiview/viewsrch.cxx
Dosyayı görüntüle @
a29032c9
...
...
@@ -37,6 +37,8 @@
#include <sal/macros.h>
#include <sfx2/request.hxx>
#include <svx/srchdlg.hxx>
#include <svx/dialmgr.hxx>
#include <svx/dialogs.hrc>
#include <vcl/msgbox.hxx>
#include <vcl/wrkwin.hxx>
#include "editeng/unolingu.hxx"
...
...
@@ -87,6 +89,21 @@ inline Window* GetParentWindow( SvxSearchDialog* pSrchDlg )
return
pWin
;
}
inline
void
ShowNotFoundInfoBox
(
SvxSearchDialog
*
pSrchDlg
)
{
Window
*
pParentWindow
=
GetParentWindow
(
pSrchDlg
);
InfoBox
aBox
(
pParentWindow
,
SW_RES
(
MSG_NOT_FOUND
));
if
(
pParentWindow
)
{
aBox
.
SetText
(
pParentWindow
->
GetText
());
}
else
{
aBox
.
SetText
(
SVX_RESSTR
(
RID_SVXSTR_FINDBAR_FIND
));
}
aBox
.
Execute
();
}
void
SwView
::
ExecSearch
(
SfxRequest
&
rReq
,
sal_Bool
bNoMessage
)
{
const
SfxItemSet
*
pArgs
=
rReq
.
GetArgs
();
...
...
@@ -211,8 +228,7 @@ void SwView::ExecSearch(SfxRequest& rReq, sal_Bool bNoMessage)
{
if
(
!
bApi
)
{
Window
*
pParentWindow
=
GetParentWindow
(
pSrchDlg
);
InfoBox
(
pParentWindow
,
SW_RES
(
MSG_NOT_FOUND
)).
Execute
();
ShowNotFoundInfoBox
(
pSrchDlg
);
}
bFound
=
sal_False
;
}
...
...
@@ -311,8 +327,7 @@ void SwView::ExecSearch(SfxRequest& rReq, sal_Bool bNoMessage)
{
if
(
!
bApi
)
{
Window
*
pParentWindow
=
GetParentWindow
(
pSrchDlg
);
InfoBox
(
pParentWindow
,
SW_RES
(
MSG_NOT_FOUND
)).
Execute
();
ShowNotFoundInfoBox
(
pSrchDlg
);
}
bFound
=
sal_False
;
return
;
...
...
@@ -483,8 +498,7 @@ sal_Bool SwView::SearchAndWrap(sal_Bool bApi)
pWrtShell
->
EndAllAction
();
if
(
!
bApi
)
{
Window
*
pParentWindow
=
GetParentWindow
(
pSrchDlg
);
InfoBox
(
pParentWindow
,
SW_RES
(
MSG_NOT_FOUND
)).
Execute
();
ShowNotFoundInfoBox
(
pSrchDlg
);
}
bFound
=
sal_False
;
pWrtShell
->
Pop
();
...
...
@@ -528,8 +542,7 @@ sal_Bool SwView::SearchAndWrap(sal_Bool bApi)
return
bFound
;
if
(
!
bApi
)
{
Window
*
pParentWindow
=
GetParentWindow
(
pSrchDlg
);
InfoBox
(
pParentWindow
,
SW_RES
(
MSG_NOT_FOUND
)).
Execute
();
ShowNotFoundInfoBox
(
pSrchDlg
);
}
return
bFound
=
sal_False
;
}
...
...
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