Kaydet (Commit) 1e5e75b6 authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS warnings01 (1.5.222); FILE MERGED

2006/04/26 08:09:33 os 1.5.222.1: warnings removed
üst 3ebe91df
...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment