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
07355d26
Kaydet (Commit)
07355d26
authored
May 18, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwPaM::Find: if there is an active text edit, then search there
Change-Id: Ic5d81aa1faca8f2190f87fc51eccdd7695d2c0ef
üst
29cfe825
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
findtxt.cxx
sw/source/core/crsr/findtxt.cxx
+24
-0
No files found.
sw/source/core/crsr/findtxt.cxx
Dosyayı görüntüle @
07355d26
...
@@ -22,6 +22,10 @@
...
@@ -22,6 +22,10 @@
#include <comphelper/string.hxx>
#include <comphelper/string.hxx>
#include <vcl/svapp.hxx>
#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
#include <vcl/window.hxx>
#include <svx/svdview.hxx>
#include <svl/srchitem.hxx>
#include <sfx2/sfxsids.hrc>
#include <editeng/outliner.hxx>
#include <editsh.hxx>
#include <editsh.hxx>
#include <txatritr.hxx>
#include <txatritr.hxx>
...
@@ -291,6 +295,26 @@ bool SwPaM::Find( const SearchOptions& rSearchOpt, bool bSearchInNotes , utl::Te
...
@@ -291,6 +295,26 @@ bool SwPaM::Find( const SearchOptions& rSearchOpt, bool bSearchInNotes , utl::Te
SwViewShell
*
const
pWrtShell
=
(
pDocShell
)
?
pDocShell
->
GetEditShell
()
:
0
;
SwViewShell
*
const
pWrtShell
=
(
pDocShell
)
?
pDocShell
->
GetEditShell
()
:
0
;
SwPostItMgr
*
const
pPostItMgr
=
(
pWrtShell
)
?
pWrtShell
->
GetPostItMgr
()
:
0
;
SwPostItMgr
*
const
pPostItMgr
=
(
pWrtShell
)
?
pWrtShell
->
GetPostItMgr
()
:
0
;
// If there is an active text edit, then search there.
if
(
SdrView
*
pSdrView
=
pWrtShell
->
GetDrawView
())
{
if
(
pSdrView
->
GetTextEditObject
())
{
SvxSearchItem
aSearchItem
(
SID_SEARCH_ITEM
);
aSearchItem
.
SetSearchOptions
(
rSearchOpt
);
aSearchItem
.
SetBackward
(
!
bSrchForward
);
sal_uInt16
nResult
=
pSdrView
->
GetTextEditOutlinerView
()
->
StartSearchAndReplace
(
aSearchItem
);
if
(
!
nResult
)
// If not found, end the text edit.
pSdrView
->
SdrEndTextEdit
();
else
{
bFound
=
true
;
break
;
}
}
}
sal_Int32
aStart
=
0
;
sal_Int32
aStart
=
0
;
// do we need to finish a note?
// do we need to finish a note?
if
(
pPostItMgr
&&
pPostItMgr
->
HasActiveSidebarWin
())
if
(
pPostItMgr
&&
pPostItMgr
->
HasActiveSidebarWin
())
...
...
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