INTEGRATION: CWS os52 (1.3.314); FILE MERGED
2005/02/17 16:37:25 os 1.3.314.2: RESYNC: (1.3-1.6); FILE MERGED 2005/02/03 12:09:07 os 1.3.314.1: #i40137# support for deleted redlines added
This commit is contained in:
parent
f5e74b0ef4
commit
49a5365d1c
1 changed files with 16 additions and 10 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: SpellDialog.cxx,v $
|
||||
*
|
||||
* $Revision: 1.7 $
|
||||
* $Revision: 1.8 $
|
||||
*
|
||||
* last change: $Author: vg $ $Date: 2005-02-16 17:06:54 $
|
||||
* last change: $Author: kz $ $Date: 2005-03-01 15:30:45 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -1039,7 +1039,9 @@ bool SpellDialog::GetNextSentence_Impl(bool bUseSavedSentence)
|
|||
rtl::OUString sText;
|
||||
while(aStart != aSentence.end())
|
||||
{
|
||||
sText += aStart->sText;
|
||||
// hidden text has to be ignored
|
||||
if(!aStart->bIsHidden)
|
||||
sText += aStart->sText;
|
||||
aStart++;
|
||||
}
|
||||
aSentenceED.SetText(sText);
|
||||
|
@ -1049,13 +1051,17 @@ bool SpellDialog::GetNextSentence_Impl(bool bUseSavedSentence)
|
|||
|
||||
while(aStart != aSentence.end())
|
||||
{
|
||||
nEndPosition += aStart->sText.getLength();
|
||||
if(aStart->xAlternatives.is())
|
||||
aSentenceED.SetAttrib( SpellErrorAttrib(aStart->xAlternatives), 0, (USHORT) nStartPosition, (USHORT) nEndPosition );
|
||||
if(aStart->bIsField)
|
||||
aSentenceED.SetAttrib( SpellBackgroundAttrib(COL_LIGHTGRAY), 0, (USHORT) nStartPosition, (USHORT) nEndPosition );
|
||||
aSentenceED.SetAttrib( SpellLanguageAttrib(aStart->eLanguage), 0, (USHORT) nStartPosition, (USHORT) nEndPosition );
|
||||
nStartPosition = nEndPosition;
|
||||
// hidden text has to be ignored
|
||||
if(!aStart->bIsHidden)
|
||||
{
|
||||
nEndPosition += aStart->sText.getLength();
|
||||
if(aStart->xAlternatives.is())
|
||||
aSentenceED.SetAttrib( SpellErrorAttrib(aStart->xAlternatives), 0, (USHORT) nStartPosition, (USHORT) nEndPosition );
|
||||
if(aStart->bIsField)
|
||||
aSentenceED.SetAttrib( SpellBackgroundAttrib(COL_LIGHTGRAY), 0, (USHORT) nStartPosition, (USHORT) nEndPosition );
|
||||
aSentenceED.SetAttrib( SpellLanguageAttrib(aStart->eLanguage), 0, (USHORT) nStartPosition, (USHORT) nEndPosition );
|
||||
nStartPosition = nEndPosition;
|
||||
}
|
||||
aStart++;
|
||||
}
|
||||
//the edit field needs to be modified to apply the change from the ApplyChangeAllList
|
||||
|
|
Loading…
Reference in a new issue