From e9d045f0f476c80060a350c08d8b253eaf41c41f Mon Sep 17 00:00:00 2001 From: Josh Heidenreich Date: Thu, 23 Feb 2012 13:00:15 +1030 Subject: Translation of German comments in sc html filter (htmlexp2.cxx) --- sc/source/filter/html/htmlexp2.cxx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'sc/source') diff --git a/sc/source/filter/html/htmlexp2.cxx b/sc/source/filter/html/htmlexp2.cxx index 4834b4a24016..15091d19a3e1 100644 --- a/sc/source/filter/html/htmlexp2.cxx +++ b/sc/source/filter/html/htmlexp2.cxx @@ -71,7 +71,7 @@ void ScHTMLExport::PrepareGraphics( ScDrawLayer* pDrawLayer, SCTAB nTab, { ScHTMLGraphEntry* pE = &aGraphList[ i ]; if ( !pE->bInCell ) - { // nicht alle in Zellen: einige neben Tabelle + { // not all cells: table next to some bTabAlignedLeft = sal_True; break; } @@ -198,17 +198,19 @@ void ScHTMLExport::WriteGraphEntry( ScHTMLGraphEntry* pE ) void ScHTMLExport::WriteImage( String& rLinkName, const Graphic& rGrf, const rtl::OString& rImgOptions, sal_uLong nXOutFlags ) { - // embeddete Grafik -> via WriteGraphic schreiben + // Embedded graphic -> create an image file if( !rLinkName.Len() ) { if( aStreamPath.Len() > 0 ) { - // Grafik als (JPG-)File speichern + // Save as a PNG String aGrfNm( aStreamPath ); nXOutFlags |= XOUTBMP_USE_NATIVE_IF_POSSIBLE; sal_uInt16 nErr = XOutBitmap::WriteGraphic( rGrf, aGrfNm, CREATE_STRING( "PNG" ), nXOutFlags ); - if( !nErr ) // sonst fehlerhaft, da ist nichts auszugeben + + // If it worked, create a URL for the IMG tag + if( !nErr ) { rLinkName = URIHelper::SmartRel2Abs( INetURLObject(aBaseURL), @@ -221,6 +223,7 @@ void ScHTMLExport::WriteImage( String& rLinkName, const Graphic& rGrf, } else { + // Linked graphic - figure out the URL for the IMG tag if( bCopyLocalFileToINet || HasCId() ) { CopyLocalFileToINet( rLinkName, aStreamPath ); @@ -233,8 +236,11 @@ void ScHTMLExport::WriteImage( String& rLinkName, const Graphic& rGrf, rLinkName, URIHelper::GetMaybeFileHdl()); } + + // If a URL was set, output the IMG tag. + // if( rLinkName.Len() ) - { // + { rStrm << '<' << OOO_STRING_SVTOOLS_HTML_image << ' ' << OOO_STRING_SVTOOLS_HTML_O_src << "=\""; HTMLOutFuncs::Out_String( rStrm, URIHelper::simpleNormalizedMakeRelative( aBaseURL, -- cgit