diff options
author | Luc Castermans <luc.castermans@gmail.com> | 2014-01-07 21:47:08 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-01-09 18:03:30 +0000 |
commit | 561775d5b533f25d6f07c6c4793b8c64afa47920 (patch) | |
tree | 96cb41c6bd1158cce9e41aec1b2aa73db39d9746 /svtools/source/misc/embedhlp.cxx | |
parent | baf112e6f085c4e13ece0028a9c40f41d8ced308 (diff) |
translated German comments
Change-Id: Ie08b9e12f990b244806379ff29cf33cd0fab847a
Reviewed-on: https://gerrit.libreoffice.org/7300
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'svtools/source/misc/embedhlp.cxx')
-rw-r--r-- | svtools/source/misc/embedhlp.cxx | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx index 918b9415ae9f..c5da4be544dd 100644 --- a/svtools/source/misc/embedhlp.cxx +++ b/svtools/source/misc/embedhlp.cxx @@ -640,8 +640,9 @@ void EmbeddedObjectRef::DrawPaintReplacement( const Rectangle &rRect, const OUSt pOut->SetFont( aFnt ); Point aPt; - // Nun den Text so skalieren, dass er in das Rect passt. - // Wir fangen mit der Defaultsize an und gehen 1-AppFont runter + + // Now scale text such that it fits in the rectangle + // We start with the default size and decrease 1-AppFont for( sal_uInt16 i = 8; i > 2; i-- ) { aPt.X() = (rRect.GetWidth() - pOut->GetTextWidth( rText )) / 2; @@ -652,7 +653,7 @@ void EmbeddedObjectRef::DrawPaintReplacement( const Rectangle &rRect, const OUSt if( aPt.Y() < 0 ) bTiny = true, aPt.Y() = 0; if( bTiny ) { - // heruntergehen bei kleinen Bildern + // decrease for small images aFnt.SetSize( Size( 0, aAppFontSz.Height() * i / 8 ) ); pOut->SetFont( aFnt ); } @@ -668,23 +669,23 @@ void EmbeddedObjectRef::DrawPaintReplacement( const Rectangle &rRect, const OUSt aPt.Y() = nHeight; Point aP = rRect.TopLeft(); Size aBmpSize = aBmp.GetSizePixel(); - // Bitmap einpassen + // fit bitmap in if( nHeight * 10 / nWidth > aBmpSize.Height() * 10 / aBmpSize.Width() ) { - // nach der Breite ausrichten - // Proportion beibehalten + // adjust to the width + // keep proportions long nH = nWidth * aBmpSize.Height() / aBmpSize.Width(); - // zentrieren + // center aP.Y() += (nHeight - nH) / 2; nHeight = nH; } else { - // nach der H"ohe ausrichten - // Proportion beibehalten + // adjust to the height + // keep proportions long nW = nHeight * aBmpSize.Width() / aBmpSize.Height(); - // zentrieren + // center aP.X() += (nWidth - nW) / 2; nWidth = nW; } |