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
1e5e75b6
Kaydet (Commit)
1e5e75b6
authored
Haz 19, 2006
tarafından
Jens-Heiner Rechtien
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS warnings01 (1.5.222); FILE MERGED
2006/04/26 08:09:33 os 1.5.222.1: warnings removed
üst
3ebe91df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
optdict.cxx
svx/source/dialog/optdict.cxx
+16
-16
No files found.
svx/source/dialog/optdict.cxx
Dosyayı görüntüle @
1e5e75b6
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
*
*
* $RCSfile: optdict.cxx,v $
* $RCSfile: optdict.cxx,v $
*
*
* $Revision: 1.
5
$
* $Revision: 1.
6
$
*
*
* last change: $Author:
rt $ $Date: 2005-09-08 21:40:54
$
* last change: $Author:
hr $ $Date: 2006-06-19 15:21:45
$
*
*
* The Contents of this file are made available subject to
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
* the terms of GNU Lesser General Public License Version 2.1.
...
@@ -283,10 +283,10 @@ SvxEditDictionaryDialog::SvxEditDictionaryDialog(
...
@@ -283,10 +283,10 @@ SvxEditDictionaryDialog::SvxEditDictionaryDialog(
sModify
(
ResId
(
STR_MODIFY
)),
sModify
(
ResId
(
STR_MODIFY
)),
sNew
(
aNewReplacePB
.
GetText
()),
sNew
(
aNewReplacePB
.
GetText
()),
aDecoView
(
this
),
aDecoView
(
this
),
bFirstSelect
(
sal_True
),
bDoNothing
(
sal_False
),
xSpell
(
xSpl
),
xSpell
(
xSpl
),
nOld
(
NOACTDICT
)
nOld
(
NOACTDICT
),
bFirstSelect
(
sal_True
),
bDoNothing
(
sal_False
)
{
{
if
(
SvxGetDictionaryList
().
is
())
if
(
SvxGetDictionaryList
().
is
())
...
@@ -581,7 +581,7 @@ void SvxEditDictionaryDialog::ShowWords_Impl( sal_uInt16 nId )
...
@@ -581,7 +581,7 @@ void SvxEditDictionaryDialog::ShowWords_Impl( sal_uInt16 nId )
aStr
+=
'\t'
;
aStr
+=
'\t'
;
aStr
+=
String
(
pEntry
[
i
]
->
getReplacementText
());
aStr
+=
String
(
pEntry
[
i
]
->
getReplacementText
());
}
}
aWordsLB
.
InsertEntry
(
aStr
,
nPos
==
USHRT_MAX
?
LIST_APPEND
:
nPos
);
aWordsLB
.
InsertEntry
(
aStr
,
0
,
sal_False
,
nPos
==
USHRT_MAX
?
LIST_APPEND
:
nPos
);
}
}
if
(
aWordsLB
.
GetEntryCount
())
if
(
aWordsLB
.
GetEntryCount
())
...
@@ -639,7 +639,7 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
...
@@ -639,7 +639,7 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
}
}
if
(
pBtn
==
&
aNewReplacePB
||
aNewReplacePB
.
IsEnabled
())
if
(
pBtn
==
&
aNewReplacePB
||
aNewReplacePB
.
IsEnabled
())
{
{
SvLBoxEntry
*
pEntry
=
aWordsLB
.
FirstSelected
();
SvLBoxEntry
*
_
pEntry
=
aWordsLB
.
FirstSelected
();
XubString
aNewWord
(
aWordED
.
GetText
());
XubString
aNewWord
(
aWordED
.
GetText
());
String
sEntry
(
aNewWord
);
String
sEntry
(
aNewWord
);
XubString
aReplaceStr
(
aReplaceED
.
GetText
());
XubString
aReplaceStr
(
aReplaceED
.
GetText
());
...
@@ -661,8 +661,8 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
...
@@ -661,8 +661,8 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
if
(
bIsNegEntry
)
if
(
bIsNegEntry
)
aRplcText
=
aReplaceStr
;
aRplcText
=
aReplaceStr
;
if
(
pEntry
)
// entry selected in aWordsLB ie action = modify entry
if
(
_
pEntry
)
// entry selected in aWordsLB ie action = modify entry
xDic
->
remove
(
aWordsLB
.
GetEntryText
(
pEntry
,
0
)
);
xDic
->
remove
(
aWordsLB
.
GetEntryText
(
_
pEntry
,
0
)
);
// if remove has failed the following add should fail too
// if remove has failed the following add should fail too
// and thus a warning message should be triggered...
// and thus a warning message should be triggered...
...
@@ -680,7 +680,7 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
...
@@ -680,7 +680,7 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
// insert new entry in list-box etc...
// insert new entry in list-box etc...
aWordsLB
.
SetUpdateMode
(
sal_False
);
aWordsLB
.
SetUpdateMode
(
sal_False
);
sal_uInt16
nPos
=
USHRT_MAX
;
sal_uInt16
_
nPos
=
USHRT_MAX
;
if
(
aReplaceFT
.
IsVisible
())
if
(
aReplaceFT
.
IsVisible
())
{
{
...
@@ -689,16 +689,16 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
...
@@ -689,16 +689,16 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
}
}
SvLBoxEntry
*
pNewEntry
=
NULL
;
SvLBoxEntry
*
pNewEntry
=
NULL
;
if
(
pEntry
)
// entry selected in aWordsLB ie action = modify entry
if
(
_
pEntry
)
// entry selected in aWordsLB ie action = modify entry
{
{
aWordsLB
.
SetEntryText
(
sEntry
,
pEntry
);
aWordsLB
.
SetEntryText
(
sEntry
,
_
pEntry
);
pNewEntry
=
pEntry
;
pNewEntry
=
_
pEntry
;
}
}
else
else
{
{
nPos
=
GetLBInsertPos
(
aNewWord
);
_
nPos
=
GetLBInsertPos
(
aNewWord
);
SvLBoxEntry
*
pInsEntry
=
aWordsLB
.
InsertEntry
(
sEntry
,
SvLBoxEntry
*
pInsEntry
=
aWordsLB
.
InsertEntry
(
sEntry
,
0
,
sal_False
,
nPos
==
USHRT_MAX
?
LIST_APPEND
:
(
sal_uInt32
)
nPos
);
_nPos
==
USHRT_MAX
?
LIST_APPEND
:
(
sal_uInt32
)
_
nPos
);
pNewEntry
=
pInsEntry
;
pNewEntry
=
pInsEntry
;
}
}
...
...
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