Kaydet (Commit) 4b9301d4 authored tarafından Christian M. Heller's avatar Christian M. Heller Kaydeden (comit) Thomas Arnhold

fdo#39468 Translate German comments V2 - vcl/source/edit/{textdata, textdoc}

made the changes suggested by Thomas and Petr

Change-Id: I0f9e8dcda27a714628edaa5e1e8fd875c8f67593
Reviewed-on: https://gerrit.libreoffice.org/3162Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
üst 77074e46
...@@ -24,10 +24,6 @@ ...@@ -24,10 +24,6 @@
#include <tools/debug.hxx> #include <tools/debug.hxx>
// -------------------------------------------------------------------------
// (+) class TextSelection
// -------------------------------------------------------------------------
TextSelection::TextSelection() TextSelection::TextSelection()
{ {
} }
...@@ -53,9 +49,6 @@ void TextSelection::Justify() ...@@ -53,9 +49,6 @@ void TextSelection::Justify()
} }
// -------------------------------------------------------------------------
// (+) class TETextPortionList
// -------------------------------------------------------------------------
TETextPortionList::TETextPortionList() TETextPortionList::TETextPortionList()
{ {
} }
...@@ -82,7 +75,7 @@ void TETextPortionList::DeleteFromPortion( sal_uInt16 nDelFrom ) ...@@ -82,7 +75,7 @@ void TETextPortionList::DeleteFromPortion( sal_uInt16 nDelFrom )
sal_uInt16 TETextPortionList::FindPortion( sal_uInt16 nCharPos, sal_uInt16& nPortionStart, sal_Bool bPreferStartingPortion ) sal_uInt16 TETextPortionList::FindPortion( sal_uInt16 nCharPos, sal_uInt16& nPortionStart, sal_Bool bPreferStartingPortion )
{ {
// Bei nCharPos an Portion-Grenze wird die linke Portion gefunden // find left portion at nCharPos at portion border
sal_uInt16 nTmpPos = 0; sal_uInt16 nTmpPos = 0;
for ( sal_uInt16 nPortion = 0; nPortion < size(); nPortion++ ) for ( sal_uInt16 nPortion = 0; nPortion < size(); nPortion++ )
{ {
...@@ -103,9 +96,6 @@ sal_uInt16 TETextPortionList::FindPortion( sal_uInt16 nCharPos, sal_uInt16& nPor ...@@ -103,9 +96,6 @@ sal_uInt16 TETextPortionList::FindPortion( sal_uInt16 nCharPos, sal_uInt16& nPor
} }
// -------------------------------------------------------------------------
// (+) class TEParaPortion
// -------------------------------------------------------------------------
TEParaPortion::TEParaPortion( TextNode* pN ) TEParaPortion::TEParaPortion( TextNode* pN )
{ {
mpNode = pN; mpNode = pN;
...@@ -127,13 +117,13 @@ void TEParaPortion::MarkInvalid( sal_uInt16 nStart, short nDiff ) ...@@ -127,13 +117,13 @@ void TEParaPortion::MarkInvalid( sal_uInt16 nStart, short nDiff )
} }
else else
{ {
// Einfaches hintereinander tippen // simple consecutive typing
if ( ( nDiff > 0 ) && ( mnInvalidDiff > 0 ) && if ( ( nDiff > 0 ) && ( mnInvalidDiff > 0 ) &&
( ( mnInvalidPosStart+mnInvalidDiff ) == nStart ) ) ( ( mnInvalidPosStart+mnInvalidDiff ) == nStart ) )
{ {
mnInvalidDiff = mnInvalidDiff + nDiff; mnInvalidDiff = mnInvalidDiff + nDiff;
} }
// Einfaches hintereinander loeschen // simple consecutive deleting
else if ( ( nDiff < 0 ) && ( mnInvalidDiff < 0 ) && ( mnInvalidPosStart == nStart ) ) else if ( ( nDiff < 0 ) && ( mnInvalidDiff < 0 ) && ( mnInvalidPosStart == nStart ) )
{ {
mnInvalidPosStart = mnInvalidPosStart + nDiff; mnInvalidPosStart = mnInvalidPosStart + nDiff;
...@@ -202,12 +192,11 @@ void TEParaPortion::CorrectValuesBehindLastFormattedLine( sal_uInt16 nLastFormat ...@@ -202,12 +192,11 @@ void TEParaPortion::CorrectValuesBehindLastFormattedLine( sal_uInt16 nLastFormat
const TextLine* pUnformatted = maLines[ nLastFormattedLine+1 ]; const TextLine* pUnformatted = maLines[ nLastFormattedLine+1 ];
short nPortionDiff = pUnformatted->GetStartPortion() - pLastFormatted->GetEndPortion(); short nPortionDiff = pUnformatted->GetStartPortion() - pLastFormatted->GetEndPortion();
short nTextDiff = pUnformatted->GetStart() - pLastFormatted->GetEnd(); short nTextDiff = pUnformatted->GetStart() - pLastFormatted->GetEnd();
nTextDiff++; // LastFormatted->GetEnd() war incl. => 1 zuviel abgezogen! nTextDiff++; // LastFormatted->GetEnd() was inclusive => subtracted one too much!
// Die erste unformatierte muss genau eine Portion hinter der letzten der // The first unformated one has to start exactly one portion past the last
// formatierten beginnen: // formated one.
// Wenn in der geaenderten Zeile eine Portion gesplittet wurde, // If a portion got split in the changed row, nLastEnd could be > nNextStart!
// kann nLastEnd > nNextStart sein!
short nPDiff = sal::static_int_cast< short >(-( nPortionDiff-1 )); short nPDiff = sal::static_int_cast< short >(-( nPortionDiff-1 ));
short nTDiff = sal::static_int_cast< short >(-( nTextDiff-1 )); short nTDiff = sal::static_int_cast< short >(-( nTextDiff-1 ));
if ( nPDiff || nTDiff ) if ( nPDiff || nTDiff )
...@@ -228,9 +217,6 @@ void TEParaPortion::CorrectValuesBehindLastFormattedLine( sal_uInt16 nLastFormat ...@@ -228,9 +217,6 @@ void TEParaPortion::CorrectValuesBehindLastFormattedLine( sal_uInt16 nLastFormat
} }
} }
// -------------------------------------------------------------------------
// (+) class TEParaPortions
// -------------------------------------------------------------------------
TEParaPortions::TEParaPortions() TEParaPortions::TEParaPortions()
{ {
} }
...@@ -248,9 +234,6 @@ void TEParaPortions::Reset() ...@@ -248,9 +234,6 @@ void TEParaPortions::Reset()
clear(); clear();
} }
// -------------------------------------------------------------------------
// (+) class IdleFormatter
// -------------------------------------------------------------------------
IdleFormatter::IdleFormatter() IdleFormatter::IdleFormatter()
{ {
mpView = 0; mpView = 0;
......
This diff is collapsed.
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