diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-04-20 03:42:36 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-04-21 10:25:23 +0200 |
commit | 9f5439e83f5506011f5b1d3acf01182a2b1f3e0e (patch) | |
tree | 3d758cc46dbef5746424b98ce6bde497a2b3be57 /vcl/source/gdi/pdfwriter_impl2.cxx | |
parent | 491fbb1de3697b566f1af8925896053b2a39f33c (diff) |
vcl: cleanup swaths of commented code
Change-Id: I7acff3d136794dcb0f044bb3922fafeb13b6fa5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92600
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl2.cxx')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl2.cxx | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index 309b631af745..f08067f356f5 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -675,88 +675,6 @@ void PDFWriterImpl::playMetafile( const GDIMetaFile& i_rMtf, vcl::PDFExtOutDevDa else if ( fTransparency == 1.0 ) bSkipSequence = true; } -/* #i81548# removing optimization for fill textures, because most of the texture settings are not - exported properly. In OpenOffice 3.1 the drawing layer will support graphic primitives, then it - will not be a problem to optimize the filltexture export. But for wysiwyg is more important than - filesize. - else if( aFill.getFillType() == SvtGraphicFill::fillTexture && aFill.isTiling() ) - { - sal_Int32 nPattern = mnCachePatternId; - Graphic aPatternGraphic; - aFill.getGraphic( aPatternGraphic ); - bool bUseCache = false; - SvtGraphicFill::Transform aPatTransform; - aFill.getTransform( aPatTransform ); - - if( mnCachePatternId >= 0 ) - { - SvtGraphicFill::Transform aCacheTransform; - maCacheFill.getTransform( aCacheTransform ); - if( aCacheTransform.matrix[0] == aPatTransform.matrix[0] && - aCacheTransform.matrix[1] == aPatTransform.matrix[1] && - aCacheTransform.matrix[2] == aPatTransform.matrix[2] && - aCacheTransform.matrix[3] == aPatTransform.matrix[3] && - aCacheTransform.matrix[4] == aPatTransform.matrix[4] && - aCacheTransform.matrix[5] == aPatTransform.matrix[5] - ) - { - Graphic aCacheGraphic; - maCacheFill.getGraphic( aCacheGraphic ); - if( aCacheGraphic == aPatternGraphic ) - bUseCache = true; - } - } - - if( ! bUseCache ) - { - - // paint graphic to metafile - GDIMetaFile aPattern; - pDummyVDev->SetConnectMetaFile( &aPattern ); - pDummyVDev->Push(); - pDummyVDev->SetMapMode( aPatternGraphic.GetPrefMapMode() ); - - aPatternGraphic.Draw( &rDummyVDev, Point( 0, 0 ) ); - pDummyVDev->Pop(); - pDummyVDev->SetConnectMetaFile( NULL ); - aPattern.WindStart(); - - MapMode aPatternMapMode( aPatternGraphic.GetPrefMapMode() ); - // prepare pattern from metafile - Size aPrefSize( aPatternGraphic.GetPrefSize() ); - // FIXME: this magic -1 shouldn't be necessary - aPrefSize.Width() -= 1; - aPrefSize.Height() -= 1; - aPrefSize = m_rOuterFace.GetReferenceDevice()-> - LogicToLogic( aPrefSize, - &aPatternMapMode, - &m_rOuterFace.GetReferenceDevice()->GetMapMode() ); - // build bounding rectangle of pattern - Rectangle aBound( Point( 0, 0 ), aPrefSize ); - m_rOuterFace.BeginPattern( aBound ); - m_rOuterFace.Push(); - pDummyVDev->Push(); - m_rOuterFace.SetMapMode( aPatternMapMode ); - pDummyVDev->SetMapMode( aPatternMapMode ); - ImplWriteActions( m_rOuterFace, NULL, aPattern, rDummyVDev ); - pDummyVDev->Pop(); - m_rOuterFace.Pop(); - - nPattern = m_rOuterFace.EndPattern( aPatTransform ); - - // try some caching and reuse pattern - mnCachePatternId = nPattern; - maCacheFill = aFill; - } - - // draw polypolygon with pattern fill - tools::PolyPolygon aPath; - aFill.getPath( aPath ); - m_rOuterFace.DrawPolyPolygon( aPath, nPattern, aFill.getFillRule() == SvtGraphicFill::fillEvenOdd ); - - bSkipSequence = true; - } -*/ } if ( bSkipSequence ) { |