summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/fntcap.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-03-03 23:50:13 +0100
committerMichael Stahl <mstahl@redhat.com>2017-03-04 20:29:53 +0100
commit025889f7081e78626d67fc3083bc268dbf268b39 (patch)
tree61f99dce03c2658ba91ab2751205c05ec14e4db0 /sw/source/core/txtnode/fntcap.cxx
parent9211b3001fca6e22b9ed6034e3cd661a6df3b6f6 (diff)
sw: translate german comments in fntcap.cxx
Change-Id: I14a549e81025bd978efe930812f919d40fd57783
Diffstat (limited to 'sw/source/core/txtnode/fntcap.cxx')
-rw-r--r--sw/source/core/txtnode/fntcap.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/sw/source/core/txtnode/fntcap.cxx b/sw/source/core/txtnode/fntcap.cxx
index 55862431d549..8b62ddc95234 100644
--- a/sw/source/core/txtnode/fntcap.cxx
+++ b/sw/source/core/txtnode/fntcap.cxx
@@ -303,8 +303,8 @@ void SwDoDrawCapital::DrawSpace( Point &rPos )
void SwSubFont::DrawCapital( SwDrawTextInfo &rInf )
{
- // Es wird vorausgesetzt, dass rPos bereits kalkuliert ist!
- // hochgezogen in SwFont: const Point aPos( CalcPos(rPos) );
+ // Precondition: rInf.GetPos() has already been calculated
+
rInf.SetDrawSpace( GetUnderline() != LINESTYLE_NONE ||
GetOverline() != LINESTYLE_NONE ||
GetStrikeout() != STRIKEOUT_NONE );
@@ -409,7 +409,7 @@ void SwDoDrawStretchCapital::Do()
if( rInf.GetLen() )
{
- // 4023: Kapitaelchen und Kerning.
+ // small caps and kerning
long nDiff = long(nOrgWidth) - long(nCapWidth);
if( nDiff )
{
@@ -432,7 +432,7 @@ void SwDoDrawStretchCapital::Do()
if ( rInf.GetFrame()->IsVertical() )
rInf.GetFrame()->SwitchHorizontalToVertical( aPos );
- // Optimierung:
+ // Optimise:
if( 1 >= rInf.GetLen() )
GetOut().DrawText( aPos, rInf.GetText(), rInf.GetIdx(),
rInf.GetLen() );
@@ -445,8 +445,7 @@ void SwDoDrawStretchCapital::Do()
void SwSubFont::DrawStretchCapital( SwDrawTextInfo &rInf )
{
- // Es wird vorausgesetzt, dass rPos bereits kalkuliert ist!
- // hochgezogen in SwFont: const Point aPos( CalcPos(rPos) );
+ // Precondition: rInf.GetPos() has already been calculated
if( rInf.GetLen() == COMPLETE_STRING )
rInf.SetLen( rInf.GetText().getLength() );
@@ -516,7 +515,7 @@ void SwSubFont::DoOnCapitals( SwDoCapitals &rDo )
else
pSpaceFont = pLastFont;
- // Wir basteln uns einen Font fuer die Grossbuchstaben:
+ // Construct a font for the capitals:
aFont.SetUnderline( LINESTYLE_NONE );
aFont.SetOverline( LINESTYLE_NONE );
aFont.SetStrikeout( STRIKEOUT_NONE );
@@ -732,7 +731,7 @@ void SwSubFont::DoOnCapitals( SwDoCapitals &rDo )
#endif
}
- // Aufraeumen:
+ // clean up:
if( pBigFont != pOldLast )
delete pBigFontAccess;