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
f6ae27e3
Kaydet (Commit)
f6ae27e3
authored
Şub 06, 2011
tarafından
Karsten Gerloff
Kaydeden (comit)
Michael Meeks
Şub 06, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
translate some comments
üst
2d7ae265
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
cuifmsearch.cxx
cui/source/dialogs/cuifmsearch.cxx
+13
-10
No files found.
cui/source/dialogs/cuifmsearch.cxx
Dosyayı görüntüle @
f6ae27e3
...
@@ -240,7 +240,7 @@ FmSearchDialog::~FmSearchDialog()
...
@@ -240,7 +240,7 @@ FmSearchDialog::~FmSearchDialog()
//------------------------------------------------------------------------
//------------------------------------------------------------------------
void
FmSearchDialog
::
Init
(
const
UniString
&
strVisibleFields
,
const
UniString
&
sInitialText
)
void
FmSearchDialog
::
Init
(
const
UniString
&
strVisibleFields
,
const
UniString
&
sInitialText
)
{
{
//
die Initialisierung all der
Controls
//
the initialization of all the
Controls
m_rbSearchForText
.
SetClickHdl
(
LINK
(
this
,
FmSearchDialog
,
OnClickedFieldRadios
));
m_rbSearchForText
.
SetClickHdl
(
LINK
(
this
,
FmSearchDialog
,
OnClickedFieldRadios
));
m_rbSearchForNull
.
SetClickHdl
(
LINK
(
this
,
FmSearchDialog
,
OnClickedFieldRadios
));
m_rbSearchForNull
.
SetClickHdl
(
LINK
(
this
,
FmSearchDialog
,
OnClickedFieldRadios
));
m_rbSearchForNotNull
.
SetClickHdl
(
LINK
(
this
,
FmSearchDialog
,
OnClickedFieldRadios
));
m_rbSearchForNotNull
.
SetClickHdl
(
LINK
(
this
,
FmSearchDialog
,
OnClickedFieldRadios
));
...
@@ -268,8 +268,8 @@ void FmSearchDialog::Init(const UniString& strVisibleFields, const UniString& sI
...
@@ -268,8 +268,8 @@ void FmSearchDialog::Init(const UniString& strVisibleFields, const UniString& sI
m_aHalfFullFormsCJK
.
SetToggleHdl
(
LINK
(
this
,
FmSearchDialog
,
OnCheckBoxToggled
));
m_aHalfFullFormsCJK
.
SetToggleHdl
(
LINK
(
this
,
FmSearchDialog
,
OnCheckBoxToggled
));
m_aSoundsLikeCJK
.
SetToggleHdl
(
LINK
(
this
,
FmSearchDialog
,
OnCheckBoxToggled
));
m_aSoundsLikeCJK
.
SetToggleHdl
(
LINK
(
this
,
FmSearchDialog
,
OnCheckBoxToggled
));
//
die Listboxen fuellen
//
fill the listboxes
//
die Methoden des Feldvergleiches
//
method of field comparison
USHORT
nResIds
[]
=
{
USHORT
nResIds
[]
=
{
RID_STR_SEARCH_ANYWHERE
,
RID_STR_SEARCH_ANYWHERE
,
RID_STR_SEARCH_BEGINNING
,
RID_STR_SEARCH_BEGINNING
,
...
@@ -280,7 +280,7 @@ void FmSearchDialog::Init(const UniString& strVisibleFields, const UniString& sI
...
@@ -280,7 +280,7 @@ void FmSearchDialog::Init(const UniString& strVisibleFields, const UniString& sI
m_lbPosition
.
InsertEntry
(
String
(
CUI_RES
(
nResIds
[
i
]
)
)
);
m_lbPosition
.
InsertEntry
(
String
(
CUI_RES
(
nResIds
[
i
]
)
)
);
m_lbPosition
.
SelectEntryPos
(
MATCHING_ANYWHERE
);
m_lbPosition
.
SelectEntryPos
(
MATCHING_ANYWHERE
);
//
die Feld-L
istbox
//
the field l
istbox
for
(
USHORT
i
=
0
;
i
<
strVisibleFields
.
GetTokenCount
(
';'
);
++
i
)
for
(
USHORT
i
=
0
;
i
<
strVisibleFields
.
GetTokenCount
(
';'
);
++
i
)
m_lbField
.
InsertEntry
(
strVisibleFields
.
GetToken
(
i
,
';'
));
m_lbField
.
InsertEntry
(
strVisibleFields
.
GetToken
(
i
,
';'
));
...
@@ -289,14 +289,15 @@ void FmSearchDialog::Init(const UniString& strVisibleFields, const UniString& sI
...
@@ -289,14 +289,15 @@ void FmSearchDialog::Init(const UniString& strVisibleFields, const UniString& sI
LoadParams
();
LoadParams
();
m_cmbSearchText
.
SetText
(
sInitialText
);
m_cmbSearchText
.
SetText
(
sInitialText
);
// wenn die Edit-Zeile den Text veraendert hat (weil er zum Beispiel Steuerzeichen enthielt, wie das bei Memofeldern der Fall
// if the Edit-line has changed the text (e.g. because it contains
// sein kann), nehme ich einen leeren UniString
// control characters, as can be the case with memo fields), I use
// an empty UniString.
UniString
sRealSetText
=
m_cmbSearchText
.
GetText
();
UniString
sRealSetText
=
m_cmbSearchText
.
GetText
();
if
(
!
sRealSetText
.
Equals
(
sInitialText
))
if
(
!
sRealSetText
.
Equals
(
sInitialText
))
m_cmbSearchText
.
SetText
(
UniString
());
m_cmbSearchText
.
SetText
(
UniString
());
LINK
(
this
,
FmSearchDialog
,
OnSearchTextModified
).
Call
(
&
m_cmbSearchText
);
LINK
(
this
,
FmSearchDialog
,
OnSearchTextModified
).
Call
(
&
m_cmbSearchText
);
// initial
die ganzen UI-Elemente fuer die Suche an
// initial
m_aDelayedPaint
.
SetTimeoutHdl
(
LINK
(
this
,
FmSearchDialog
,
OnDelayedPaint
));
m_aDelayedPaint
.
SetTimeoutHdl
(
LINK
(
this
,
FmSearchDialog
,
OnDelayedPaint
));
m_aDelayedPaint
.
SetTimeout
(
500
);
m_aDelayedPaint
.
SetTimeout
(
500
);
EnableSearchUI
(
sal_True
);
EnableSearchUI
(
sal_True
);
...
@@ -310,8 +311,10 @@ void FmSearchDialog::Init(const UniString& strVisibleFields, const UniString& sI
...
@@ -310,8 +311,10 @@ void FmSearchDialog::Init(const UniString& strVisibleFields, const UniString& sI
//------------------------------------------------------------------------
//------------------------------------------------------------------------
sal_Bool
FmSearchDialog
::
Close
()
sal_Bool
FmSearchDialog
::
Close
()
{
{
// Wenn der Close-Button disabled ist und man im Dialog ESC drueckt, dann wird irgendwo vom Frame trotzdem Close aufgerufen,
// If the close button is disabled and ESC is pressed in a dialog,
// was ich allerdings nicht will, wenn ich gerade mitten in einer (eventuell in einem extra Thread laufenden) Suche bin
// then Frame will call Close anyway, which I don't want to happen
// while I'm in the middle of a search (maybe one that's running
// in its own thread)
if
(
!
m_pbClose
.
IsEnabled
())
if
(
!
m_pbClose
.
IsEnabled
())
return
sal_False
;
return
sal_False
;
return
ModalDialog
::
Close
();
return
ModalDialog
::
Close
();
...
@@ -325,7 +328,7 @@ IMPL_LINK(FmSearchDialog, OnClickedFieldRadios, Button*, pButton)
...
@@ -325,7 +328,7 @@ IMPL_LINK(FmSearchDialog, OnClickedFieldRadios, Button*, pButton)
EnableSearchForDependees
(
sal_True
);
EnableSearchForDependees
(
sal_True
);
}
}
else
else
//
die Feldlistbox entsprechend en- oder disablen
//
en- or disable field list box accordingly
if
(
pButton
==
&
m_rbSingleField
)
if
(
pButton
==
&
m_rbSingleField
)
{
{
m_lbField
.
Enable
();
m_lbField
.
Enable
();
...
...
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