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
82cf91ed
Kaydet (Commit)
82cf91ed
authored
Eyl 16, 2010
tarafından
Kohei Yoshida
Kaydeden (comit)
Fridrich Štrba
Eyl 16, 2010
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
calc-find-replace-empty-cells-svx.diff: Support find and replace empty cells
i#49380, n#415352
üst
6964bfe8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
6 deletions
+45
-6
srchdlg.hxx
svx/inc/srchdlg.hxx
+2
-0
srchdlg.cxx
svx/source/dialog/srchdlg.cxx
+43
-6
No files found.
svx/inc/srchdlg.hxx
Dosyayı görüntüle @
82cf91ed
...
...
@@ -160,6 +160,8 @@ public:
INT32
GetTransliterationFlags
()
const
;
void
SetSaveToModule
(
bool
b
);
private
:
FixedText
aSearchText
;
ComboBox
aSearchLB
;
...
...
svx/source/dialog/srchdlg.cxx
Dosyayı görüntüle @
82cf91ed
...
...
@@ -659,6 +659,11 @@ INT32 SvxSearchDialog::GetTransliterationFlags() const
return
nTransliterationFlags
;
}
void
SvxSearchDialog
::
SetSaveToModule
(
bool
b
)
{
pImpl
->
bSaveToModule
=
b
;
}
// -----------------------------------------------------------------------
void
SvxSearchDialog
::
ApplyTransliterationFlags_Impl
(
INT32
nSettings
)
...
...
@@ -926,9 +931,36 @@ void SvxSearchDialog::CalculateDelta_Impl()
// -----------------------------------------------------------------------
namespace
{
class
ToggleSaveToModule
{
public
:
ToggleSaveToModule
(
SvxSearchDialog
&
rDialog
,
bool
bValue
)
:
mrDialog
(
rDialog
),
mbValue
(
bValue
)
{
mrDialog
.
SetSaveToModule
(
mbValue
);
}
~
ToggleSaveToModule
()
{
mrDialog
.
SetSaveToModule
(
!
mbValue
);
}
private
:
SvxSearchDialog
&
mrDialog
;
bool
mbValue
;
};
}
void
SvxSearchDialog
::
Init_Impl
(
int
bSearchPattern
)
{
DBG_ASSERT
(
pSearchItem
,
"SearchItem == 0"
);
// We don't want to save any intermediate state to the module while the
// dialog is being initialized.
ToggleSaveToModule
aNoModuleSave
(
*
this
,
false
);
bWriter
=
(
pSearchItem
->
GetAppFlag
()
==
SVX_SEARCHAPP_WRITER
);
pImpl
->
bMultiLineEdit
=
FALSE
;
...
...
@@ -1078,10 +1110,8 @@ void SvxSearchDialog::Init_Impl( int bSearchPattern )
aSimilarityBox
.
Check
(
pSearchItem
->
IsLevenshtein
()
);
bSet
=
TRUE
;
pImpl
->
bSaveToModule
=
FALSE
;
FlagHdl_Impl
(
&
aSimilarityBox
);
FlagHdl_Impl
(
&
aJapOptionsCB
);
pImpl
->
bSaveToModule
=
TRUE
;
FASTBOOL
bDisableSearch
=
FALSE
;
SfxViewShell
*
pViewShell
=
SfxViewShell
::
Current
();
...
...
@@ -1609,16 +1639,23 @@ IMPL_LINK( SvxSearchDialog, ModifyHdl_Impl, ComboBox *, pEd )
else
bSet
=
FALSE
;
// Calc allows searching for empty cells.
bool
bAllowEmptySearch
=
(
pSearchItem
->
GetAppFlag
()
==
SVX_SEARCHAPP_CALC
);
if
(
pEd
==
&
aSearchLB
||
pEd
==
&
aReplaceLB
)
{
xub_StrLen
nLBTxtLen
=
aSearchLB
.
GetText
().
Len
(),
nTxtLen
;
xub_StrLen
nSrchTxtLen
=
aSearchLB
.
GetText
().
Len
();
xub_StrLen
nReplTxtLen
=
0
;
if
(
bAllowEmptySearch
)
nReplTxtLen
=
aReplaceLB
.
GetText
().
Len
();
xub_StrLen
nAttrTxtLen
=
0
;
if
(
!
pImpl
->
bMultiLineEdit
)
nTxtLen
=
aSearchAttrText
.
GetText
().
Len
();
n
Attr
TxtLen
=
aSearchAttrText
.
GetText
().
Len
();
else
nTxtLen
=
pImpl
->
aSearchFormats
.
GetText
().
Len
();
n
Attr
TxtLen
=
pImpl
->
aSearchFormats
.
GetText
().
Len
();
if
(
nLBTxtLen
||
nTxtLen
)
if
(
nSrchTxtLen
||
nReplTxtLen
||
nAttrTxtLen
)
{
EnableControl_Impl
(
&
aSearchBtn
);
EnableControl_Impl
(
&
aReplaceBtn
);
...
...
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