diff options
author | Josh Heidenreich <josh.sickmate@gmail.com> | 2012-02-23 13:00:15 +1030 |
---|---|---|
committer | Josh Heidenreich <josh.sickmate@gmail.com> | 2012-02-23 13:02:46 +1030 |
commit | e9d045f0f476c80060a350c08d8b253eaf41c41f (patch) | |
tree | 51676b7c58b78782b2c3c61909e7f59637239744 /sc | |
parent | 91fab30f3b1617024ee2eadf3c7ad1ea84d7f6dd (diff) |
Translation of German comments in sc html filter (htmlexp2.cxx)
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/html/htmlexp2.cxx | 16 |
1 files changed, 11 insertions, 5 deletions
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. + // <IMG SRC="..."[ rImgOptions]> if( rLinkName.Len() ) - { // <IMG SRC="..."[ rImgOptions]> + { rStrm << '<' << OOO_STRING_SVTOOLS_HTML_image << ' ' << OOO_STRING_SVTOOLS_HTML_O_src << "=\""; HTMLOutFuncs::Out_String( rStrm, URIHelper::simpleNormalizedMakeRelative( aBaseURL, |