LCOV - code coverage report
Current view: top level - libreoffice/cppcanvas/source/mtfrenderer - transparencygroupaction.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 92 0.0 %
Date: 2012-12-27 Functions: 0 10 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include <tools/gen.hxx>
      21             : 
      22             : #include <canvas/debug.hxx>
      23             : #include <canvas/verbosetrace.hxx>
      24             : #include <canvas/canvastools.hxx>
      25             : 
      26             : #include <rtl/logfile.hxx>
      27             : 
      28             : #include <com/sun/star/rendering/XBitmap.hpp>
      29             : #include <com/sun/star/rendering/XCanvas.hpp>
      30             : 
      31             : #include <rtl/math.hxx>
      32             : 
      33             : #include <vcl/metaact.hxx>
      34             : #include <vcl/bitmapex.hxx>
      35             : #include <vcl/canvastools.hxx>
      36             : #include <vcl/svapp.hxx>
      37             : #include <vcl/outdev.hxx>
      38             : #include <vcl/virdev.hxx>
      39             : #include <vcl/gdimtf.hxx>
      40             : #include <vcl/gradient.hxx>
      41             : 
      42             : #include <basegfx/range/b2drange.hxx>
      43             : #include <basegfx/point/b2dpoint.hxx>
      44             : #include <basegfx/vector/b2dsize.hxx>
      45             : #include <basegfx/numeric/ftools.hxx>
      46             : #include <basegfx/matrix/b2dhommatrix.hxx>
      47             : #include <basegfx/tuple/b2dtuple.hxx>
      48             : #include <basegfx/tools/canvastools.hxx>
      49             : 
      50             : #include <boost/utility.hpp>
      51             : 
      52             : #include "transparencygroupaction.hxx"
      53             : #include "outdevstate.hxx"
      54             : #include "mtftools.hxx"
      55             : #include "cppcanvas/vclfactory.hxx"
      56             : 
      57             : 
      58             : using namespace ::com::sun::star;
      59             : 
      60             : namespace cppcanvas
      61             : {
      62             :     namespace internal
      63             :     {
      64             :         // free support functions
      65             :         // ======================
      66             :         namespace
      67             :         {
      68           0 :             class TransparencyGroupAction : public Action, private ::boost::noncopyable
      69             :             {
      70             :             public:
      71             :                 /** Create new transparency group action.
      72             : 
      73             :                     @param rGroupMtf
      74             :                     Metafile that groups all actions to be rendered
      75             :                     transparent.
      76             : 
      77             :                     @param rAlphaGradient
      78             :                     VCL gradient, to be rendered into the action's alpha
      79             :                     channel.
      80             : 
      81             :                     @param rParms
      82             :                     Render parameters
      83             : 
      84             :                     @param rDstPoint
      85             :                     Left, top edge of destination, in current state
      86             :                     coordinate system
      87             : 
      88             :                     @param rDstSize
      89             :                     Size of the transparency group object, in current
      90             :                     state coordinate system.
      91             :                 */
      92             :                 TransparencyGroupAction( MtfAutoPtr&                    rGroupMtf,
      93             :                                          GradientAutoPtr&               rAlphaGradient,
      94             :                                          const Renderer::Parameters&    rParms,
      95             :                                          const ::basegfx::B2DPoint&     rDstPoint,
      96             :                                          const ::basegfx::B2DVector&    rDstSize,
      97             :                                          const CanvasSharedPtr&         rCanvas,
      98             :                                          const OutDevState&             rState );
      99             : 
     100             :                 virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
     101             :                 virtual bool renderSubset( const ::basegfx::B2DHomMatrix& rTransformation,
     102             :                                            const Subset&                  rSubset ) const;
     103             : 
     104             :                 virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
     105             :                 virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix&   rTransformation,
     106             :                                                        const Subset&                    rSubset ) const;
     107             : 
     108             :                 virtual sal_Int32 getActionCount() const;
     109             : 
     110             :             private:
     111             :                 MtfAutoPtr                                          mpGroupMtf;
     112             :                 GradientAutoPtr                                     mpAlphaGradient;
     113             : 
     114             :                 const Renderer::Parameters                          maParms;
     115             : 
     116             :                 const ::basegfx::B2DSize                            maDstSize;
     117             : 
     118             :                 mutable uno::Reference< rendering::XBitmap >        mxBufferBitmap; // contains last rendered version
     119             :                 mutable ::basegfx::B2DHomMatrix                     maLastTransformation; // contains last active transformation
     120             :                 mutable Subset                                      maLastSubset; // contains last effective subset
     121             : 
     122             :                 // transformation for
     123             :                 // mxBufferBitmap content
     124             :                 CanvasSharedPtr                                     mpCanvas;
     125             :                 rendering::RenderState                              maState;
     126             :                 const double                                        mnAlpha;
     127             :             };
     128             : 
     129             : 
     130             :             /** Setup transformation such that the next render call is
     131             :                 moved rPoint away, and scaled according to the ratio
     132             :                 given by src and dst size.
     133             :             */
     134           0 :             void implSetupTransform( rendering::RenderState&    rRenderState,
     135             :                                      const ::basegfx::B2DPoint& rDstPoint   )
     136             :             {
     137           0 :                 ::basegfx::B2DHomMatrix aLocalTransformation;
     138             : 
     139             :                 aLocalTransformation.translate( rDstPoint.getX(),
     140           0 :                                                 rDstPoint.getY() );
     141             :                 ::canvas::tools::appendToRenderState( rRenderState,
     142           0 :                                                       aLocalTransformation );
     143           0 :             }
     144             : 
     145             :             SAL_WNODEPRECATED_DECLARATIONS_PUSH
     146           0 :             TransparencyGroupAction::TransparencyGroupAction( MtfAutoPtr&                   rGroupMtf,
     147             :                                                               GradientAutoPtr&              rAlphaGradient,
     148             :                                                               const Renderer::Parameters&   rParms,
     149             :                                                               const ::basegfx::B2DPoint&    rDstPoint,
     150             :                                                               const ::basegfx::B2DVector&   rDstSize,
     151             :                                                               const CanvasSharedPtr&        rCanvas,
     152             :                                                               const OutDevState&            rState ) :
     153             :                 mpGroupMtf( rGroupMtf ),
     154             :                 mpAlphaGradient( rAlphaGradient ),
     155             :                 maParms( rParms ),
     156             :                 maDstSize( rDstSize ),
     157             :                 mxBufferBitmap(),
     158             :                 maLastTransformation(),
     159             :                 mpCanvas( rCanvas ),
     160             :                 maState(),
     161           0 :                 mnAlpha( 1.0 )
     162             :             {
     163           0 :                 tools::initRenderState(maState,rState);
     164           0 :                 implSetupTransform( maState, rDstPoint );
     165             : 
     166             :                 // correct clip (which is relative to original transform)
     167             :                 tools::modifyClip( maState,
     168             :                                    rState,
     169             :                                    rCanvas,
     170             :                                    rDstPoint,
     171             :                                    NULL,
     172           0 :                                    NULL );
     173             : 
     174           0 :                 maLastSubset.mnSubsetBegin = 0;
     175           0 :                 maLastSubset.mnSubsetEnd = -1;
     176           0 :             }
     177             :             SAL_WNODEPRECATED_DECLARATIONS_POP
     178             : 
     179             :             // TODO(P3): The whole float transparency handling is a mess,
     180             :             // this should be refactored. What's more, the old idea of
     181             :             // having only internal 'metaactions', and not the original
     182             :             // GDIMetaFile now looks a lot less attractive. Try to move
     183             :             // into the direction of having a direct GDIMetaFile2XCanvas
     184             :             // renderer, and maybe a separate metafile XCanvas
     185             :             // implementation.
     186           0 :             bool TransparencyGroupAction::renderSubset( const ::basegfx::B2DHomMatrix&    rTransformation,
     187             :                                                         const Subset&                     rSubset ) const
     188             :             {
     189             :                 RTL_LOGFILE_CONTEXT( aLog, "::cppcanvas::internal::TransparencyGroupAction::renderSubset()" );
     190             :                 RTL_LOGFILE_CONTEXT_TRACE1( aLog, "::cppcanvas::internal::TransparencyGroupAction: 0x%X", this );
     191             : 
     192             :                 // determine overall transformation matrix (render, view,
     193             :                 // and passed transformation)
     194           0 :                 ::basegfx::B2DHomMatrix aTransform;
     195           0 :                 ::canvas::tools::getRenderStateTransform( aTransform, maState );
     196           0 :                 aTransform = rTransformation * aTransform;
     197             : 
     198           0 :                 ::basegfx::B2DHomMatrix aTotalTransform;
     199           0 :                 ::canvas::tools::getViewStateTransform( aTotalTransform, mpCanvas->getViewState() );
     200           0 :                 aTotalTransform = aTotalTransform * aTransform;
     201             : 
     202             :                 // since pure translational changes to the transformation
     203             :                 // does not matter, remove them before comparing
     204           0 :                 aTotalTransform.set( 0, 2, 0.0 );
     205           0 :                 aTotalTransform.set( 1, 2, 0.0 );
     206             : 
     207             :                 // determine total scaling factor of the
     208             :                 // transformation matrix - need to make the bitmap
     209             :                 // large enough
     210           0 :                 ::basegfx::B2DTuple aScale;
     211           0 :                 ::basegfx::B2DTuple aTranslate;
     212             :                 double              nRotate;
     213             :                 double              nShearX;
     214           0 :                 if( !aTotalTransform.decompose( aScale,
     215             :                                                 aTranslate,
     216             :                                                 nRotate,
     217           0 :                                                 nShearX ) )
     218             :                 {
     219             :                     OSL_FAIL( "TransparencyGroupAction::renderSubset(): non-decomposable transformation" );
     220           0 :                     return false;
     221             :                 }
     222             : 
     223             :                 // if there's no buffer bitmap, or as soon as the
     224             :                 // total transformation changes, we've got to
     225             :                 // re-render the bitmap
     226           0 :                 if( !mxBufferBitmap.is() ||
     227           0 :                     aTotalTransform != maLastTransformation ||
     228             :                     rSubset.mnSubsetBegin != maLastSubset.mnSubsetBegin ||
     229             :                     rSubset.mnSubsetEnd != maLastSubset.mnSubsetEnd )
     230             :                 {
     231             :                     DBG_TESTSOLARMUTEX();
     232             : 
     233             :                     // output size of metafile
     234           0 :                     ::Size aOutputSizePixel( ::basegfx::fround( aScale.getX() * maDstSize.getX() ),
     235           0 :                                              ::basegfx::fround( aScale.getY() * maDstSize.getY() ) );
     236             : 
     237             :                     // pixel size of cache bitmap: round up to nearest int
     238           0 :                     ::Size aBitmapSizePixel( static_cast<sal_Int32>( aScale.getX() * maDstSize.getX() )+1,
     239           0 :                                              static_cast<sal_Int32>( aScale.getY() * maDstSize.getY() )+1 );
     240             : 
     241           0 :                     ::Point aEmptyPoint;
     242             : 
     243             :                     // render our content into an appropriately sized
     244             :                     // VirtualDevice with alpha channel
     245             :                     VirtualDevice aVDev(
     246           0 :                         *::Application::GetDefaultDevice(), 0, 0 );
     247           0 :                     aVDev.SetOutputSizePixel( aBitmapSizePixel );
     248           0 :                     aVDev.SetMapMode();
     249             : 
     250           0 :                     if( rSubset.mnSubsetBegin != 0 ||
     251             :                         rSubset.mnSubsetEnd != -1 )
     252             :                     {
     253             :                         // true subset - extract referenced
     254             :                         // metaactions from mpGroupMtf
     255           0 :                         GDIMetaFile aMtf;
     256             :                         MetaAction* pCurrAct;
     257             :                         int         nCurrActionIndex;
     258             : 
     259             :                         // extract subset actions
     260           0 :                         for( nCurrActionIndex=0,
     261           0 :                                  pCurrAct=mpGroupMtf->FirstAction();
     262             :                              pCurrAct;
     263           0 :                              ++nCurrActionIndex, pCurrAct = mpGroupMtf->NextAction() )
     264             :                         {
     265           0 :                             switch( pCurrAct->GetType() )
     266             :                             {
     267             :                                 case META_PUSH_ACTION:
     268             :                                 case META_POP_ACTION:
     269             :                                 case META_CLIPREGION_ACTION:
     270             :                                 case META_ISECTRECTCLIPREGION_ACTION:
     271             :                                 case META_ISECTREGIONCLIPREGION_ACTION:
     272             :                                 case META_MOVECLIPREGION_ACTION:
     273             :                                 case META_LINECOLOR_ACTION:
     274             :                                 case META_FILLCOLOR_ACTION:
     275             :                                 case META_TEXTCOLOR_ACTION:
     276             :                                 case META_TEXTFILLCOLOR_ACTION:
     277             :                                 case META_TEXTLINECOLOR_ACTION:
     278             :                                 case META_TEXTALIGN_ACTION:
     279             :                                 case META_FONT_ACTION:
     280             :                                 case META_RASTEROP_ACTION:
     281             :                                 case META_REFPOINT_ACTION:
     282             :                                 case META_LAYOUTMODE_ACTION:
     283             :                                     // state-changing action - copy as-is
     284           0 :                                     aMtf.AddAction( pCurrAct->Clone() );
     285           0 :                                     break;
     286             : 
     287             :                                 case META_GRADIENT_ACTION:
     288             :                                 case META_HATCH_ACTION:
     289             :                                 case META_EPS_ACTION:
     290             :                                 case META_COMMENT_ACTION:
     291             :                                 case META_POINT_ACTION:
     292             :                                 case META_PIXEL_ACTION:
     293             :                                 case META_LINE_ACTION:
     294             :                                 case META_RECT_ACTION:
     295             :                                 case META_ROUNDRECT_ACTION:
     296             :                                 case META_ELLIPSE_ACTION:
     297             :                                 case META_ARC_ACTION:
     298             :                                 case META_PIE_ACTION:
     299             :                                 case META_CHORD_ACTION:
     300             :                                 case META_POLYLINE_ACTION:
     301             :                                 case META_POLYGON_ACTION:
     302             :                                 case META_POLYPOLYGON_ACTION:
     303             :                                 case META_BMP_ACTION:
     304             :                                 case META_BMPSCALE_ACTION:
     305             :                                 case META_BMPSCALEPART_ACTION:
     306             :                                 case META_BMPEX_ACTION:
     307             :                                 case META_BMPEXSCALE_ACTION:
     308             :                                 case META_BMPEXSCALEPART_ACTION:
     309             :                                 case META_MASK_ACTION:
     310             :                                 case META_MASKSCALE_ACTION:
     311             :                                 case META_MASKSCALEPART_ACTION:
     312             :                                 case META_GRADIENTEX_ACTION:
     313             :                                 case META_WALLPAPER_ACTION:
     314             :                                 case META_TRANSPARENT_ACTION:
     315             :                                 case META_FLOATTRANSPARENT_ACTION:
     316             :                                 case META_TEXT_ACTION:
     317             :                                 case META_TEXTARRAY_ACTION:
     318             :                                 case META_TEXTLINE_ACTION:
     319             :                                 case META_TEXTRECT_ACTION:
     320             :                                 case META_STRETCHTEXT_ACTION:
     321             :                                     // output-generating action - only
     322             :                                     // copy, if we're within the
     323             :                                     // requested subset
     324           0 :                                     if( rSubset.mnSubsetBegin <= nCurrActionIndex &&
     325             :                                         rSubset.mnSubsetEnd > nCurrActionIndex )
     326             :                                     {
     327           0 :                                         aMtf.AddAction( pCurrAct->Clone() );
     328             :                                     }
     329           0 :                                     break;
     330             : 
     331             :                                 default:
     332             :                                     OSL_FAIL( "Unknown meta action type encountered" );
     333           0 :                                     break;
     334             :                             }
     335             :                         }
     336             : 
     337             :                         aVDev.DrawTransparent( aMtf,
     338             :                                                aEmptyPoint,
     339             :                                                aOutputSizePixel,
     340           0 :                                                *mpAlphaGradient );
     341             :                     }
     342             :                     else
     343             :                     {
     344             :                         // no subsetting - render whole mtf
     345           0 :                         aVDev.DrawTransparent( *mpGroupMtf,
     346             :                                                aEmptyPoint,
     347             :                                                aOutputSizePixel,
     348           0 :                                                *mpAlphaGradient );
     349             :                     }
     350             : 
     351             : 
     352             :                     // update buffered bitmap and transformation
     353           0 :                     BitmapSharedPtr aBmp( VCLFactory::getInstance().createBitmap(
     354             :                                               mpCanvas,
     355             :                                               aVDev.GetBitmapEx(
     356             :                                                   aEmptyPoint,
     357           0 :                                                   aBitmapSizePixel ) ) );
     358           0 :                     mxBufferBitmap = aBmp->getUNOBitmap();
     359           0 :                     maLastTransformation = aTotalTransform;
     360           0 :                     maLastSubset = rSubset;
     361             :                 }
     362             : 
     363             :                 // determine target transformation (we can't simply pass
     364             :                 // aTotalTransform as assembled above, since we must take
     365             :                 // the canvas' view state as is, it might contain clipping
     366             :                 // (which, in turn, is relative to the view
     367             :                 // transformation))
     368             : 
     369             :                 // given that aTotalTransform is the identity
     370             :                 // transformation, we could simply render our bitmap
     371             :                 // as-is. Now, since the mxBufferBitmap content already
     372             :                 // accounts for scale changes in the overall
     373             :                 // transformation, we must factor this out
     374             :                 // before. Generally, the transformation matrix should be
     375             :                 // structured like this:
     376             :                 // Translation*Rotation*Shear*Scale. Thus, to neutralize
     377             :                 // the contained scaling, we've got to right-multiply with
     378             :                 // the inverse.
     379           0 :                 ::basegfx::B2DHomMatrix aScaleCorrection;
     380           0 :                 aScaleCorrection.scale( 1/aScale.getX(), 1/aScale.getY() );
     381           0 :                 aTransform = aTransform * aScaleCorrection;
     382             : 
     383           0 :                 rendering::RenderState aLocalState( maState );
     384           0 :                 ::canvas::tools::setRenderStateTransform(aLocalState, aTransform);
     385             : 
     386             : #if OSL_DEBUG_LEVEL > 2
     387             :                 aLocalState.Clip.clear();
     388             :                 aLocalState.DeviceColor =
     389             :                     ::vcl::unotools::colorToDoubleSequence(
     390             :                         ::Color( 0x80FF0000 ),
     391             :                         mpCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace() );
     392             : 
     393             :                 if( maState.Clip.is() )
     394             :                     mpCanvas->getUNOCanvas()->fillPolyPolygon( maState.Clip,
     395             :                                                                mpCanvas->getViewState(),
     396             :                                                                aLocalState );
     397             : 
     398             :                 aLocalState.DeviceColor = maState.DeviceColor;
     399             : #endif
     400             : 
     401           0 :                 if( ::rtl::math::approxEqual(mnAlpha, 1.0) )
     402             :                 {
     403             :                     // no further alpha changes necessary -> draw directly
     404           0 :                     mpCanvas->getUNOCanvas()->drawBitmap( mxBufferBitmap,
     405           0 :                                                           mpCanvas->getViewState(),
     406           0 :                                                           aLocalState );
     407             :                 }
     408             :                 else
     409             :                 {
     410             :                     // add alpha modulation value to DeviceColor
     411           0 :                     uno::Sequence<rendering::ARGBColor> aCols(1);
     412           0 :                     aCols[0] = rendering::ARGBColor( mnAlpha, 1.0, 1.0, 1.0);
     413             :                     aLocalState.DeviceColor =
     414           0 :                         mpCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace()->convertFromARGB(
     415           0 :                             aCols);
     416             : 
     417           0 :                     mpCanvas->getUNOCanvas()->drawBitmapModulated( mxBufferBitmap,
     418           0 :                                                                    mpCanvas->getViewState(),
     419           0 :                                                                    aLocalState );
     420             :                 }
     421             : 
     422           0 :                 return true;
     423             :             }
     424             : 
     425             :             // TODO(P3): The whole float transparency handling is a mess,
     426             :             // this should be refactored. What's more, the old idea of
     427             :             // having only internal 'metaactions', and not the original
     428             :             // GDIMetaFile now looks a lot less attractive. Try to move
     429             :             // into the direction of having a direct GDIMetaFile2XCanvas
     430             :             // renderer, and maybe a separate metafile XCanvas
     431             :             // implementation.
     432           0 :             bool TransparencyGroupAction::render( const ::basegfx::B2DHomMatrix& rTransformation ) const
     433             :             {
     434             :                 Subset aSubset;
     435             : 
     436           0 :                 aSubset.mnSubsetBegin = 0;
     437           0 :                 aSubset.mnSubsetEnd   = -1;
     438             : 
     439           0 :                 return renderSubset( rTransformation, aSubset );
     440             :             }
     441             : 
     442           0 :             ::basegfx::B2DRange TransparencyGroupAction::getBounds( const ::basegfx::B2DHomMatrix&  rTransformation ) const
     443             :             {
     444           0 :                 rendering::RenderState aLocalState( maState );
     445           0 :                 ::canvas::tools::prependToRenderState(aLocalState, rTransformation);
     446             : 
     447             :                 return tools::calcDevicePixelBounds(
     448             :                     ::basegfx::B2DRange( 0,0,
     449             :                                          maDstSize.getX(),
     450             :                                          maDstSize.getY() ),
     451           0 :                     mpCanvas->getViewState(),
     452           0 :                     aLocalState );
     453             :             }
     454             : 
     455           0 :             ::basegfx::B2DRange TransparencyGroupAction::getBounds( const ::basegfx::B2DHomMatrix&  rTransformation,
     456             :                                                                     const Subset&                   rSubset ) const
     457             :             {
     458             :                 // TODO(F3): Currently, the bounds for
     459             :                 // TransparencyGroupAction subsets equal those of the
     460             :                 // full set, although this action is able to render
     461             :                 // true subsets.
     462             : 
     463             :                 // polygon only contains a single action, empty bounds
     464             :                 // if subset requests different range
     465           0 :                 if( rSubset.mnSubsetBegin != 0 ||
     466             :                     rSubset.mnSubsetEnd != 1 )
     467           0 :                     return ::basegfx::B2DRange();
     468             : 
     469           0 :                 return getBounds( rTransformation );
     470             :             }
     471             : 
     472           0 :             sal_Int32 TransparencyGroupAction::getActionCount() const
     473             :             {
     474           0 :                 return mpGroupMtf.get() ? mpGroupMtf->GetActionSize() : 0;
     475             :             }
     476             : 
     477             :         }
     478             : 
     479             :         SAL_WNODEPRECATED_DECLARATIONS_PUSH
     480           0 :         ActionSharedPtr TransparencyGroupActionFactory::createTransparencyGroupAction( MtfAutoPtr&                  rGroupMtf,
     481             :                                                                                        GradientAutoPtr&             rAlphaGradient,
     482             :                                                                                        const Renderer::Parameters&  rParms,
     483             :                                                                                        const ::basegfx::B2DPoint&   rDstPoint,
     484             :                                                                                        const ::basegfx::B2DVector&  rDstSize,
     485             :                                                                                        const CanvasSharedPtr&       rCanvas,
     486             :                                                                                        const OutDevState&           rState )
     487             :         {
     488             :             return ActionSharedPtr( new TransparencyGroupAction(rGroupMtf,
     489             :                                                                 rAlphaGradient,
     490             :                                                                 rParms,
     491             :                                                                 rDstPoint,
     492             :                                                                 rDstSize,
     493             :                                                                 rCanvas,
     494           0 :                                                                 rState ) );
     495             :         }
     496             :         SAL_WNODEPRECATED_DECLARATIONS_POP
     497             : 
     498             :     }
     499             : }
     500             : 
     501             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10